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.
mobile
string
RequiredDescription
Mobile number that receives the registration OTP.
dial_code
string
RequiredDescription
Country dial code for the mobile number, without the `+` sign.
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 `3` for Mobile & Password when overriding the tenant default.
email
string
Description
Optional email address to store with the user profile.
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": "22607f28-815f-4448-a66d-333a755f932b",
"first_name": "Charles",
"last_name": "Pearson",
"mobile": "7700900493",
"dial_code": "44",
"password": "123123@@!",
"type": "customer"
}
}'RESPONSE
json
{
"status": "success",
"data": {
"verify_id": 1
}
}