Skip to main content
POST
Send OTP via Exotel
Dispatches a 6-digit code via Exotel SMS. Requires the x-device-id header and an E.164 formatted phone number in the JSON body.

Headers

Request Body

Response

Error Codes

Headers

x-device-id
string
required

Unique identifier for the calling device or installation.

Minimum string length: 1
x-platform
enum<string>

Client platform (ios, android, web).

Available options:
ios,
android,
web

Body

application/json
phone
string
required

Phone number. Accepts 10-digit numbers (9876543210), numbers with country code (919876543210), or E.164 format (+919876543210). The +91 prefix is automatically added for 10-digit numbers.

Example:

"9876543210"

Response

OTP sent

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required