Skip to main content
POST
/
users
curl --request POST \
  --url https://{host}/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "firstName": "John",
  "lastName": "Doe",
  "dateOfBirth": "1990-05-15",
  "residencyCountry": "GB"
}
'
{
"id": "64f0c51e7fb3fc001234a001",
"email": "[email protected]",
"firstName": "John",
"lastName": "Doe",
"dateOfBirth": "1990-05-15",
"residencyCountry": "GB",
"emailVerified": false,
"kycStatus": "pending",
"createdAt": "2024-10-03T10:30:00Z",
"updatedAt": "2024-10-03T10:30:00Z"
}

Authorizations

Authorization
string
header
required

Auth0-issued access token that includes the scopes listed for the endpoint.

Body

application/json
email
string<email>
required

User's email address (must be unique)

firstName
string
required

User's first name

Required string length: 1 - 100
Example:

"John"

lastName
string
required

User's last name

Required string length: 1 - 100
Example:

"Doe"

dateOfBirth
string<date>
required

User's date of birth (YYYY-MM-DD)

Example:

"1990-05-15"

residencyCountry
string
required

Two-letter ISO country code for user's country of residence

Example:

"GB"

address
object

User's residential address

taxResidency
object

Tax residency information

Response

User created successfully

id
string
required

MongoDB ObjectId of the created user

Example:

"64f0c51e7fb3fc001234a001"

email
string<email>
required
emailVerified
boolean
required

Whether the email has been verified

Example:

false

kycStatus
enum<string>
required

KYC verification status

Available options:
pending,
failed,
passed
Example:

"pending"

createdAt
string<date-time>
required

Timestamp when the user was created

Example:

"2024-10-03T10:30:00Z"

updatedAt
string<date-time>
required

Timestamp when the user was last updated

Example:

"2024-10-03T10:30:00Z"

firstName
string
Example:

"John"

lastName
string
Example:

"Doe"

dateOfBirth
string<date>
Example:

"1990-05-15"

residencyCountry
string
Example:

"GB"

address
object
taxResidency
object