Place an outbound call
to_number and connects the answered call to the specified agent.
outbound.default_caller_id and the SIP addresses your calls route to with Update a SIP Trunk. See Connecting to PolyAI Telephony for the outbound transport details.Destination number
Provideto_number in one of two ways:
country_code is optional. Only supply it when to_number is a national number that needs a region to be parsed — for a full E.164 number, leave it out.
The caller_id you present must be in E.164. If you omit it, the trunk’s default caller ID is used.
The response returns a call_sid (prefixed with OUT-). Use it with Get outbound call status to monitor the call.Authorizations
Path Parameters
The SIP Trunk's friendly ID (e.g. tr-...).
Body
The details of the outbound call to place.
The PolyAI agent that handles the outbound call.
The destination phone number in E.164, or a national number when country_code is supplied.
"+447700900123"
Optional caller ID to present on the call, in E.164 (e.g. +447700900123). If omitted, the trunk's default caller ID is used.
"+447700900000"
ISO 3166-1 alpha-2 country code used to parse a national to_number.
"GB"
Optional metadata attached to the call. The encoded payload is capped at roughly 26 KB.
Response
The call was accepted and queued.
The result of placing an outbound call.
Identifier for the placed call; use it to query the call status. Prefixed with OUT-.
"OUT-3f2a7c9e-1b4d-4e6a-9c8b-2d5f7a1e0c34"

