POST /message/text
Authorization: Bearer <cartat_api_token>
Content-Type: application/jsonUse this endpoint to send an approved template message by template name. Cartat selects the sending provider from the authenticated instance.
number
string
Yes
Receiver WhatsApp number with country code.
template_name
string
Yes
Approved template name.
parameters
object or array
No
Body variables for the template.
header
object
No
Header parameter when the template has a media or text header.
buttons
array
No
Button parameters when the template has dynamic buttons.
{
"number": "+966501234567",
"template_name": "invoice_ready",
"parameters": {
"customer_name": "John",
"invoice_number": "INV-1001"
}
}{
"status": "success",
"id": "wamid.xxxxx",
"to": "966501234567",
"type": "template",
"provider": "meta"
}