---
title: "Create User"
method: POST
path: "/api/v1/users/"
tags: ["users"]
---

# Create User

`POST /api/v1/users/`

## Request

- Base URL: `https://api.gnosari.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.gnosari.com/api/v1/users/`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-AUTH-TOKEN`

Create new user and return an access token.

Returns both the created user profile and a JWT access token so the
client can authenticate immediately without a separate login call.

The signup locale is negotiated from the ``Accept-Language`` header (the
Nuxt proxy forwards the active UI locale) and persisted on the new user.
The service mints the email-verification token and emits the enriched
``user.registered`` (A1) event -- A1 IS the verify-email automation, so the
payload carries the verification link -- in this same transaction, BEFORE
the endpoint-owned commit.

On success, schedules an onboarding task in ConvOps as a background task —
failure-isolated and disabled by default (see ``integrations.convops``).

## Request body

- UserCreate: Schema for creating a user with comprehensive validation.
  - `email` string, email, required: User email address
  - `password` string, required: User password (minimum 8 characters)

## Response `201`

Successful Response

- UserCreateResponse: Response schema for user registration — includes user data and access token.
  - `user` UserPublic, required: Public schema for user without sensitive information.
    - `email` string, email, required: User email address
    - `id` integer, required: User ID
    - `roles` string[]: User roles
    - `is_verified` boolean: Whether the user has verified their email address (soft-gate driver).
    - `created_at` string, date-time, required: Creation timestamp
    - `updated_at` string, date-time, nullable: Last update timestamp
  - `access_token` string, required
  - `token_type` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/gnosari/apis/gnosari-api.md) · [All operations](https://skmtc.dev/gnosari/apis/gnosari-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gnosari/apis/gnosari-api/revisions/f299cf53ae5f?raw)
