Sip Outbound Call

Initiates a SIP outbound call using user-supplied SIP credentials in headers.

Authentication

AuthorizationBearer
Bearer authentication header of the form `Bearer <PHONIC_API_KEY>`. Manage your API keys [here](https://phonic.co/api-keys).

Headers

X-Sip-AddressstringRequired
SIP address of the user's SIP trunk. Required.
X-Sip-Auth-UsernamestringOptional
SIP auth username, if your provider requires it.
X-Sip-Auth-PasswordstringOptional
SIP auth password, if your provider requires it.

Request

This endpoint expects an object.
from_phone_numberstringRequired
Caller ID phone number in E.164 format.
to_phone_numberstringRequired
Destination phone number in E.164 format.
configobjectOptional

When an agent is provided, these config options override the agent settings.

dry_runbooleanOptionalDefaults to false

If true, validates the outbound call setup without placing a call. Returns HTTP 200 with conversation_id and twilio_call_sid set to null.

Response

Success response
SipOutboundDryRunResponseobject
OR
SipOutboundCallInitiatedResponseobject

Errors

400
Bad Request Error
401
Unauthorized Error
409
Conflict Error
500
Internal Server Error