Sends a WhatsApp message to the specified recipient using a pre-approved utility template. Supports body parameters, URL buttons, and an optional reference for tracking. See Send a message for details.
Sécurité
basicAuth and ApiKeyAuth
WhatsApp message request
Recipient phone number in E.164 format (e.g. +390000000000).
Exemple:"+390000000000"
Language code of the template to use (e.g. it, en). See supported languages. Falls back to the template's default language if not found.
Exemple:"it"
Optional reference object for tracking. See Reference Attribute for details.
Template body component with dynamic parameters. See Body component for details on how to use placeholders.
- Production environmenthttps://wa.namirialtsp.com/api/services/send
- Testing environmenthttps://wa.test.namirialtsp.com/api/services/send
curl -i -X POST \
-u '<username>:<password>' \
https://wa.namirialtsp.com/api/services/send \
-H 'Content-Type: application/json' \
-H 'X-Api-Key: YOUR_API_KEY_HERE' \
-d '{
"to": "+390000000000",
"language": "it",
"templateId": 3,
"body": {
"parameters": [
{
"text": "Rome"
},
{
"text": "m.rossi"
}
]
},
"urlButtons": [
{
"index": 0,
"urlPath": "/my/url/path"
}
],
"reference": {
"service": "DIGITALSIGN",
"action": "AUTH",
"key": "ext-key-001"
}
}'Réponse
{ "messageId": "3425151601" }