Action required: We're beginning to shutdown our old platform. Please migrate to our new platform ASAP. Instructions available in our migration guide.
cURL
curl --request POST \ --url https://api.contiguity.com/otp/new \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "to": "+1234567890", "language": "en", "name": "Contiguity" } '
{ "id": "req_xxxxxxxxxxxxxxxx", "timestamp": 1761968887641, "api_version": "v2025.10.31", "object": "response", "data": { "otp_id": "otp_1234567890" } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Recipient's phone number
"+1234567890"
Language of the OTP message
"en"
Your app's name (customizes message to 'Your [name] code is...')
"Contiguity"
Send a new OTP
"req_xxxxxxxxxxxxxxxx"
1761968887641
"v2025.10.31"
"response"
Show child attributes
The OTP's ID. Use it to refer to this verification in the future, such as when verifying the OTP or resending it.
"otp_1234567890"
Was this page helpful?