🔵Make SIP Trunk Call

POST https://api.anunzi.net/v2/agent/make_call_sip_outbound

Initiates a real-time phone call through the AI assistant using SIP (Session Initiation Protocol). This method is intended for VoIP-based integrations, allowing direct calls through SIP trunking instead of traditional phone networks.


Body Parameters

Parameter
Type
Required
Description

model_id

string

Yes

The Model-ID, which can be obtained from your Anunzi Agent Page.

to_phone_number

string

Yes

The SIP-enabled phone number or VoIP endpoint that the assistant will call.

name

string

Yes

Name of the person being called.

custom_variables

array of objects

No

Key-value pairs of custom variables dynamically injected into the prompt.

lead_email

string

No

Optional email of the lead for appointment booking.

lead_timezone

string

No

Optional time zone of the lead for appointment booking.

team_id

string

No

The ID of the team, which can be copied from the team details section.


Example Request (cURL)

curl --request POST \
     --url https://api.anunzi.net/v2/agent/make_call_sip_outbound \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --header 'Authorization: Bearer API_KEY' \
     --data '
{
  "model_id": "123131531x1561561",
  "to_phone_number": "+123456123",
  "name": "David"
}
'

Example Response (200 OK)


Status Codes

Code
Description

200

SIP call initiated successfully.

400

Bad Request. Invalid or missing parameters.

Última actualización