POST
/
otp
/
link
/
request
curl --request POST \
  --url https://api.crunchz.app/api/otp/link/request \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "contact_id": "xxx@c.us",
  "expires": 1800,
  "name": "Your Company Name",
  "message": {
    "prompt": "Give me link to login at TARGET App",
    "success": "Here is your login link bit.ly/any",
    "failed": "Login failed, please try again later.",
    "expired": "The link has been expired, please try another one."
  },
  "callback": {
    "success": "https://domain.com/callback/success",
    "failed": "https://domain.com/callback/failed"
  }
}'
{
  "success": true,
  "message": "<string>",
  "data": {
    "id": "<string>",
    "code": "<string>",
    "contact_id": "<string>",
    "link": "<string>",
    "app_uri": "<string>",
    "expired_at": "<string>",
    "timestamp": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

OtpLinkResource

The response is of type object.