curl --request POST \
--url https://{your-prod-endpoint}/whatsapp/messages/template \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"phoneNumber": "+34600111222",
"templateId": "2f3f8e64-2a1d-4b73-b7e4-9f0a7d6f8e10",
"params": [
"Dr. García",
"martes 15 de julio",
"11:00",
"Cardiología - Centro Norte"
]
}
'{
"messageId": "<string>",
"status": "queued"
}{
"status": "error",
"code": 123,
"error_code": "<string>",
"message": "<string>"
}WhatsApp Notifications
Send appointment confirmation or reminder
Sends a notification to the patient via WhatsApp using a Meta-approved template, referenced by templateId.
- Use it to send the appointment confirmation right after scheduling.
- Also use it to send the reminder before the appointment day.
- Templates and their variables are configured in the Omniloy panel.
POST
/
whatsapp
/
messages
/
template
curl --request POST \
--url https://{your-prod-endpoint}/whatsapp/messages/template \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"phoneNumber": "+34600111222",
"templateId": "2f3f8e64-2a1d-4b73-b7e4-9f0a7d6f8e10",
"params": [
"Dr. García",
"martes 15 de julio",
"11:00",
"Cardiología - Centro Norte"
]
}
'{
"messageId": "<string>",
"status": "queued"
}{
"status": "error",
"code": 123,
"error_code": "<string>",
"message": "<string>"
}Authorizations
API Key provided by Omniloy. The same key is used for inbound and outbound calls.
Body
application/json