Skip to main content
POST
/
api
/
v1
/
send-otp
Send OTP
curl --request POST \
  --url https://otpedge.com/api/v1/send-otp \
  --header 'Content-Type: application/json' \
  --data '
{
  "to": "<string>",
  "app": "<string>"
}
'
{
  "success": true,
  "req_id": "oe_a1b2c3d4e5f6",
  "status": "dispatched"
}

Request Body

to
string
required
The recipient’s phone number in strict E.164 format (e.g., +919876543210).
app
string
required
The name of your application, used for branding in the message.
Expiry: The dispatched OTP code is valid for exactly 10 minutes from the time of generation.

Request Examples

curl -X POST https://otpedge.com/api/v1/send-otp \
     -H "Authorization: Bearer your_api_key_here" \
     -H "Content-Type: application/json" \
     -d '{
       "to": "+919876543210",
       "app": "MySecureApp"
     }'

Response Examples

{
  "success": true,
  "req_id": "oe_a1b2c3d4e5f6",
  "status": "dispatched"
}