Skip to main content
POST
/
new
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": 1757916599341,
  "api_version": "v2025.9.15",
  "object": "response",
  "data": {
    "otp_id": "otp_1234567890"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
to
string
required

Recipient's phone number

Example:

"+1234567890"

language
string
required

Language of the OTP message

Example:

"en"

name
string
required

Your app's name (customizes message to 'Your [name] code is...')

Example:

"Contiguity"

Response

Send a new OTP

id
string
required
Example:

"req_xxxxxxxxxxxxxxxx"

timestamp
number
required
Example:

1757916599341

api_version
string
required
Example:

"v2025.9.15"

object
string
required
Example:

"response"

data
object
required
I