Templates API

The Templates API allows you to create, manage, and retrieve message templates for consistent and compliant messaging across channels.

Available Endpoints

Get Templates

View endpoint

Retrieve a list of all available message templates in your account.

Get Template by ID

View endpoint

Retrieve detailed information about a specific template using its unique identifier.

Why Use Templates?

  • Compliance: Pre-approved templates ensure messaging compliance across channels
  • Consistency: Maintain brand voice and messaging standards
  • Efficiency: Reuse common message formats with variable substitution
  • Multi-channel: Templates work across SMS and WhatsApp

Template Variables

Templates support dynamic content through variables:

{
  "templateId": "welcome-template",
  "messageBody": {
    "name": "John Doe",
    "order_id": "12345",
    "delivery_date": "2024-01-15"
  }
}

Authentication

All Templates API endpoints require the standard authentication headers:

x-sender-id: YOUR_SENDER_ID
x-api-key: YOUR_API_KEY