POST
/
auth
/
v1
/
initiate
/
magiclink
curl --request POST \
  --url https://auth.otpless.app/auth/v1/initiate/magiclink \
  --header 'Content-Type: application/json' \
  --header 'clientId: <api-key>' \
  --header 'clientSecret: <api-key>' \
  --data '{
  "redirectURI": "your_redirect_uri_link",
  "expiry": 60,
  "phoneNumber": "+15551234567",
  "channels": [
    "WHATSAPP",
    "SMS"
  ],
  "metadata": {
    "key1": "Data1",
    "key2": "Data2"
  }
}'
{
  "requestId": "unique_request_id"
}

This API is accessible exclusively to users subscribed to the OTPless Pro plan. Ensure you have an active OTPless Pro Plan subscription to utilize this feature.

If you need to send the SMS MAGIC LINK to users outside India then please reach out to us on support to activate it.

Authorizations

clientId
string
header
required
clientSecret
string
header
required

Body

application/json

Response

200
application/json
Magic Link initiated successfully

The response is of type object.