cURL
curl --request POST \ --url https://api.contiguity.co/otp/new \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "to": "+1234567890", "language": "en", "name": "Contiguity" }'
{ "message": "OTP sent successfully", "crumbs": { "plan": "free", "quota": 3, "type": "sms", "ad": true }, "otp_id": "abc123xyz" }
Generate and send a one-time password via SMS.
Authentication using a Bearer Token. Specify Authorization: Token YOUR_TOKEN. Bearer is allowed.
Authorization: Token YOUR_TOKEN
Bearer
OTP sent successfully
The response is of type object.
object
Was this page helpful?