A voice call API lets your software place automated phone calls that play a recorded message, with one web request. With the Fast2SMS voice call API, you send the numbers and the File ID of an approved voice file to https://www.fast2sms.com/dev/voice/bulk, and every number gets the call. Calls go out only between 10 AM and 9 PM IST, and you pay only for answered calls.
This page explains what a voice calling API does, where it helps, and the full flow in India from voice file to call report. For every field and code sample, follow the detailed guides linked in each step.
What a voice call API does
A voice call API is the same bulk voice call you can send from the panel, but your app starts it. It is also called an automated voice call API or an OBD (outbound dialling) API. One request can call up to 1,00,000 numbers. You choose the call type by the fields you send:
| Call type | You send | What the person hears and does |
|---|---|---|
| Simple | file_id | Hears one recorded message. |
| Key Press (DTMF) | file_id + dtmf_keys | Hears a question and presses a key, such as 1 for Yes. The key is saved in the report. |
| Call Patch | file_id + agent_groups + no_agent_file_id | Presses a key and is connected to an agent from your team. |
DTMF is the tone a phone key makes when it is pressed. For the key press and call patch fields, see the IVR key press and call patch voice call API.
Where businesses use a voice calling API
- COD order confirmation: call the buyer right after a cash on delivery order and ask them to press 1 to confirm. See COD order confirmation by voice call.
- Reminders: appointments, deliveries and renewals. See reminder voice calls.
- Alerts and notices: a changed timing, a holiday or a service update, heard in the customer’s own language.
- Feedback surveys: a key press call that records each answer.
- Lead calls: a call patch campaign that puts interested people through to your sales team.
A voice call is not for OTPs. Fast2SMS has no voice OTP. Send OTPs with Smart OTP on SMS and WhatsApp. Every voice file must say your company or brand name clearly, and the operator rejects files with content on its not-allowed list, such as stock tips, betting or asking for OTP or bank details. Payment or loan due reminders are allowed only for banks, NBFCs and their collection partners.
How the voice call API works with Fast2SMS
Before you start, you need:
- Paid recharges of ₹100 or more in total on your account.
- At least one approved voice file.
- Your API key.
- Wallet balance for the amount held when the campaign is accepted.
-
Upload a voice file and get it approved
Open Voice Files under VOICE CALL (OBD) and click Upload Voice File. Accept the Voice File Rules, give the file a name, choose what it is Used As and upload an MP3 or WAV up to 5 MB, or record it in the browser. The operator checks it, usually within a few hours. Each upload has a fee, refunded if the operator rejects the file. Every account also gets free, pre-approved sample files. See voice file format and approval.

Copy the File ID of an Approved file, here 30023. -
Copy your API key
Open API Key under UTILITY. Click View, enter the OTP sent to your account mobile and copy the Authorization Key. Keep API Access switched on. If API Security is on, add your server’s IP to the whitelist first.

The same API Key page is used for the voice call API. -
Call the voice call API
Send a POST request with the numbers and the File ID:
curl -X POST "https://www.fast2sms.com/dev/voice/bulk" \ -H "authorization: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"file_id":"30023","numbers":"9999999999,8888888888","campaign_name":"Stock clearance Nov"}'You can also download ready API URLs. Open API Excel, pick Voice and click Download Excel. The file lists your approved voice files with API URLs for Simple, Key Press and Call Patch calls.

Voice API Excel: approved voice files with ready API URLs. -
Read the reply
Fast2SMS replies at once:
{"return":true,"request_id":"VdQkbYrvgtOo2nG", "message":["Voice campaign accepted. Calls start within a minute."], "numbers":2,"removed":0,"dnd":0,"amount_held":1}numbers is how many numbers will be called. removed counts invalid, duplicate, blacklisted and DND numbers taken out. amount_held is the rupees held from your wallet. Save the request_id: it starts with V.
-
Get each call’s result by API or webhook
Call the report API with the request ID:
curl -G "https://www.fast2sms.com/dev/voice/report" \ -H "authorization: YOUR_API_KEY" \ --data-urlencode "request_id=VdQkbYrvgtOo2nG"Add numbers=1 to get every number’s status, duration, pulses, charge and key pressed. See voice call report and refunds by API. To receive results on your own URL, open Webhook, then Voice, and click Add Webhook. A Voice webhook sends one request per number after the campaign’s report is in, with fields such as status, duration, pulses, amount_debited and dtmf.

