Skip to main content
POST
/
users
Create User
curl --request POST \
  --url https://api.wacht.dev/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "[email protected]",
  "username": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "password": "<string>"
}'
{
  "id": "1234567890123456",
  "email": "[email protected]",
  "username": "johndoe",
  "first_name": "John",
  "last_name": "Doe",
  "created_at": "2024-01-01T12:00:00Z",
  "updated_at": "2024-01-01T12:00:00Z",
  "is_active": true,
  "emails": [
    {
      "id": "<string>",
      "email": "[email protected]",
      "is_primary": true,
      "is_verified": true,
      "verified_at": "2023-11-07T05:31:56Z"
    }
  ],
  "phones": [
    {
      "id": "<string>",
      "phone_number": "+1234567890",
      "is_primary": true,
      "is_verified": true,
      "verified_at": "2023-11-07T05:31:56Z"
    }
  ],
  "social_connections": [
    {
      "provider": "google",
      "enabled": true,
      "client_id": "<string>",
      "scopes": [
        "<string>"
      ],
      "redirect_uri": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Body

application/json
email
string<email>
required
username
string
first_name
string
last_name
string
password
string
Minimum length: 8

Response

id
string
Example:
email
string<email>
Example:
username
string
Example:
first_name
string
Example:
last_name
string
Example:
created_at
string<date-time>
Example:
updated_at
string<date-time>
Example:
is_active
boolean
Example:
emails
object[]
phones
object[]
social_connections
object[]