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

# Templates

## List Templates

> Lists promoted templates.\
> \
> Each template is a starting point for a dataflow. Pass \`id\` when\
> creating a dataflow from a template. \`type\` is \`DatasetTemplate\` or\
> \`DashboardTemplate\`. Dataset templates include \`metrics\` and\
> \`datasets\`. Dashboard templates omit those fields. \`template\_link\`\
> opens the template in Coupler.io.<br>

```json
{"openapi":"3.1.0","info":{"title":"Coupler.io Public API","version":"v1"},"servers":[{"url":"https://api.coupler.io"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"Bearer token: a personal API token or an OAuth access token."}},"schemas":{"public_api.templates.collection.response":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Id of the template. Pass it when creating a dataflow from a template."},"name":{"type":"string","description":"Template name."},"description":{"type":"string","description":"What the template is for."},"type":{"type":"string","enum":["DatasetTemplate","DashboardTemplate"],"description":"DatasetTemplate includes metrics and datasets. DashboardTemplate omits those fields."},"sources":{"type":"array","items":{"type":"string"},"description":"Source types used by the template."},"categories":{"type":"array","items":{"type":"string"},"description":"Category names."},"template_link":{"type":"string","description":"Link that opens the template in Coupler.io."},"preview_url":{"type":["string","null"],"description":"Link to a preview of the template."},"metrics":{"type":"array","items":{"type":"string"},"description":"Metric names. Present on dataset templates only."},"datasets":{"type":"array","description":"Datasets in the template. Present on dataset templates only.","items":{"type":"object","properties":{"display_name":{"type":"string","description":"Dataset name."},"display_type":{"type":"string","description":"How the dataset is shown."}},"required":["display_name","display_type"]}}},"required":["id","name","description","type","sources","categories","template_link","preview_url"]}},"error_response":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}},"required":["error"]}}},"paths":{"/v1/templates":{"get":{"summary":"List Templates","tags":["Templates"],"description":"Lists promoted templates.\n\nEach template is a starting point for a dataflow. Pass `id` when\ncreating a dataflow from a template. `type` is `DatasetTemplate` or\n`DashboardTemplate`. Dataset templates include `metrics` and\n`datasets`. Dashboard templates omit those fields. `template_link`\nopens the template in Coupler.io.\n","responses":{"200":{"description":"promoted templates","content":{"application/json":{"schema":{"$ref":"#/components/schemas/public_api.templates.collection.response"}}}},"401":{"description":"missing or invalid API token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"}}}}}}}}}
```


---

# 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.coupler.io/api/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.
