Parameters

user
dictionary
uuid
string
Required
Description
Unique device or anonymous session identifier used to attach the login session and merge guest activity such as cart data.
first_name
string
Required
Description
User first name.
last_name
string
Required
Description
User last name.
mobile
string
Required
Description
Mobile number that receives the registration OTP.
dial_code
string
Required
Description
Country dial code for the mobile number, without the `+` sign.
type
string
Required
Description
User role to register, for example `customer`.
auth_type
number
Description
Optional auth flow override. Use `2` for Mobile & OTP 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
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",
    "type": "customer"
  }
}'
RESPONSE
{
  "status": "success",
  "data": {
    "verify_id": 1
  }
}