---
title: "Creates a test user for use in local testing"
method: POST
path: "/create_test_user/"
tags: ["test"]
---

# Creates a test user for use in local testing

`POST /create_test_user/`

Only works in the dev environment (will not work in prod)

## Request body

- ApiCreateTestUserParams
  - `email` string, required
  - `name` string, required

## Response `201`

auth token

- string

## Other responses

- `400` — invalid params
- `401` — non-dev environment

## Changes

- **2026-07-17** `dd703b665df8` — 1 info
  - endpoint added
- **2022-07-08** `a16838105bfd` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/generaltask/apis/general-task-api/changes/create_test_user/post.md)

---

[API](https://skmtc.dev/generaltask/apis/general-task-api.md) · [All operations](https://skmtc.dev/generaltask/apis/general-task-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/generaltask/general-task-api/revisions/dd703b665df8/schema)
