# templates

> Message templates: draft, lint, pre-submission check, submit, sync.

Message templates: draft, lint, pre-submission check, submit, sync.

| Method | Path | Operation | Scope | Test mode |
|---|---|---|---|---|
| GET | `/v1/template-library` | `template_library_list`: Curated template gallery | `templates:read` | - |
| GET | `/v1/template-trade-rules` | `templates_trade_rules_list`: The trade rules that apply to your templates | `templates:read` | - |
| GET | `/v1/templates` | `templates_list`: List templates | `templates:read` | yes |
| POST | `/v1/templates` | `templates_create`: Create a template draft (and submit) | `templates:write` | - |
| POST | `/v1/templates:generate` | `templates_generate`: AI-draft a template from a description | `ai:read` | - |
| POST | `/v1/templates:lint` | `templates_lint`: Lint a draft | `templates:read` | - |
| POST | `/v1/templates:precheck` | `templates_precheck`: Will WhatsApp refuse this template? | `templates:read` | - |
| POST | `/v1/templates:preview` | `templates_preview`: Render a preview | `templates:read` | - |
| DELETE | `/v1/templates/{template_id}` | `templates_delete`: Delete a template | `templates:write` | - |
| GET | `/v1/templates/{template_id}` | `templates_get`: Get a template | `templates:read` | yes |
| PATCH | `/v1/templates/{template_id}` | `templates_update`: Edit a template | `templates:write` | - |
| GET | `/v1/templates/{template_id}/analytics` | `templates_analytics`: Template analytics (sent, delivered, read, clicked) | `analytics:read` | - |
| POST | `/v1/templates/{template_id}/clone` | `templates_clone`: Clone to another channel / WABA | `templates:write` | - |
| POST | `/v1/templates/{template_id}/submit` | `templates_submit`: Submit to Meta for review | `templates:write` | - |
| POST | `/v1/templates/sync` | `templates_sync`: Pull templates and statuses from Meta | `templates:write` | - |

Request and response schemas: the interactive reference at `https://api.wapitick.com/docs`, or `docs/api/openapi.json`.
