Authentication by SMS OTP
Authenticates the user with the given phone number and we send an OTP to the user's phone number.
post
Header parameters
Brand-URLstringRequiredExample:
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
Body
The request for the SMS OTP authentication.
phoneNumberstring · min: 1RequiredExample:
The phone number. The phone number should be following the E.164 format.
+1234567890
Responses
200
The request was successful.
application/json
404
The user was not found in the database.
application/json
429
The user has exceeded the rate limit.
application/json
613
The phone number is not in the correct format
application/json
post
POST /api/v1/users/auth/passwordless/sms-otp HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Content-Type: application/json
Accept: */*
Content-Length: 29
{
"phoneNumber": "+1234567890"
}
{
"success": true,
"statusCode": 200,
"message": "The request was successful.",
"data": "ojLdGCcokeTyaseHvSAJtQh3ho2ey5jf8IdOimzlOS/ObjKMCh0e/NWomcYddisNYVPUEs1XRCcdq5oBNPiHEXRrhf7LY7mrJsALH0KXGv+mWscLpCfSINMA/5wf5Tyw4wcRKPIKZTUtOX49zpVRpcaRpIk9NqTNKNK243fXEQmqAsIWYWO1MDXuonI123WWncNCnBzRbdqAzkd3hQzix+dYLMq4zO76HSNtkjVCZw2nS3+ZM=",
"errors": []
}
Last updated
Was this helpful?