Generate SMS OTP code

Authenticates the user with the given phone number and we send an OTP to the user's phone number.

post
Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Body

The request for the SMS OTP authentication.

phoneNumberstring · min: 1Required

The phone number. The phone number should be following the E.164 format.

Example: +1234567890
Responses
chevron-right
200

The request was successful.

application/json

The API result model with data.

successbooleanRead-onlyRequired

This is the flag to indicate whether the API call is successful or not.

statusCodeinteger · int32Read-onlyRequired

This is the HTTP status code. This is used to determine the status code to be returned to the client.

messagestring · min: 1Required

This is the message to be displayed to the user.

datastring · nullableOptional
post
/api/v1/users/auth/passwordless/phone/generate-otp

Last updated