Enviar una comunicación
curl --request POST \
--url https://app.reinvented.education/api/v1/communications/send/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"template_slug": "recordatorio-curso",
"channel": "whatsapp",
"variables": {
"1": "Ana",
"2": "https://example.com/curso"
},
"recipients": [
"+573001112233",
"573004445566",
"not-a-phone"
],
"media": {
"url_pk": 2207,
"media": "image"
}
}
'import requests
url = "https://app.reinvented.education/api/v1/communications/send/"
payload = {
"template_slug": "recordatorio-curso",
"channel": "whatsapp",
"variables": {
"1": "Ana",
"2": "https://example.com/curso"
},
"recipients": ["+573001112233", "573004445566", "not-a-phone"],
"media": {
"url_pk": 2207,
"media": "image"
}
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
template_slug: 'recordatorio-curso',
channel: 'whatsapp',
variables: {'1': 'Ana', '2': 'https://example.com/curso'},
recipients: ['+573001112233', '573004445566', 'not-a-phone'],
media: {url_pk: 2207, media: 'image'}
})
};
fetch('https://app.reinvented.education/api/v1/communications/send/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 8812,
"status": "PARTIAL",
"queued": 2,
"invalid_recipients": [
"not-a-phone"
]
}Comunicaciones
Enviar una comunicación
Envía una plantilla aprobada a hasta 500 números de teléfono (WhatsApp) o direcciones de correo electrónico,
a través de la línea de WhatsApp de la empresa. Hasta 100 destinatarios válidos se ponen en cola durante la
solicitud; por encima de eso, el envío se procesa en segundo plano y status es PENDING.
Envía un header Idempotency-Key para que los reintentos sean seguros: una key repetida devuelve el
resultado original sin volver a enviar.
POST
/
v1
/
communications
/
send
/
Enviar una comunicación
curl --request POST \
--url https://app.reinvented.education/api/v1/communications/send/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"template_slug": "recordatorio-curso",
"channel": "whatsapp",
"variables": {
"1": "Ana",
"2": "https://example.com/curso"
},
"recipients": [
"+573001112233",
"573004445566",
"not-a-phone"
],
"media": {
"url_pk": 2207,
"media": "image"
}
}
'import requests
url = "https://app.reinvented.education/api/v1/communications/send/"
payload = {
"template_slug": "recordatorio-curso",
"channel": "whatsapp",
"variables": {
"1": "Ana",
"2": "https://example.com/curso"
},
"recipients": ["+573001112233", "573004445566", "not-a-phone"],
"media": {
"url_pk": 2207,
"media": "image"
}
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
template_slug: 'recordatorio-curso',
channel: 'whatsapp',
variables: {'1': 'Ana', '2': 'https://example.com/curso'},
recipients: ['+573001112233', '573004445566', 'not-a-phone'],
media: {url_pk: 2207, media: 'image'}
})
};
fetch('https://app.reinvented.education/api/v1/communications/send/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 8812,
"status": "PARTIAL",
"queued": 2,
"invalid_recipients": [
"not-a-phone"
]
}Autorizaciones
Encabezados
Cuerpo
application/json
Respuesta
Accepted. Invalid recipients are skipped and listed.

