Skip to content

Voice OTP Broadcast

POST /api/broadcasts/otp

Send OTP (One-Time Password) voice messages to a single phone number. The voice must contain at least one dynamic part with digit mode to read the OTP code.

Parameter Type Required Description
request_id string Yes Unique request identifier (16-64 chars) to prevent duplicate requests. Use UUID or random string.
voice string Yes Name of your approved voice with digit mode
sender string Yes Your active caller sender number
phone_number string Yes Single Bangladeshi phone number (01XXXXXXXXX format)
otp_code string Yes OTP code (4-6 digits)
Terminal window
curl -X POST https://api.awajdigital.com/api/broadcasts/otp \
-H "Authorization: Bearer your_api_token_here" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"request_id": "unique_request_id_123",
"voice": "your_voice_name",
"sender": "8801234567890",
"phone_number": "019XXXXXXXX",
"otp_code": "1234"
}'
{
"success": true,
"broadcast": {
"id": 123,
"name": "otp_api_1_your_voice_019XXXXXXXX",
"status": "broadcasting",
"createdAt": "2025-12-29T10:30:00.000Z"
}
}