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-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
200
The request was successful.
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?