Register a pending account and send an SMS verification code.
Send X-Auth-Flow: sms-otp for mandatory phone verification. Name (3-100 characters), unique E.164 phone, email, active country and canonical city are required; no tokens are issued until /auth/verify-otp succeeds. SMS failures leave a pending account that can retry via /auth/resend-otp. Temporary AUTH_LEGACY_REGISTRATION_ENABLED compatibility restores optional phone/city/country and an active account with accessToken for unversioned clients and X-App-Version <= 1.1.8 (including +24). X-App-Version >= 1.1.9 always uses SMS verification. Disable the switch after the replacement store build ships. Password requires 8-255 characters, one uppercase letter and one digit.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/auth/register" \ -H "Content-Type: application/json" \ -d '{ "fullName": "Khalid Al-Saud", "email": "[email protected]", "password": "StrongPass123!", "phone": "+966555012345", "country": "SA", "city": "Riyadh", "requestedTypes": [ "customer" ], "acceptedTermsVersion": "2026-04" }'{ "data": { "user": { "id": "usr_01jq8z4b2k6h7n8m9p0r3s5t7v", "fullName": "Khalid Al-Saud", "email": "[email protected]", "phone": "+966555012345", "avatarFileId": "fil_01jq8z4c0e3p5q7r9s2t4w6x8z", "avatar": { "original": "https://cdn.trackme.sa/u/khalid-original.jpg", "thumb": "https://cdn.trackme.sa/u/khalid-thumb.jpg", "medium": "https://cdn.trackme.sa/u/khalid-medium.jpg" }, "city": "Riyadh", "country": "SA", "status": "pending_verification", "types": [ "customer" ], "preferences": { "cuisines": [ "burgers", "coffee" ], "language": "en" }, "language": "en", "createdAt": "2026-04-12T08:14:22.000Z", "updatedAt": "2026-05-18T11:02:09.000Z", "deletedAt": null, "isVerified": false }, "ownerBusinessProfile": null, "verification": { "channel": "sms", "destination": "+966555012345", "expiresAt": "2026-10-15T12:10:00Z", "resendAvailableAt": "2026-10-15T12:01:00Z" } }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}{ "error": { "code": "VALIDATION_ERROR", "message": "Request body is malformed." }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}{ "error": { "code": "CONFLICT", "message": "This action conflicts with an existing record.", "targetType": "order", "targetId": "ord_01jq8z3a0n0y9v0x1g4t2c7m6e" }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}{ "error": { "code": "VALIDATION_ERROR", "message": "One or more fields are invalid.", "fields": [ { "path": "email", "rule": "email", "message": "Must be a valid email address." } ] }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}{ "error": { "code": "RATE_LIMITED", "message": "Too many requests — slow down and retry after the indicated delay.", "retryAfterSeconds": 60 }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}