GET
/
v1
/
authorize
curl --request GET \
  --url https://auth.otpless.app/auth/v1/authorize
{
  "requestIds": [
    {
      "type": "MOBILE",
      "value": "b9b9df83f6ce4105abc94aa778dd952e",
      "destinationUri": "https://wa.me/911141169439"
    },
    {
      "type": "EMAIL",
      "value": "b9b9df83f6ce4105abc94aa778dd952e"
    }
  ]
}

Query Parameters

client_id
string
required

Your unique client identifier.

client_secret
string
required

A secret key associated with your client ID for authentication.

redirect_uri
string
required

URL-encoded redirect URI where the user will be redirected after clicking the magic link.

mobile_number
string

User's mobile number. At least one of the mobile number or email is mandatory for sending the magic link.

email
string

User's email address. At least one of the mobile number or email is mandatory for sending the magic link.

expiry
integer
default: 300

Expiry time in seconds for the magic link. Valid values are from 30 to 2592000 (30 days). Defaults to 300 seconds if not specified.

Response

200 - application/json
requestIds
object[]