---
title: "Creates a local user for testing.The user can have any specified roles in the request and the returned cookies can be used for subsequent requests acting as this new user. Note that this endpoint is only exposed in a local environment."
method: POST
path: "/auth/register"
tags: ["Auth", "User"]
---

# Creates a local user for testing.The user can have any specified roles in the request and the returned cookies can be used for subsequent requests acting as this new user. Note that this endpoint is only exposed in a local environment.

`POST /auth/register`

## Request body

- User — A user of the system (researcher, policy maker, etc)
  - `allOf` RoleArray
    - `roles` Role[]
  - `name` string, nullable — Full name of the user if provided by the OAuth provider
  - `email` string, email, required
  - `googleID` string — Unique identifier for the google account of the user

## Response `200`

OK

- object

## Other responses

- `400` — Malformed request
- `500` — Internal server error

---

[API](https://skmtc.net/globaldothealth/apis/global-health-curator-service-api.md) · [All operations](https://skmtc.net/globaldothealth/apis/global-health-curator-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/globaldothealth/global-health-curator-service-api/revisions/5b1151265235/schema)
