Anunzi IA Documentation
Ir a Anunzi IAAyuda al Cliente
  • Anunzi AI Calls API Documentation
    • Getting Started
    • 🔑Authentication & Security
  • Postman Collections
  • Postman Documentation
  • Assistants
    • 👨‍💼Assistants
      • 🔵Create Assistant
      • 🟣Update Assistant
      • 🟢Get Assistant
      • 🟢List Assistants
      • 🔴Delete Assistant
  • Calls
    • 📳Calls
      • 🔵Make Calls
      • 🔵Make SIP Trunk Call
      • 🟢List Calls
      • 🟢Get Call
      • Webhooks
      • Custom Variables
      • Dynamic Prompt Injection
      • Time Zones
  • Actions
    • 🪄Actions
      • 🔵Create Action
      • 🔵Initialize Custom Action
      • 🟣Update Action
      • 🔴Delete Action
      • 🟢Get Action
      • 🟢List Actions
      • 🔵Attach Action
      • 🔵Detach Action
  • Knowledge Bases
    • 📑Knowledge Bases
      • 🔵Create Knowledge Base
      • 🟢Get Knowledge Base
      • 🟣Update Knowledge Base
      • 🔴Delete Knowledge Base
      • 🔵Attach Knowledge Base
      • 🔵Detach Knowledge Base
  • Plataforma IA Generativa
    • Introducción a Anunzi IA
      • Cambiar el tema y el idioma
  • 📖TEXTO
    • Centro de Herramientas
    • Cómo crear una herramienta
    • Creador de Artículos
    • Cómo usar el Re-escritor
  • 🙋ASISTENTES
    • Crear categorías de chat
    • Crear Plantilla de Chat
    • Entrenamiento de chatbots
    • Cómo usar Asistentes IA
      • Usar comandos de voz
  • 🎨IMAGENES
    • Cómo usar el Creador de Imágenes
  • 🎶AUDIO
    • Pasar archivos de voz a texto (desgrabar)
    • Creador de Voz
    • Clonador de voz
  • Otras Funcionalidades
    • Programa de Afiliados
    • Equipos de trabajo
      • Administrar permisos del equipo
    • Cómo crear una Marca
  • Problemas Comunes
    • No funciona el enlace de confirmación
  • Actualizaciones
    • Novedades de la versión 7.4.2
Con tecnología de GitBook
En esta página

¿Te fue útil?

  1. Calls
  2. Calls

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": "success",
  "response": {
    "answer": "ok",
    "call_id": "1691579123700x31589864853004400"
  }
}

Status Codes

Code
Description

200

SIP call initiated successfully.

400

Bad Request. Invalid or missing parameters.

AnteriorMake CallsSiguienteList Calls

Última actualización hace 3 meses

¿Te fue útil?

📳
🔵