PAPI WhatsApp icon

PAPI WhatsApp

Interaja com a PAPI WhatsApp API

Central de Ligações → Criar Instância

AI-generated

Summary

Create a new call instance in the Central de Ligações resource with specified attributes.

Inputs

  • callInstanceName (required) — Name of the call instance to create.
  • callInstanceNumber — Phone number associated with the call instance.
  • callInstancePort — Chip port number (1-30) for the call instance, defaults to 1.
  • callInstanceMode — Mode of the call instance, with options: Manual, Áudio (Audio), or IA (AI). Defaults to Manual.
  • callInstanceDescription — Optional description for the call instance.

Output shape

a single JSON object representing the created call instance details returned by the API

The output contains the API response JSON from the POST call to '/api/call-instances', including the properties and values of the created instance.

Examples

Example 1: Create call instance with minimum required fields

set callInstanceName to a meaningful name; optionally set callInstanceNumber, callInstancePort, callInstanceMode, and callInstanceDescription.

Discussion