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

Header
Authorization: Bearer YOUR_API_TOKEN

Send 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.

FieldTypeRequiredDescription
channelstringYesemail, whatsapp or sms
messagestringYesMessage body
recipient_emailstringIf emailRecipient email address
subjectstringIf emailEmail subject (max 255)
recipient_phonestringIf WhatsApp/SMS10–15 digits. Non-digits are stripped.
recipient_namestringNoDisplay name
contact_idintegerNoExisting contact in the same team
metadataobjectNoArbitrary JSON. In multipart, send a JSON string.
attachmentsfile[]NoEmail and WhatsApp. SMS returns 422.
Email
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"
  }
}'
WhatsApp
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ó."
}'
SMS
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."
}'
201
{
  "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.

QueryDescription
pagePágina. Default 1.
per_pageTamaño. Default 20. Máximo 50.
searchAsunto, email, nombre o teléfono.
channelemail, whatsapp o sms.
statuspending, sent o failed.
sent_todaytrue limita a enviados de hoy. Ignora status.
sortid, created_at, sent_at, status, channel, subject, recipient_email, recipient_name, recipient_phone. Default id.
orderasc o desc. Default desc.
GET
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"
200
{
  "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.

StatusDescription
pendingQueued or retrying. sent_at is null.
sentDelivered to the provider. sent_at is ISO-8601.
failedDid not send. Reason in error_message.
GET
curl "https://admin.idoneo.dev/api/team/communications/1842" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
200
{
  "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.