Skip to navigation

Start customer registration

Sends a one-time code by SMS to the mobile number and opens a short-lived verification session. No customer is created until the session is completed. A new iOS or Android number is rejected when signup is disabled for the customer source. An existing customer, and any request that omits x-app-platform, still receives a code. Every request needs a reCAPTCHA v3 token for the registration_start action, whether or not the x-app-platform header is sent. When reCAPTCHA secrets are configured per signup hostname, web requests must include an Origin or Referer header for the registration page. Native app requests without those headers use x-app-platform (ios or android) as the secret map key instead.

Headers

x-app-platformenumOptional

Sent by the mobile apps. Case-insensitive, and optional. Only ios and android are accepted; any other value is rejected with 400. When reCAPTCHA secrets are hostname-keyed and Origin/Referer are omitted, ios or android selects the matching secret map entry. White-label signup restrictions apply to a new number only when this header is ios or android. Requests that omit it are not restricted.

Allowed values:

Request

This endpoint expects an object.
clientIdstringRequired
The customer source client id the app is built for.
mobileNumberstringRequired
Mobile number in international format.
hasAcceptedTermsAndConditionsbooleanRequired

Must be true.

recaptchaTokenstringRequired<=4096 characters

reCAPTCHA v3 token from grecaptcha.execute(siteKey, { action: ‘registration_start’ }). Tokens for any other action are rejected with 403.

hasConfirmedAgebooleanOptional

true when the customer confirmed they are 18 or older. Stored when the registration is completed. Optional for now; a later release makes it required for new customers.

privacyPolicyDocumentVersionIdintegerOptional>=1

Optional id of the privacy policy document version the landing page displayed. When the customer source has a privacy policy and this id is not the current version, the request is rejected with 409 privacy_policy_outdated.

referralCodestringOptional<=64 characters
Optional referral code, linked to the customer when a new customer is created.
platformDetailsmap from strings to anyOptional
Optional app and device details, stored when a new customer is created.

Response

The code was sent and the verification session is open.
verificationIdstringformat: "uuid"
Send this with the code to complete registration.
expiresAtdatetime
The session and code stop working at this time.

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error