Templates API
Retrieve message templates for consistent messaging across SMS and WhatsApp channels.
Endpoints
GET/v2/templates
List all available templates
GET/v2/templates/id
Get specific template by ID
POST/v2/templates
Create a new message template
DELETE/v2/templates/{id}
Delete a template permanently
Key Features
- Dynamic Variables: Numbered IDs with unified props and types
- Multi-channel: Channel-specific bodies with multiChannel fallback
- Category Support: Templates organized by category (Marketing, Utility, Authentication)
Authentication
All endpoints require the following headers:
x-api-key
: Customer API keyx-sender-id
: Customer/sender ID (UUID format)
Error Responses
Standard error format with title
, detail
, and status
fields. Common scenarios: 400 (validation), 401 (missing/invalid auth headers), 404 (not found), 500 (server error).
Rate Limits
- Create Template: 10 requests/minute
- Get Templates: 100 requests/minute
- Get Template by ID: 100 requests/minute
- Delete Template: 10 requests/minute