List templates
With no officialSenderId this returns every visible template. Each row includes officialSender, isPlatformNumber, headerType, headerAssetId, headerPreviewUrl, and allowsHeaderMediaOverride. Default status filter is active and approved.
When to use it. Before sending with template.key or template.id.
Code example
Correct: Approved WhatsApp templates
curl --request GET 'https://raselsms.com/api/v2/templates?category=whatsapp&status=approved' \--header 'X-API-Key: YOUR_API_KEY'Response example
200 — Approved WhatsApp templates
{ "data": [ { "id": "6800tpl123def4567890aaaa", "name": "order_ready_notice", "category": "whatsapp", "subType": "utility", "language": "ar", "status": "approved", "headerType": "image", "headerValue": null, "headerAssetId": null, "headerPreviewUrl": null, "allowsHeaderMediaOverride": true, "provider": "meta", "officialSenderId": "platform", "officialSender": { "id": "platform", "scope": "platform", "isPlatform": true, "isDefault": true, "label": null, "phoneNumber": null, "displayName": "platform" }, "isPlatformNumber": true, "isDefault": false, "createdAt": "2026-09-01T10:00:00.000Z" }, { "id": "6800tpl123def4567890bbbb", "name": "promo_offer", "category": "whatsapp", "subType": "utility", "language": "ar", "status": "approved", "headerType": "image", "headerValue": null, "headerAssetId": null, "headerPreviewUrl": null, "allowsHeaderMediaOverride": true, "provider": "meta", "officialSenderId": "6800abc123def4567890abcd", "officialSender": { "id": "6800abc123def4567890abcd", "scope": "official_sender", "isPlatform": false, "isDefault": false, "label": "SAWA", "phoneNumber": "+963911111111", "displayName": "SAWA · +963911111111" }, "isPlatformNumber": false, "isDefault": false, "createdAt": "2026-09-01T10:00:00.000Z" } ]}HTTP request
GET /api/v2/templates
Request Headers
| Header | Type | Description |
|---|---|---|
| X-API-Key | string | Your Rasel API key. Send it on every documented request except inbound webhooks. * |
Query parameters
| Field | Type | Description |
|---|---|---|
| category | whatsapp | sms | message | email | Template category: whatsapp, sms, message, or email. |
| status | pending | approved | rejected | active | disabled | Delivery or record status. On send: sent, queued, or scheduled. On other resources it is the row status filter or value. |
| provider | user_session | meta | internal | Template provider filter or value: user_session, meta, or internal. |
| limit | integer | Page size. Typical range is 1-50 for conversation context and 1-500 for account lists. |
| cursor | string | Opaque pagination cursor from the previous response. |
| officialSenderId | string | Official WhatsApp sender id from /api/v2/official-senders. Alias of sender.officialId. Use platform for the default Meta number when listing templates. |
Response Fields
| Field | Type | Description | Example |
|---|---|---|---|
| data | json | Primary payload for list and snapshot endpoints. | |
| pageInfo | object | Metadata for the current bounded page: whether another page exists, its cursor, and the page size. | |
| pageInfo.hasMore | boolean | true when more items exist beyond the current bounded list. * | |
| pageInfo.nextCursor | string | Cursor for the next page. null means this is the last page. Send it back unchanged. * | |
| pageInfo.limit | integer | Page size. Typical range is 1-50 for conversation context and 1-500 for account lists. * |
Status Codes
| Status | Description |
|---|---|
| 200 | Success. |
| 401 | Missing or invalid API key. |
| 404 | Resource not found for this API key owner. |
| 429 | Rate limit exceeded, or the maximum number of verification attempts was reached. |
| 403 | Phone not verified, missing permission, or the account cannot perform this action. |
| 413 | Request body exceeds the size limit. |
Try it
Parameters
Template category: whatsapp, sms, message, or email.
Delivery or record status. On send: sent, queued, or scheduled. On other resources it is the row status filter or value.
Template provider filter or value: user_session, meta, or internal.
Page size. Typical range is 1-50 for conversation context and 1-500 for account lists.
Opaque pagination cursor from the previous response.
Official WhatsApp sender id from /api/v2/official-senders. Alias of sender.officialId. Use platform for the default Meta number when listing templates.
Request
GET /api/v2/templates?category=whatsapp&status=pending&provider=user_sessionResponse
Example response
{ "data": [ { "id": "6800tpl123def4567890aaaa", "name": "order_ready_notice", "category": "whatsapp", "subType": "utility", "language": "ar", "status": "approved", "headerType": "image", "headerValue": null, "headerAssetId": null, "headerPreviewUrl": null, "allowsHeaderMediaOverride": true, "provider": "meta", "officialSenderId": "platform", "officialSender": { "id": "platform", "scope": "platform", "isPlatform": true, "isDefault": true, "label": null, "phoneNumber": null, "displayName": "platform" }, "isPlatformNumber": true, "isDefault": false, "createdAt": "2026-09-01T10:00:00.000Z" }, { "id": "6800tpl123def4567890bbbb", "name": "promo_offer", "category": "whatsapp", "subType": "utility", "language": "ar", "status": "approved", "headerType": "image", "headerValue": null, "headerAssetId": null, "headerPreviewUrl": null, "allowsHeaderMediaOverride": true, "provider": "meta", "officialSenderId": "6800abc123def4567890abcd", "officialSender": { "id": "6800abc123def4567890abcd", "scope": "official_sender", "isPlatform": false, "isDefault": false, "label": "SAWA", "phoneNumber": "+963911111111", "displayName": "SAWA · +963911111111" }, "isPlatformNumber": false, "isDefault": false, "createdAt": "2026-09-01T10:00:00.000Z" } ]}