# Templates

HTML: https://www.app2email.com/docs/api/templates · Index: https://www.app2email.com/docs/api/llms.txt

Your WhatsApp templates: list, create, look up, delete.

| Method | Path | Summary | Scope | Sandbox key |
| --- | --- | --- | --- | --- |
| GET | `/v1/{number}/templates` | [List your templates, with an example request for each](https://www.app2email.com/docs/api/templates/list-templates.md) | `messages:read` | reads |
| POST | `/v1/{number}/templates` | [Create a template and submit it for approval](https://www.app2email.com/docs/api/templates/create-template.md) | `templates:manage` | refused |
| GET | `/v1/{number}/templates/{name}` | [One template: status, rejection reason, what it needs](https://www.app2email.com/docs/api/templates/get-template.md) | `messages:read` | reads |
| PATCH | `/v1/{number}/templates/{name}` | [Edit a template (components, category, TTL, max price)](https://www.app2email.com/docs/api/templates/edit-template.md) | `templates:manage` | refused |
| DELETE | `/v1/{number}/templates/{name}` | [Delete a template (every language, or one)](https://www.app2email.com/docs/api/templates/delete-template.md) | `templates:manage` | refused |
| POST | `/v1/{number}/templates/delete` | [Delete several templates at once (all or nothing)](https://www.app2email.com/docs/api/templates/delete-templates.md) | `templates:manage` | refused |
| POST | `/v1/{number}/templates/{name}/archive` | [Archive a template (deleted by WhatsApp after 28 days)](https://www.app2email.com/docs/api/templates/archive-template.md) | `templates:manage` | refused |
| POST | `/v1/{number}/templates/{name}/unarchive` | [Unarchive a template](https://www.app2email.com/docs/api/templates/unarchive-template.md) | `templates:manage` | refused |
| GET | `/v1/{number}/templates/{name}/compare` | [Compare two templates: block rate, sends, top block reason](https://www.app2email.com/docs/api/templates/compare-templates.md) | `messages:read` | reads |
| PUT | `/v1/{number}/templates/{name}/authentication` | [Create or update an authentication template in many languages](https://www.app2email.com/docs/api/templates/upsert-auth-template.md) | `templates:manage` | refused |
| GET | `/v1/{number}/template-previews` | [Authentication template texts, per language](https://www.app2email.com/docs/api/templates/preview-auth-templates.md) | `messages:read` | reads |
| GET | `/v1/{number}/template-library` | [Meta's Template Library (pre-approved templates)](https://www.app2email.com/docs/api/templates/list-template-library.md) | `messages:read` | reads |
| GET | `/v1/{number}/template-insights` | [Template insights: sent, delivered, read, clicked, cost](https://www.app2email.com/docs/api/templates/get-template-insights.md) | `messages:read` | reads |
| POST | `/v1/{number}/template-insights` | [Switch template insights on (cannot be undone)](https://www.app2email.com/docs/api/templates/enable-template-insights.md) | `templates:manage` | refused |
