Enviar Mensaje
Envía un mensaje o inicia una llamada por cualquier canal público compatible. Nota de seguridad: Los estados 202 y 207 protegen contra envíos duplicados. No repitas automáticamente entregas aceptadas, ambiguas o parciales; respeta retryable y retry_after_ms. El inicio de una llamada también puede devolver HTTP 503 con el código conversation_flow_unavailable y retryable=true.
content) no pueden llevar un archivo adjunto. Para mandar una imagen, video o documento, usa template_id con una plantilla cuyo formato de header coincida, y pasa la URL del archivo en un componente header dentro de components (ver el ejemplo whatsapp_template_with_document más abajo). Las plantillas también funcionan fuera de la ventana de 24 horas de servicio al cliente. Crea y aprueba plantillas desde Integraciones → WhatsApp → Plantillas — ver Plantillas de mensaje.code: "call_suppressed". No se hizo ninguna llamada. Dos valores de reason se refieren a leads que esperan al equipo:lead_in_supportconretryable: false: el lead está esperando una respuesta del equipo, porque el agente de IA le pasó la conversación. Las llamadas automáticas a ese lead quedan en pausa hasta que el equipo cierre esa conversación. Reintentar antes devuelve la misma respuesta.lead_support_unverifiedconretryable: true: Nexor no pudo confirmar si el lead está esperando al equipo. La misma solicitud se puede reintentar tras una breve espera.
Autorizaciones
API key for authentication. Keys are prefixed with nxr_live_.
Cuerpo
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
whatsapp Plain text message body. Required for whatsapp (unless using template_id). For email: use content for plain text or html for formatted email.
1Lead to contact
WhatsApp template ID. Sends a template message instead of free-form text.
1Optional when the lead has exactly one active workflow run; otherwise required to disambiguate.
HTML email body. When provided, the email is sent with this HTML directly (not escaped). Use instead of content for formatted emails.
Email subject line. Defaults to 'Message from your advisor'.
Template parameters in Meta format. Used with template_id. To send a file (image, video, or document) as part of the message, include a header component whose parameter carries the file — see the whatsapp_template_with_document request example. The template must already be approved with a matching header format; free-form content messages cannot carry attachments.
Custom greeting for call channel. Overrides the workflow default.
Allowed only for call; restricts the voice agent tools for this call.
1 - 20 elements^[a-z][a-z0-9_]{0,127}$human, automation Respuesta
Message sent successfully
Whether the message was sent
Channel used
whatsapp, unsupervised-whatsapp, imessage, email, sms, call WhatsApp only: message type
text, template Internal message identifier
WhatsApp only: Meta wamid
Email only: delivery tracking ID
Call only: call identifier
Call only: initial status (registered)
Provider identifier returned for provider-specific channels.