> For the complete documentation index, see [llms.txt](https://docs.360dialog.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.360dialog.com/docs/inbox/inbox-api/api-ref/templates.md).

# Templates

Message Templates management proxy

## GET /api/v1/templates/

> List all your message templates.

```json
{"openapi":"3.0.3","info":{"title":"360dialog Inbox API","version":"1.28.0"},"tags":[{"name":"Templates","description":"Message Templates management proxy"}],"servers":[{"url":"https://{YOUR_STACK_NAME}.inbox.getchat.360dialog.io/","description":"Your Inbox address. Open the Inbox from the 360dialog Hub to see it.","variables":{"YOUR_STACK_NAME":{"default":"your-stack","description":"The first part of your Inbox address"}}}],"security":[{"tokenAuth":[]}],"components":{"securitySchemes":{"tokenAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"A user token, sent as `Token <token>`. Create a user in the admin panel (group App integration) and get its token from `POST /api/v1/auth/token/`. The channel API key (`D360-Api-Key`) is not supported."}},"schemas":{"PaginatedTemplateList":{"type":"object","required":["count","results"],"properties":{"count":{"type":"integer"},"next":{"type":"string","nullable":true,"format":"uri"},"previous":{"type":"string","nullable":true,"format":"uri"},"results":{"type":"array","items":{"$ref":"#/components/schemas/Template"}}}},"Template":{"type":"object","properties":{"name":{"type":"string","description":"The name of the message template."},"category":{"type":"string","description":"The type of message template.\n    Values: ACCOUNT_UPDATE, PAYMENT_UPDATE, PERSONAL_FINANCE_UPDATE, SHIPPING_UPDATE, RESERVATION_UPDATE,\n    ISSUE_RESOLUTION, APPOINTMENT_UPDATE, TRANSPORTATION_UPDATE, TICKET_UPDATE, ALERT_UPDATE, AUTO_REPLY\n    "},"language":{"type":"string","description":"The language of message template, e.g. `en_US`"},"components":{"type":"array","items":{},"description":"The list of definitions of parts of\n        message template. See\n        [WhatsApp Business API Documentation](https://developers.facebook.com/docs/whatsapp/business-management-api/message-templates).\n        "},"id":{"type":"string","readOnly":true},"rejected_reason":{"type":"string","readOnly":true},"status":{"type":"string","readOnly":true}},"required":["category","components","id","language","name","rejected_reason","status"]}}},"paths":{"/api/v1/templates/":{"get":{"operationId":"listTemplates","description":"List all your message templates.","parameters":[{"name":"limit","required":false,"in":"query","description":"Number of results to return per page.","schema":{"type":"integer"}},{"name":"offset","required":false,"in":"query","description":"The initial index from which to return the results.","schema":{"type":"integer"}}],"tags":["Templates"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedTemplateList"}}},"description":""}}}}}}
```

## POST /api/v1/templates/

> Create a new message template.\
> \
> Editing templates is not supported.\
> To update one of your templates, please delete current template\
> and then create a new one.\
> \
> Entire body schema follows schema as explained in\
> \[WhatsApp Business API Message Templates documentation]\(<https://developers.facebook.com/docs/whatsapp/business-management-api/message-templates).\\>
> \
> In above link, you can find more information about parameters, components, and buttons.\
> There is also a list of all supported languages\
> \[here]\(<https://developers.facebook.com/docs/whatsapp/business-management-api/message-templates#response).\\>
> \
> The template is created via the\
> \[360dialog Messaging API]\(<https://docs.360dialog.com/docs/messaging-api/api-reference/templates)\\>
> and the result object contains \`id\`, \`status\` and \`category\` of the new template.

```json
{"openapi":"3.0.3","info":{"title":"360dialog Inbox API","version":"1.28.0"},"tags":[{"name":"Templates","description":"Message Templates management proxy"}],"servers":[{"url":"https://{YOUR_STACK_NAME}.inbox.getchat.360dialog.io/","description":"Your Inbox address. Open the Inbox from the 360dialog Hub to see it.","variables":{"YOUR_STACK_NAME":{"default":"your-stack","description":"The first part of your Inbox address"}}}],"security":[{"tokenAuth":[]}],"components":{"securitySchemes":{"tokenAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"A user token, sent as `Token <token>`. Create a user in the admin panel (group App integration) and get its token from `POST /api/v1/auth/token/`. The channel API key (`D360-Api-Key`) is not supported."}},"schemas":{"Template":{"type":"object","properties":{"name":{"type":"string","description":"The name of the message template."},"category":{"type":"string","description":"The type of message template.\n    Values: ACCOUNT_UPDATE, PAYMENT_UPDATE, PERSONAL_FINANCE_UPDATE, SHIPPING_UPDATE, RESERVATION_UPDATE,\n    ISSUE_RESOLUTION, APPOINTMENT_UPDATE, TRANSPORTATION_UPDATE, TICKET_UPDATE, ALERT_UPDATE, AUTO_REPLY\n    "},"language":{"type":"string","description":"The language of message template, e.g. `en_US`"},"components":{"type":"array","items":{},"description":"The list of definitions of parts of\n        message template. See\n        [WhatsApp Business API Documentation](https://developers.facebook.com/docs/whatsapp/business-management-api/message-templates).\n        "},"id":{"type":"string","readOnly":true},"rejected_reason":{"type":"string","readOnly":true},"status":{"type":"string","readOnly":true}},"required":["category","components","id","language","name","rejected_reason","status"]}}},"paths":{"/api/v1/templates/":{"post":{"operationId":"createTemplate","description":"Create a new message template.\n\nEditing templates is not supported.\nTo update one of your templates, please delete current template\nand then create a new one.\n\nEntire body schema follows schema as explained in\n[WhatsApp Business API Message Templates documentation](https://developers.facebook.com/docs/whatsapp/business-management-api/message-templates).\n\nIn above link, you can find more information about parameters, components, and buttons.\nThere is also a list of all supported languages\n[here](https://developers.facebook.com/docs/whatsapp/business-management-api/message-templates#response).\n\nThe template is created via the\n[360dialog Messaging API](https://docs.360dialog.com/docs/messaging-api/api-reference/templates)\nand the result object contains `id`, `status` and `category` of the new template.","tags":["Templates"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Template"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Template"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"}}},"description":""}}}}}}
```

## DELETE /api/v1/templates/{name}/

> Delete a given message template.\
> \
> The template is deleted by name, in all languages it exists in.

```json
{"openapi":"3.0.3","info":{"title":"360dialog Inbox API","version":"1.28.0"},"tags":[{"name":"Templates","description":"Message Templates management proxy"}],"servers":[{"url":"https://{YOUR_STACK_NAME}.inbox.getchat.360dialog.io/","description":"Your Inbox address. Open the Inbox from the 360dialog Hub to see it.","variables":{"YOUR_STACK_NAME":{"default":"your-stack","description":"The first part of your Inbox address"}}}],"security":[{"tokenAuth":[]}],"components":{"securitySchemes":{"tokenAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"A user token, sent as `Token <token>`. Create a user in the admin panel (group App integration) and get its token from `POST /api/v1/auth/token/`. The channel API key (`D360-Api-Key`) is not supported."}}},"paths":{"/api/v1/templates/{name}/":{"delete":{"operationId":"destroyTemplate","description":"Delete a given message template.\n\nThe template is deleted by name, in all languages it exists in.","parameters":[{"in":"path","name":"name","schema":{"type":"string"},"required":true}],"tags":["Templates"],"responses":{"204":{"description":"No response body"}}}}}}
```

## POST /api/v1/templates/refresh/issue/

>

```json
{"openapi":"3.0.3","info":{"title":"360dialog Inbox API","version":"1.28.0"},"tags":[{"name":"Templates","description":"Message Templates management proxy"}],"servers":[{"url":"https://{YOUR_STACK_NAME}.inbox.getchat.360dialog.io/","description":"Your Inbox address. Open the Inbox from the 360dialog Hub to see it.","variables":{"YOUR_STACK_NAME":{"default":"your-stack","description":"The first part of your Inbox address"}}}],"security":[{"tokenAuth":[]}],"components":{"securitySchemes":{"tokenAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"A user token, sent as `Token <token>`. Create a user in the admin panel (group App integration) and get its token from `POST /api/v1/auth/token/`. The channel API key (`D360-Api-Key`) is not supported."}}},"paths":{"/api/v1/templates/refresh/issue/":{"post":{"operationId":"issueTemplateRefreshStatus","tags":["Templates"],"responses":{"202":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}},"description":"Refresh operation is started and response is given immediately, before finish."}}}}}}
```

## GET /api/v1/templates/refresh/status/

>

```json
{"openapi":"3.0.3","info":{"title":"360dialog Inbox API","version":"1.28.0"},"tags":[{"name":"Templates","description":"Message Templates management proxy"}],"servers":[{"url":"https://{YOUR_STACK_NAME}.inbox.getchat.360dialog.io/","description":"Your Inbox address. Open the Inbox from the 360dialog Hub to see it.","variables":{"YOUR_STACK_NAME":{"default":"your-stack","description":"The first part of your Inbox address"}}}],"security":[{"tokenAuth":[]}],"components":{"securitySchemes":{"tokenAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"A user token, sent as `Token <token>`. Create a user in the admin panel (group App integration) and get its token from `POST /api/v1/auth/token/`. The channel API key (`D360-Api-Key`) is not supported."}},"schemas":{"RefreshStatus":{"type":"object","properties":{"currently_refreshing":{"type":"boolean","default":false}}}}},"paths":{"/api/v1/templates/refresh/status/":{"get":{"operationId":"checkTemplateRefreshStatus","tags":["Templates"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshStatus"}}},"description":""}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.360dialog.com/docs/inbox/inbox-api/api-ref/templates.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
