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 A
twiml or via a url fetched when the call is answered (exactly one is required):201 response returns the call with its id and initial status.frommust be a number owned by your account.timeout_secondssets ring duration (5–120, default60).time_limit_secondssets maximum answered duration (30–14400, default14400).- 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
Configurevoice_url on a number you own. Whenever someone calls that number, Omni requests your URL and executes the TwiML document it returns:
voice_url with TwiML:
- Set
voice_fallback_urlto handle failures reachingvoice_url. - Set
status_callbackon the number to receive status updates for incoming calls. - Incoming calls appear in
GET /callswithdirection: "inbound". Any leg spawned by<Dial>hasdirection: "outbound_dial"and links back to its parent viaparent_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.