Send WhatsApp template

Sends a WhatsApp template message to the customer with customer_id.

Path Parameters
  • customer_id
    Type: integer
    required

    Identifier of the customer.

Body·
required
application/json
  • template_id
    Type: integer
    required

    ID of the WhatsApp template to send.

  • template_language
    Type: string
    required

    ISO language code of the template.

  • template_params
    Type: object
    required

    Values that fill the template's placeholders.

Responses
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/customers/{customer_id}/send_template/
curl https://api.landbot.io/v1/customers/1/send_template/ \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Token YOUR_AGENT_TOKEN' \
  --data '{
  "template_id": 1,
  "template_language": "en",
  "template_params": {
    "header": {
      "url": "https://example.com/header.jpg",
      "params": [
        "patata",
        "congrio"
      ]
    },
    "body": {
      "params": [
        "Peter",
        "Landbot"
      ]
    },
    "buttons": [
      null,
      {
        "params": [
          "img.jpg"
        ]
      }
    ]
  }
}'
{
  "success": true
}