URL:
Método: POST
X-API-KEY obligatorio.send_sms.401 Unauthorized si la clave no es válida; 403 Forbidden si carece de permisos.Envía un SMS al número indicado. Existen dos modos mutuamente excluyentes:
messageBody.journeyID, templateID y templateParams.Content-Type: application/jsonX-API-KEY: tu-api-key-aquí| Parámetro | Tipo | Descripción |
|---|---|---|
| recipient | string | Obligatorio. Número móvil en formato internacional, ej. +573001234567. |
| messageBody | string | Condicional. Texto del SMS. Requerido si no se usa Journey. La longitud máxima depende de la codificación y de caracteres especiales (por ej. GSM vs. UCS2). |
| journeyID | string | Condicional. GUID del flujo automatizado BETA. Requiere templateID y templateParams. No usar con messageBody. |
| templateID | string | Condicional. GUID de la plantilla. Obligatorio si se usa Journey. |
| templateParams | object | Condicional. Variables para la plantilla, ej.:{ "name": "María López", "order": "78910" } |
| programmedDate | string | Opcional. Fecha y hora UTC para envío programado (ISO 8601), ej. 2025-07-11T09:00:00Z. Si se omite, se envía inmediatamente. |
| flashMessage | boolean | Opcional. Si true, se envía como SMS Flash (no almacenado). Default false. |
messageBody varía según la codificación y caracteres especiales.{
"recipient": "+573001234567",
"messageBody": "Hola Juan, tu código de acceso es 4572."
}
Respuesta 200:
{
"smsId": "64ccdfb4ddf40404f498e5b2",
"status": "Queued"
}
{
"recipient": "+573001234567",
"messageBody": "Recordatorio: tu cita médica es mañana a las 10:00 AM.",
"programmedDate": "2025-07-10T08:00:00Z"
}
Respuesta 200:
{
"smsId": "73dde2b5eedf50405f499e6c3",
"status": "Queued",
"scheduledFor": "2025-07-10T08:00:00Z"
}
{
"recipient": "+573001234567",
"messageBody": "Alerta de seguridad: se detectó un inicio de sesión desde un dispositivo desconocido.",
"flashMessage": true
}
Respuesta 200:
{
"smsId": "82eef3c6ffe060506f500f7d4",
"status": "Queued"
}
{
"recipient": "+573001234567",
"journeyID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"templateID": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"templateParams": {
"customerName": "María López",
"orderNumber": "78910",
"deliveryDate": "2025-07-11"
}
}
Respuesta 200:
{
"smsId": "91ff04d7a00f710607f511e85",
"status": "Queued"
}
{
"recipient": "+573001234567",
"programmedDate": "2025-07-11T09:00:00Z",
"journeyID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"templateID": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"templateParams": {
"customerName": "María López",
"orderNumber": "78910",
"trackingLink": "https://tracking.example.com/78910"
},
"flashMessage": true
}
Respuesta 200:
{
"smsId": "a2gg15e8b11g820708g622f96",
"status": "Queued",
"scheduledFor": "2025-07-11T09:00:00Z"
}
Las descripciones de error siempre se entregan en inglés.
{
"error": "The 'messageBody' field is required when 'journeyID' is not specified."
}
{
"error": "API Key is missing or invalid."
}
{
"error": "API Key does not have permission to send SMS."
}
{
"error": "Internal server error. Please contact support."
}
URL:
Method: POST
X-API-KEY header required.send_sms permission.401 Unauthorized if invalid; 403 Forbidden if insufficient permissions.Sends an SMS to the specified number. Two mutually exclusive modes:
messageBody.journeyID, templateID, and templateParams.Content-Type: application/jsonX-API-KEY: your-api-key-here| Parameter | Type | Description |
|---|---|---|
| recipient | string | Required. Mobile number in international format, e.g. +573001234567. |
| messageBody | string | Conditional. SMS text. Required if not using Journey mode. Length varies by encoding and special characters (e.g. GSM vs. UCS2). |
| journeyID | string | Conditional. GUID of the Journey flow BETA. Requires templateID and templateParams. Do not use with messageBody. |
| templateID | string | Conditional. GUID of the template. Required when using Journey mode. |
| templateParams | object | Conditional. Variables for the template, e.g.:{ "name": "Sarah", "order": "78910" } |
| programmedDate | string | Optional. UTC date/time for scheduled delivery (ISO 8601), e.g. 2025-07-11T09:00:00Z. If omitted, sent immediately. |
| flashMessage | boolean | Optional. If true, send as Flash SMS (not stored on receiver device). Default is false. |
messageBody length varies by encoding and special characters.{
"recipient": "+573001234567",
"messageBody": "Hello John, your access code is 4572."
}
Response 200:
{
"smsId": "64ccdfb4ddf40404f498e5b2",
"status": "Queued"
}
{
"recipient": "+573001234567",
"messageBody": "Reminder: your medical appointment is tomorrow at 10:00 AM.",
"programmedDate": "2025-07-10T08:00:00Z"
}
Response 200:
{
"smsId": "73dde2b5eedf50405f499e6c3",
"status": "Queued",
"scheduledFor": "2025-07-10T08:00:00Z"
}
{
"recipient": "+573001234567",
"messageBody": "Security alert: a login was detected from an unknown device.",
"flashMessage": true
}
Response 200:
{
"smsId": "82eef3c6ffe060506f500f7d4",
"status": "Queued"
}
{
"recipient": "+573001234567",
"journeyID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"templateID": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"templateParams": {
"customerName": "Sarah",
"orderNumber": "78910",
"deliveryDate": "2025-07-11"
}
}
Response 200:
{
"smsId": "91ff04d7a00f710607f511e85",
"status": "Queued"
}
{
"recipient": "+573001234567",
"programmedDate": "2025-07-11T09:00:00Z",
"journeyID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"templateID": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"templateParams": {
"customerName": "Sarah",
"orderNumber": "78910",
"trackingLink": "https://tracking.example.com/78910"
},
"flashMessage": true
}
Response 200:
{
"smsId": "a2gg15e8b11g820708g622f96",
"status": "Queued",
"scheduledFor": "2025-07-11T09:00:00Z"
}
Error descriptions are always in English.
{
"error": "The 'messageBody' field is required when 'journeyID' is not specified."
}
{
"error": "API Key is missing or invalid."
}
{
"error": "API Key does not have permission to send SMS."
}
{
"error": "Internal server error. Please contact support."
}