templates:read| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The WhatsApp template ID (template_id field, not the internal id) |
| Field | Type | Description |
|---|---|---|
id | integer | Internal template record ID |
template_id | string | WhatsApp template ID |
template_name | string | Template name identifier |
name | string | Alias for template_name (backward compatibility) |
language | string | Template language code |
category | string | Template category (MARKETING, UTILITY, AUTHENTICATION) |
status | string | Approval status (APPROVED, PENDING, REJECTED) |
header_data_format | string | Header type (TEXT, IMAGE, VIDEO, DOCUMENT, NONE) |
header_data_text | string | Header text content (may contain variables) |
header_params_count | integer | Number of header parameters |
header_file_url | string|null | Header media file URL |
header_variable_value | string|null | Header variable sample values |
body_data | string | Template body text |
body_params_count | integer | Number of body parameters |
body_variable_value | string|null | Body variable sample values |
footer_data | string|null | Footer text |
footer_params_count | integer | Number of footer parameters |
buttons_data | string|null | JSON-encoded buttons configuration |
message_send_ttl_seconds | integer|null | OTP message TTL in seconds |
add_security_recommendation | boolean | Whether security recommendation is added |
code_expiration_minutes | integer|null | OTP code expiration in minutes |
otp_button_config | object|null | OTP button configuration |
components | array | Raw template components data |
created_at | string | ISO 8601 timestamp |
updated_at | string | ISO 8601 timestamp |
| Status | Error Code | Description |
|---|---|---|
| 401 | UNAUTHORIZED | Invalid or missing API token |
| 403 | INSUFFICIENT_SCOPE | Token missing templates:read scope |
| 404 | NOT_FOUND | Template not found |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests |
| 500 | INTERNAL_ERROR | Failed to fetch template |
curl --location --request GET '/templates/template_abc123' \
--header 'Authorization: Bearer <token>'{}