Skip to main content
Calls are US phone calls. A number you purchase can place and receive calls as soon as the purchase completes — voice requires no 10DLC campaign registration. Check capabilities.calls on GET /numbers/{phone_number}. Every call executes a TwiML document. Supported verbs include <Say>, <Play>, <Pause>, <Gather> (keypad input), <Dial> (to a phone number), <Record>, <Redirect>, <Reject>, and <Hangup>.

Outbound calls

1

Place a call

Provide instructions either inline in twiml or via a url fetched when the call is answered (exactly one is required):
A 201 response returns the call with its id and initial status.
  • from must be a number owned by your account.
  • timeout_seconds sets ring duration (5–120, default 60).
  • time_limit_seconds sets maximum answered duration (30–14400, default 14400).
  • The maximum possible call cost is held from your balance at acceptance, and settled for actual usage when the call ends.
2

Follow the call

Subscribe a webhook to call.updated and call.completed, or poll the call:
status progresses through queued → ringing → in_progress → completed, or ends as busy, no_answer, failed, or canceled. Finished calls populate duration_seconds and, once settled, price.
3

Redirect or end a call in progress

Send a PATCH request with exactly one change per request:
  • {"status": "canceled"} cancels a call that has not been answered yet.
  • {"status": "completed"} hangs up a call in any state.
  • {"twiml": "..."} or {"url": "https://..."} replaces the instructions of an active call.

Receive a call

Configure voice_url on a number you own. Whenever someone calls that number, Omni requests your URL and executes the TwiML document it returns:
Respond from your voice_url with TwiML:
  • Set voice_fallback_url to handle failures reaching voice_url.
  • Set status_callback on the number to receive status updates for incoming calls.
  • Incoming calls appear in GET /calls with direction: "inbound". Any leg spawned by <Dial> has direction: "outbound_dial" and links back to its parent via parent_call_id.
Requests sent to your voice_url, voice_fallback_url, url, and status_callback endpoints use Twilio’s form-encoded parameters (CallSid, From, To, CallStatus) and carry an X-Twilio-Signature header — not the signed JSON described in Webhooks.