Skip to content
Dashboard
Theme
Theme

Create an end user

POST /v1/users: Create an end user.

View Markdown

POST /v1/users

Scope
users:write
Auth
Secret key (sk_…)
Since
1.0
  • Idempotency-Key string

    Honoured for 24 h; a replay returns the original response.

    min length 1 · max length 255

  • OhAuthCat-Version string

    Minor version; defaults to the environment’s pin.

  • email string Required

    min length 3 · max length 320

  • email_verified boolean

    Mark the address verified (only when your app has verified it).

  • first_name string

    min length 1 · max length 200

  • last_name string

    min length 1 · max length 200

  • locale string

    min length 2 · max length 35

  • external_id string

    min length 1 · max length 256

  • metadata Metadata

Errors share one shape; see the error code catalogue.

curl -X POST \
"https://api.ohauthcat.com/v1/users" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "jane@acme.com"
}'
Response 201
{
"id": "usr_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"object": "user",
"email": "jane@acme.com",
"email_verified": true,
"first_name": "Jane",
"last_name": "Doe",
"locale": "en-US",
"external_id": "acme-123",
"metadata": {
"plan": "enterprise"
},
"state": "active",
"last_sign_in_at": "2026-01-15T09:30:00Z",
"created_at": "2026-01-15T09:30:00Z",
"updated_at": "2026-01-15T09:30:00Z"
}