🔵Make Calls

POST https://api.anunzi.net/v2/calls

Initiates a real-time phone call through the AI assistant.


Body Parameters

Parameter
Type
Required
Description

model_id

string

Yes

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

team_id

string

No

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

phone

string

Yes

The phone number 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.

prompt

string

No

A custom prompt that will be used during the call.

greeting

string

No

The greeting message that the assistant will say at the beginning of the call.


Example Request (cURL)

curl --request POST \
     --url https://api.anunzi.net/v2/calls \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --header 'Authorization: Bearer API_KEY' \
     --data '
{
  "model_id": "5151351531x48646416",
  "phone": "+123456456",
  "name": "David"
}
'

Example Response (200 OK)

{
  "status": "success",
  "response": {
    "answer": "ok",
    "call_id": "1691579123700x31589864853004400"
  }
}

Status Codes

Code
Description

200

Call initiated successfully.

400

Bad Request. Invalid or missing parameters.

Última actualización

¿Te fue útil?