A Voice webhook posts each call result to your URL. -
See the same calls in Voice Report
API campaigns also show in Delivery Report under Voice Report, with Answered, No Answer, Busy, Failed, DND and Pending counts. Click a campaign to see each number.

Voice Report shows the result of every campaign.
Voice call API request fields
| Field | Required | Rules |
|---|---|---|
| numbers | Yes | Indian mobile numbers separated by commas, spaces or semicolons. Up to 1,00,000 per request. Invalid and duplicate numbers are removed. |
| file_id | Yes | The File ID of an approved voice file. |
| campaign_name | No | The name you see in the report. |
| schedule_time | No | YYYY-MM-DD HH:MM:SS in IST, inside calling hours. |
| idempotency_key | No | A unique string per campaign. If you send the same request again with the same key, you get the first campaign back instead of a second one. |
| dtmf_keys, agent_groups | No | Turn the call into a Key Press or Call Patch campaign. |
The full request, the reply and code in PHP, Python and Node.js are in send bulk voice calls with the Fast2SMS API.
Calling hours, charges and refunds
- Calling hours: calls go out only between 10 AM and 9 PM IST. If you send without schedule_time after 8:50 PM or before 10 AM, the campaign is scheduled for 10 AM. A schedule_time outside these hours is refused, and at 9 PM a running campaign is paused.
- Hold at send: the estimated cost is held from your wallet when the campaign is accepted.
- Only answered calls are charged, by the pulse. No answer, busy, failed, DND and blacklisted numbers cost nothing. See how the pulse price works.
- Automatic refund: the amount for unanswered and failed calls is credited back to your wallet about 1 hour after the campaign.

Sending in bulk? For high voice call volumes our team offers discounted rates. Talk to our team or see voice call pricing.
For each call status and charge, read voice call report, statuses, charges and refunds.
Common voice call API errors
| Message | Fix |
|---|---|
| A chosen voice file was not found or is not approved yet. Please choose it again. | Use the File ID of an Approved file. Check it in Voice Files or with GET /dev/voice/files. |
| You need to complete one transaction of ₹100.00 or more before sending voice calls. | Complete paid recharges of ₹100 or more in total. |
| Insufficient wallet balance. This campaign needs Rs X. | Recharge, or send fewer numbers. |
| Error 412 or 414 (HTTP 401) | The API key is wrong, or API Security is on and your server IP is not whitelisted. |
| Too many requests. Try again in N seconds. (HTTP 429) | The API takes up to 20 campaign requests a minute. Put many numbers in one request. |
Frequently asked questions
What is a voice call API?
It is a web API that places automated calls from your software. You send the numbers and an approved recording, and each number gets a call that plays it.
Is there a voice OTP API?
No. Fast2SMS does not send OTPs by voice call. Use Smart OTP, which sends OTPs on SMS and WhatsApp.
Do voice calls need DLT registration?
Bulk voice calls do not need DLT templates. Instead, the operator checks and approves each voice file before you can use it.
Are DND numbers called?
No. The operator does not dial DND numbers. They show as DND in the report and are not charged.
Can I upload a voice file by API?
No. Upload and approval happen in Voice Files in the panel. The API lists your files with GET /dev/voice/files and uses their File IDs.
Am I charged for unanswered calls?
No. Only answered calls are charged. The held amount for unanswered and failed calls comes back about 1 hour after the campaign.
Can I send automated voice calls without coding?
Yes. Use the Bulk Voice Call page in the panel to paste numbers, pick a voice file and send.