New guide: how to register your sender ID and templates for India (DLT). Read now →
Log in
Telnxo
Voice API & IVR

Place, receive and automate calls from your code

Make outbound calls, answer inbound ones, build keypad menus, play text-to-speech and recordings, and follow every call event by webhook.

An AI assistant transcribes and summarises calls, so a supervisor reads a paragraph and not a recording.

Start freeBook a demo
Inbound number
FIELD
WHEN
GOES TO
Call
incoming
POST /voice/in
Status
events
POST /voice/events
Failover
if down
backup number
Listening
Webhook URL
Any number
Point a number at your appAssign a number to your account and set the webhook URL. Every incoming call is posted to your endpoint, which answers with instructions.
Caller
Telnxo
From
To
Digits
{
"from": "+9198…",
"to": "+9180…",
"digits": "1",
"event": "gather"
}
POST to your webhook
Structured
Digits
Every call becomes dataThe caller, the number dialled and any key presses are sent to your webhook as JSON, and your reply decides what happens next.
Call instructions
say: "Welcome to Acme"
gather: digits=1
say: "Press 1 for sales"
timeout: 5s
on_digit: /menu
record: true
transfer: +9180••0001
hangup: on done
Say · text-to-speechSpoken
Gather · keypadDigits
Transfer · agentConnected
Say
Gather
Record
Text to speech
Keypad input
Answer with instructionsYour webhook replies with what to say, which digits to collect and where to send the call. The platform runs it on the line.
Call events
Signed POST
/voice/events
200 OK
CRM
200 OK
Workflow
Retry in 30s
Webhook
Retries
Call events as they happenRinging, answered, key pressed, completed and failed events are signed and posted to your endpoint, with retries until it acknowledges.
GET /v1/recordings/rec_[id]
GET /v1/recordings/rec_[id]
Accept: audio/mpeg
Response
200 OK
{ "recording": {
"url": "…" } }
Short-lived links
Recording ready
Pull or push
Signed URLs
Fetch recordings on demandRecordings stay in storage until you ask for them, so webhooks stay small and fast. Links are short-lived and signed.
Call assistant
AI
“Where is my order?”Order status
Agent
“I want to pay a bill”Payment
Billing
“Stop calling me”Opt-out
Suppress
“Hmm, not sure…”Unclear
Human
Intent detection
Human fallback
AI listens, summarises and routesCalls are transcribed and classified by intent, then sent to the right queue or webhook. Low-confidence calls go to a person instead of guessing.
Number
Payload
Instructions
Events
Recording
AI router
SMS APIWhatsApp APIRCS messagingVoice and IVRSIP trunkingOTP and verificationWebhooksSender ID registrationTemplatesNumber lookupDelivery analyticsOpt-out listsSMS APIWhatsApp APIRCS messagingVoice and IVRSIP trunkingOTP and verificationWebhooksSender ID registrationTemplatesNumber lookupDelivery analyticsOpt-out lists
Capabilities

Programmable calls, from a single dial to a full IVR

Outbound and inbound calls

Place a call with one request, and answer calls to your numbers with a webhook that returns instructions, so one API covers reminders and support lines.

Place a call with one request, or answer one with a webhook. The same instructions drive both, so a reminder campaign and a support line run on one integration, and you switch between them by changing what your code returns.

  • POST /v1/calls for outbound
  • Webhook on your number for inbound
  • Same instruction set for both

IVR menus with keypad input

Play a prompt, collect the digits pressed and route the call by the answer, with timeouts, retries and a hand-off to an agent.

Play a prompt, gather the keys the caller presses and route on the digit. Timeouts, repeat prompts and a hand-off to an agent are part of the flow, and each step is a webhook call so your menus can read from your own data.

  • Single and multi-digit input
  • Timeouts and retries
  • Transfer to an agent or SIP endpoint

Text-to-speech and audio files

Speak dynamic text such as names, amounts and dates with text-to-speech, or play your own recorded files, so prompts change without a studio session.

Speak names, amounts and dates with text-to-speech, or play your own audio for fixed prompts like greetings and legal notices. Change the wording in your code and it is live on the next call, with no recording session.

  • Dynamic text read aloud
  • Your own audio files
  • Language and voice chosen per call

