Parameters
user
dictionary
uuid
string
RequiredDescription
Unique device or anonymous session identifier used to attach the login session and merge guest activity such as cart data.
first_name
string
RequiredDescription
User first name.
last_name
string
RequiredDescription
User last name.
email
string
RequiredDescription
Valid email address used for registration and OTP delivery.
password
string
RequiredDescription
Password for the user account. Must be at least 6 characters long.
type
string
RequiredDescription
User role to register, for example `customer`.
auth_type
number
Description
Optional auth flow override. Use `1` for Email & Password when overriding the tenant default.
mobile
string
Description
Optional mobile number to store with the user profile.
dial_code
string
Description
Country dial code for the optional mobile number, without the `+` sign.
birth_date
string
Description
Birth date in `YYYY-MM-DD` format. Required only if the tenant configuration enforces it.
country_id
number
Description
Tenant country ID associated with the user.
metadata
dictionary
Description
Optional custom metadata object stored against the user.
attributes
array
POST/v1/users/register
bash
curl https://api.tradly.app/v1/users/register \
-H "Authorization: Bearer YOUR_PUBLISHABLE_OR_SECRET_KEY" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"user": {
"uuid": "4f045199-18f3-4d47-b8ed-cf4252cb98d0",
"first_name": "Charles",
"last_name": "Pearson",
"email": "your_name@example.com",
"password": "123123&&!",
"type": "customer"
}
}'RESPONSE
json
{
"status": "success",
"data": {
"verify_id": 1
}
}