# GET /api/v2/automation-templates

List automation templates

- MCP id: automation-templates.index
- Scope: api:read:automations
- Scope: api:read:project_automations
- Scope: api:read:customer_automations
- Permission: automations::create
- Needs the automations feature on your organisation
- Rate cost: 5 units, read bucket.
- Cache-Control: private, no-store

Returns plnnrly's template library, by key: the ready-made flows the caller may start an automation from, with how often the organisation used each.

A template that does not fit anywhere the caller may make automations, or that uses a module the organisation does not have, is left out; one the caller may not use, because they or the owner may not do everything it does, is listed. Pass `view=detail` for each template's availability per level, its questions and its steps, or read one at `GET /api/v2/automation-templates/{key}`. Every template is checked the way saving its flow would be, which makes this a heavier read. The declared permission is `automations::create`; for project or customer automations, the `project_automations` or `customer_automations` permission of the same action applies instead.

## Parameters
- view (string, optional): Which field set to render.
- X-Request-Id (header, optional): A correlation id of your own. It is recorded in our logs next to the server's request id but never returned: the response header always carries the server's id. A value that does not match the pattern is discarded silently, never rejected.
- If-None-Match (header, optional): The ETag a read is conditional on. A match is answered 304 with no body.

## Response 200
- key (string ≤ 100, required): The template's key; an automation made from it carries it as `template_key`.
- label (string ≤ 255, required): The template's name.
- description (string, required, multiline): What an automation made from it does.
- keywords (array of string, required): Words people may search for besides the name and the description.
- category (string or null ≤ 100, required): The key of the library group it is listed under, such as `reminders`.
- category_label (string or null ≤ 255, required): The name of that group.
- popular (boolean, required): Whether the library lists it among the popular templates.
- personal_only (boolean, required): Whether an automation made from it only ever concerns its maker, such as a reminder to themselves. It is then offered only for the whole organisation, to someone making it for themselves.
- one_record_only (boolean, required): Whether, for projects or customers, it only makes sense for one at a time, such as a weekly e-mail about one customer. It is then not offered for every project or customer.
- scopes (array of string, required): Where the template makes sense: `organization`, `project` and `customer`.
- usage_count (integer, required): How many of the organisation's automations were made from it, deleted ones left out.
- availability (array of object, required, detail only): Whether you may start an automation from it at each level you may make automations at, checked the way saving its flow would check it. A template is listed when it is available or forbidden somewhere.
- questions (array of object, required, detail only): What the template asks, in the order it asks it.
- steps (array of object, required, detail only): The steps of an automation made from it, in the order people read the flow.
- links (AutomationTemplateLinks, required)
  - self (url, required): The canonical URI of this record.

## Errors
- 403 forbidden-by-policy | insufficient-permission | insufficient-token-scope: Forbidden.
- 304 : Not modified.
- 400 idempotency-key-required | invalid-cursor | invalid-query-parameter | malformed-request | unsupported-parameter: Bad request.
- 401 token-expired | unauthenticated: Unauthenticated.
- 404 endpoint-not-found | resource-not-found: Not found.
- 406 not-acceptable: Not acceptable.
- 429 rate-limit-exceeded: Too many requests.
- 500 internal-error: Server error.
- 503 tenant-unavailable: Service unavailable.

## Example
```bash
curl -X GET \
  'https://<your-url>/api/v2/automation-templates' \
  -H 'Authorization: Bearer <token>' \
  -H 'Accept: application/json'
```