Call recording

Record whole calls or parts of them, with a consent prompt where the law needs one, and fetch recordings by API or from the console.

Record a whole call or only part of it, such as a payment confirmation, and play a consent notice first where the law requires it. Recordings are stored for you to fetch by API or from the console, with the call they belong to.

  • Full or partial recording
  • Consent prompt option
  • Fetch by API or console

Call events by webhook

Ringing, answered, key pressed, completed and failed events are signed and posted to your endpoint as the call progresses, with the reason when it ends.

Every call produces events: ringing, answered, key pressed, completed or failed. They are posted to your webhook, signed, and retried until you acknowledge, so your system always knows how a call ended and why.

  • Reason on every ended call
  • Signed and retried
  • Duration and status per call

Caller ID and number control

Show a registered number as caller ID, and send inbound calls on your numbers to an IVR, an agent or a SIP endpoint, following each country's rules.

Show a registered number as caller ID, and route inbound calls on your numbers to an IVR, an agent or a SIP endpoint. Concurrent channels and calls per second are visible in the console, so you can size campaigns without surprises.

  • Caller ID by country rules
  • Inbound routing per number
  • Channel and call-rate limits shown

How it works

Your appPlaces a call with POST /v1/calls, or answers an inbound call with instructions from your webhook.
Telnxo platformRuns the instructions, handles SIP signalling and media, applies channel and call-rate limits, records on request and posts events.
Telephone networkThe call reaches the phone, and the answer, digits and outcome flow back to your app.
STEP 1

Get a number and a key

Choose or port a number for your country and create an API key. Caller ID and registration rules for each market are shown in the console.

STEP 2

Write the call flow

Send instructions with the call request, or return them from your webhook: say, play, gather digits, record, transfer and hang up.

STEP 3

Place the call and listen

Call the API, then follow the call events and recordings from your webhook and from the call log.

See it in action

Voice API & IVR in action

Each stage plays automatically. Select one to pause on it. Illustrative interface: all figures and addresses shown are sample data.

app.telnxo.com/voiceSample data
Number
Assigned
Type
Local
Webhook
Set
Sample activityConnect
numberassigned to account
webhookurl saved
testcall reached webhook
readyflow live
Say
TTS
Gather
1 digit
Record
On
Sample activityBuild
saywelcome prompt
gatherdigit collected
routepress 1 to sales
recordrecording started
Status
202
Channels
Paced
Caller ID
Set
Sample activityCall
requestPOST /v1/calls
queuedwithin channel limit
ringingcall placed
answeredflow running
Events
Signed
Recording
Stored
Result
Completed
Sample activityObserve
ringingevent posted
answeredevent posted
completedduration logged
recordingavailable by API
For developers

Describe the call, and we run it

A call is a list of instructions. Send them with the request or return them from your webhook, and the platform handles signalling, media, codecs and retries underneath.

  • Outbound calls with POST /v1/calls
  • Inbound webhooks that return instructions
  • Keypad input and text-to-speech in one flow
  • Signed call events and downloadable recordings
At a glance01 / 05
Base URLapi.telnxo.com/v1
OutboundPOST /v1/calls
InboundWebhook on your number returns instructions
ControlsSay, play, gather, record, transfer, hang up
EventsSigned call event webhooks
Overview

What is a voice API?

A voice API lets software place and answer phone calls. Your code asks for a call to a number, or receives a webhook when someone dials one of your numbers, and replies with instructions such as say this, play that, collect a digit or record the call. The platform runs the instructions on the telephone network and reports what happens.

An IVR, or interactive voice response, is a menu a caller navigates by pressing keys or speaking, for example press 1 for sales. It is built from the same instructions: a prompt, a gather step for the digits, and a route to the next step or to a human agent. Under the hood, calls use SIP signalling and RTP media with standard codecs such as G.711, and you only see the instructions and events.

Voice also has its own limits. Concurrent channels cap how many calls can be live at once, calls per second cap how fast you can start them, and each country has rules for caller ID, calling hours and recording consent. Planning these early is the difference between a reminder campaign that finishes and one that stalls.

Use cases

Common voice API use cases

Appointment and payment reminders

