List WhatsApp templates

Returns the WhatsApp templates available to send via POST /customers/{customer_id}/send_template/. If you have more than one channel, or migrated it, use the channel_id filter to avoid duplicates.

Query Parameters
  • channel_id
    Type: integer

    Filter templates by channel.

Responses
  • application/json
Request Example for get/channels/whatsapp/templates/
curl 'https://api.landbot.io/v1/channels/whatsapp/templates/?channel_id=1' \
  --header 'Authorization: Token YOUR_AGENT_TOKEN'
{
  "success": true,
  "templates": [
    {
      "id": 1,
      "params_number": 2,
      "text": "Hi {{1}}. Welcome to {{2}} on WhatsApp. Are you ready to begin?"
    }
  ]
}