---
title: "Create User"
method: POST
path: "/v1/auth/user"
tags: ["authentication"]
---

# Create User

`POST /v1/auth/user`

## Request

- Base URL: `https://api.linktodm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.linktodm.com/v1/auth/user`
- Auth: HTTP bearer

Create a new user.
Args:
    user (User): User object.
    session (db, optional): Database session. Defaults to Depends(db).

## Request body

- CreateUserPayload: Create User Payload.
  - `email` string, nullable
  - `phone_number` string, nullable
  - `name` string, nullable
  - `picture` string, nullable
  - `instagram_account_id` string, nullable
  - `country` string, nullable
  - `creator_types` string[], nullable
  - `auth_provider` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/linktodm/apis/salesmorph.md) - [All operations](https://skmtc.dev/linktodm/apis/salesmorph/llms.txt) - [OpenAPI document](https://skmtc.dev/linktodm/apis/salesmorph/revisions/4af0ad5dbe92?raw)
