API Reference
Communications
Encolá un email, WhatsApp o SMS con el token de equipo, listá los envíos del equipo y recuperá un registro para leer el estado. Misma autenticación que Contacts, Prompts y WhatsApp.
Para usar la app en el navegador, andá a Ayuda.
Authentication
Todas las requests usan el token de equipo. El equipo lo determina el Bearer, no un team_id.
Base URL: https://admin.idoneo.dev/api/team/communications
Authorization: Bearer YOUR_API_TOKENSend a communication
POSThttps://admin.idoneo.dev/api/team/communications
Responde 201 con status: pending. Email pide recipient_email y subject. WhatsApp y SMS piden teléfono (10–15 dígitos). Adjuntos en email y WhatsApp, campo attachments[], máx. 50 × 10 MB. SMS responde 422. Sin adjuntos el POST va como JSON. Con adjuntos, multipart: los paths ./factura.pdf y ./recibo-de-pago.pdf son archivos en tu máquina, no del servidor.
| Field | Type | Required | Description |
|---|---|---|---|
| channel | string | Yes | email, whatsapp or sms |
| message | string | Yes | Message body |
| recipient_email | string | If email | Recipient email address |
| subject | string | If email | Email subject (max 255) |
| recipient_phone | string | If WhatsApp/SMS | 10–15 digits. Non-digits are stripped. |
| recipient_name | string | No | Display name |
| contact_id | integer | No | Existing contact in the same team |
| metadata | object | No | Arbitrary JSON. In multipart, send a JSON string. |
| attachments | file[] | No | Email and WhatsApp. SMS returns 422. |
curl -X POST "https://admin.idoneo.dev/api/team/communications" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"channel": "email",
"recipient_email": "hola@idoneo.dev",
"recipient_name": "Tester",
"subject": "Tu factura",
"message": "Tu factura del período está lista. https://idoneo.dev",
"metadata": {
"source": "erp",
"external_id": "INV-1042"
}
}'curl -X POST "https://admin.idoneo.dev/api/team/communications" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"channel": "whatsapp",
"recipient_phone": "+34613194131",
"message": "Hola, tu pedido ya salió."
}'curl -X POST "https://admin.idoneo.dev/api/team/communications" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"channel": "sms",
"recipient_phone": "+34613194131",
"message": "Código 4821. Caduca en 10 minutos."
}'{
"success": true,
"message": "Communication queued successfully",
"data": {
"id": 1842,
"channel": "email",
"status": "pending",
"recipient_email": "hola@idoneo.dev",
"subject": "Tu factura",
"sent_at": null,
"attachments": [
{
"id": 12,
"file_name": "factura.pdf",
"mime_type": "application/pdf",
"size": 122880
},
{
"id": 13,
"file_name": "recibo-de-pago.pdf",
"mime_type": "application/pdf",
"size": 81920
}
]
}
}List communications
GEThttps://admin.idoneo.dev/api/team/communications
Devuelve los envíos del equipo. Sin sort salen por id descendente, el más nuevo primero. No hay un volcado sin página: pedí page hasta que current_page sea igual a last_page. El tope es 50 por página, igual que Mailer y Tickets.
| Query | Description |
|---|---|
| page | Página. Default 1. |
| per_page | Tamaño. Default 20. Máximo 50. |
| search | Asunto, email, nombre o teléfono. |
| channel | email, whatsapp o sms. |
| status | pending, sent o failed. |
| sent_today | true limita a enviados de hoy. Ignora status. |
| sort | id, created_at, sent_at, status, channel, subject, recipient_email, recipient_name, recipient_phone. Default id. |
| order | asc o desc. Default desc. |
curl "https://admin.idoneo.dev/api/team/communications?search=factura&channel=email&status=sent&sort=sent_at&order=desc&page=1&per_page=20" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"{
"success": true,
"data": [
{
"id": 1842,
"channel": "email",
"status": "sent",
"recipient_email": "hola@idoneo.dev",
"subject": "Tu factura",
"sent_at": "2026-09-18T13:54:08+00:00"
}
],
"pagination": {
"current_page": 1,
"last_page": 4,
"per_page": 20,
"total": 73
}
}Get a communication
GEThttps://admin.idoneo.dev/api/team/communications/{id}
Devuelve el mensaje, adjuntos y estado. Poll hasta sent o failed.
| Status | Description |
|---|---|
| pending | Queued or retrying. sent_at is null. |
| sent | Delivered to the provider. sent_at is ISO-8601. |
| failed | Did not send. Reason in error_message. |
curl "https://admin.idoneo.dev/api/team/communications/1842" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"{
"success": true,
"data": {
"id": 1842,
"channel": "email",
"status": "sent",
"recipient_email": "hola@idoneo.dev",
"error_message": null,
"sent_at": "2026-09-18T13:54:08+00:00",
"attachments": [
{
"id": 12,
"file_name": "factura.pdf",
"mime_type": "application/pdf",
"size": 122880
},
{
"id": 13,
"file_name": "recibo-de-pago.pdf",
"mime_type": "application/pdf",
"size": 81920
}
]
}
}401: token ausente o inválido. 404: el id no es de este equipo. WhatsApp fuera de la ventana de 24 h pasa a failed sin reintentos.
La misma referencia, con el token ya inyectado si estás logueado, está en Humano → Help → Communications API.