Skip to content

Voice

Deliver a pre-recorded audio message to PSTN numbers — up to 1,000 destinations in a single request.

Terminal window
curl -X POST https://api.9bits.net/voice/v1/voice/sendvoice \
-H "Authorization: Bearer $NINEBITS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"to": ["2348020000000", "2348030000000"],
"media_url": "https://cdn.example.com/audio/reminder.mp3"
}'

You host the audio; we fetch it, transcode it for GSM voice, and play it when the call is answered.

Your account is provisioned with a caller ID automatically at signup. You can omit from and we’ll use it.

If your account has several, one is chosen at random. When it matters which number appears — and for anything customer-facing it usually does — pass from explicitly.

You’re billed on call_duration, not total_duration:

FieldWhat it measures
total_durationWall-clock, including ring time
call_durationBilled — connected time only

Both arrive on the webhook, along with total_amount.