Call customers with a spoken reminder, let them confirm or reschedule by pressing a key, and write the answer back to your system.

Voice OTP

Read a one-time code aloud as the last fallback, which reaches landlines and phones where messages are not delivered.

Support IVR and routing

Greet callers, offer a keypad menu and route by choice, time of day or language to the right queue or agent.

Order and delivery confirmation

Call to confirm a cash-on-delivery order or a delivery slot before dispatch, and record the answer.

Alerts and emergency notices

Reach people who do not read messages, with repeat attempts and an acknowledgement key to show who heard the notice.

Surveys and feedback calls

Ask a short set of questions answered on the keypad, with results collected by webhook and no agent time.

Choosing a method

Voice API or SIP trunking?

Both carry calls on the same network. Choose by who controls the call flow.

Voice APISIP trunking
Best forCalls driven by code: reminders, IVR and voice OTPConnecting an existing PBX or contact centre
ControlInstructions over HTTPS and webhooksYour own telephony platform and dial plan
You buildApplication logic onlySignalling, media handling and routing
VisibilityCall events and recordings by APICall records from your own system plus ours

You can use both on one account: a SIP trunk for your agents, and the voice API for automated calls and IVR, sharing the same numbers.

AI features

AI-assisted voice

Assist

Call summaries

When transcription is enabled, an assistant writes a short summary and the outcome of each call, so supervisors and CRMs get text instead of audio.

Assist

Intent routing

Spoken requests are classified by intent and sent to the right queue or webhook. Low-confidence calls go to a person instead of guessing.

Predictive

Quality alerts

Models watch answer rates, call length and failure patterns by route, and warn you when a route is degrading, before campaigns stall.

Assist

Prompt writer

Drafts shorter, clearer IVR prompts and text-to-speech scripts for your menu, with number and date formats that read aloud well.

AI features are assistive: they summarise, classify and suggest, and your team approves prompts, routing rules and any action taken on a call.

Best practices

Best practices for voice and IVR

Keep menus short

Offer three or four options and put the most common one first. Callers lose patience after the second layer of menus, so give a way to reach a person.

Write prompts for the ear

Use short sentences, say numbers digit by digit and pause between items. Test the text-to-speech output in the language and accent of your callers.

Plan channels and call rate

Estimate peak concurrent calls and how fast you need to start them. Pace campaigns to your concurrent channel and calls-per-second limits.

Respect calling hours and consent

Keep outbound calls inside local hours, honour do-not-call rules, and play a recording notice where the country requires consent.

Handle every outcome

Plan for no answer, busy, voicemail and failed calls. Use the call events to retry sensibly and to stop after a set number of attempts.

Use a registered caller ID

Present a number that rings back to your business. Unknown or unregistered numbers are often blocked or ignored by recipients.

FAQs

Voice API and IVR: frequently asked questions

Planning a high-volume call campaign? Our team can help you size channels and call rate before you launch.

What is a voice API?

It is an interface for placing and answering phone calls from software. You describe what the call should do, such as speak, collect digits or record, and the platform runs it and reports the events back.

How do I build an IVR menu?

Answer the inbound call from your webhook with a prompt and a gather step for the keypad digits. When the digit arrives, your webhook returns the next instructions, such as another prompt or a transfer.

Can I make outbound calls at scale?

Yes. Calls are placed with one request each, paced to your concurrent channel and calls-per-second limits. Calls above the limit queue instead of failing.

Can I record calls?

Yes, whole calls or parts of them. Recordings are stored for you to fetch by API or in the console, and you can play a consent notice first where the country needs one.

Which languages does text-to-speech support?

[List the supported text-to-speech languages and voices here once confirmed.]

Can I use my own phone numbers or PBX?

Yes. You can get numbers from us, or connect an existing PBX or contact centre through SIP trunking, and use both with the same account.

Which countries can I call?

[List the supported destination countries and caller ID rules here once confirmed.]

Does the AI assistant act on calls by itself?

No. It transcribes, summarises and suggests routing, but your team sets the rules and approves any action taken on a call.

From the blog

Latest analysis, trends and market data

Start messaging in minutes.

Create an account, register your sender and send your first SMS or WhatsApp message.

Get started Talk to sales