Nabd Messaging
  1. Send with Template
Nabd Messaging
  • Getting Started
  • Send Message (WhatsApp)
    • Send plain text (WhatsApp)
      POST
  • Send Message (Telegram)
    • Send plain text (Telegram, by username)
      POST
    • Send plain text (Telegram, by user ID)
      POST
  • Send with Template
    • Send with template (WhatsApp)
      POST
    • Send with template (Telegram)
      POST
  • Send with Media
    • Send image or document (WhatsApp)
      POST
    • Send image or document (Telegram)
      POST
  • Managing Apps
  1. Send with Template

Send with template (WhatsApp)

POST
/api/create-message

Send a WhatsApp message using a template#

Endpoint: POST /api/create-message
Channel: WhatsApp (default)

Request body#

ParameterTypeRequiredDescription
authkeystringYesUser auth key
appkeystringYesApp key (WhatsApp device)
tostringYesRecipient phone number, max 13 chars
template_idstringYesUUID of the template (from Dashboard → My Templates)
variablesobjectNoPlaceholder values. Keys: "1", "2", ... (string indices). Values: replacement text
Replace TEMPLATE_UUID_FROM_DASHBOARD with the actual template UUID. Adjust variable keys to match your template placeholders.

Request

Header Params

Body Params application/json

Examples

Responses

🟢200
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/create-message' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
  "authkey": "{{authkey}}",
  "appkey": "{{appkey}}",
  "to": "966501234567",
  "template_id": "TEMPLATE_UUID_FROM_DASHBOARD",
  "variables": {
    "1": "Customer Name",
    "2": "Order #123"
  }
}'
Response Response Example
{}
Modified at 2026-03-03 23:38:15
Previous
Send with Template
Next
Send with template (Telegram)
Built with