For the complete documentation index, see llms.txt. This page is also available as Markdown.

Send message

POST /message/text
Authorization: Bearer <cartat_api_token>
Content-Type: application/json

Use this endpoint to send an approved template message by template name. Cartat selects the sending provider from the authenticated instance.

Request body

Field
Type
Required
Description

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.

Example

{
  "number": "+966501234567",
  "template_name": "invoice_ready",
  "parameters": {
    "customer_name": "John",
    "invoice_number": "INV-1001"
  }
}

Response