> For the complete documentation index, see [llms.txt](https://api-docs.islash.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-docs.islash.io/template-message/get-template-message.md).

# Get Template Message

## Retrieve a list of template messages

> Retrieves all template messages available for the channel.

```json
{"openapi":"3.0.0","info":{"title":"iSlash API","version":"1.0.1"},"servers":[{"url":"https://{ISLASH_API_ENDPOINT}/api/public","variables":{"ISLASH_API_ENDPOINT":{"default":"{ISLASH_API_ENDPOINT}","description":"The base hostname for the iSlash API platform."}}}],"paths":{"/template-message":{"get":{"summary":"Retrieve a list of template messages","description":"Retrieves all template messages available for the channel.","parameters":[{"in":"header","name":"X-USER-TOKEN","schema":{"type":"string"},"required":true,"description":"The secret key provided by iSlash for accessing the iSlash API platform."},{"in":"query","name":"session","schema":{"type":"string"},"required":true,"description":"The session key generated by your admin to control which channel can send messages via the API."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["meta","data"],"properties":{"meta":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},"data":{"type":"object","properties":{"templates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"The template message ID."},"emma_template_id":{"type":"string","description":"The external template ID.","nullable":true},"namespace":{"type":"string","description":"The template namespace."},"name":{"type":"string","description":"The template name."},"components":{"type":"array","description":"The template components (HEADER, BODY, FOOTER, BUTTONS).","items":{"type":"object"}},"variable_map":{"type":"object","description":"The variable mapping for the template.","nullable":true},"language":{"type":"string","description":"The template language code."},"status":{"type":"string","description":"The template approval status."},"category":{"type":"string","description":"The template category.","nullable":true},"groups":{"type":"array","description":"Groups associated with the template.","nullable":true,"items":{"type":"string"}},"created_at":{"type":"string","description":"The creation timestamp."},"updated_at":{"type":"string","description":"The last update timestamp."}}}}}}}}}}}}}}}}
```
