---
search:
  tags:
    - Automations
    - GET
seo:
  description: >-
    Get one template by slug: full prompt, default schedule, model level,
    output… Reference for the GET /automation-templates/{slug} endpoint in the
    Modem API.
sidebar:
  label: Get template
  badge: GET
title: Get template
type: openapi-operation
---
Get one template by slug: full prompt, default schedule, model level, output channels, and
required integrations. Clients that support creating automations can pass the slug as
sourceDefaultTaskSlug to link the new automation to its template.

`GET /automation-templates/{slug}`

**Responses**

- `200` — OK
- `400` — Invalid request (validation failed).
- `401` — Missing or invalid API key.
- `403` — The API key does not have access to this resource.
- `404` — The requested resource was not found.
- `429` — Rate limit exceeded.
- `500` — Internal server error.

Response example, 200:

```json
{
  "description": "string",
  "modelLevel": "high",
  "name": "string",
  "outputChannels": [
    {
      "channel": "discord",
      "destinations": [
        "string"
      ],
      "mode": "any-internal"
    }
  ],
  "prompt": "string",
  "relatedTemplates": [
    "string"
  ],
  "requiredIntegrations": [
    "string"
  ],
  "schedule": {
    "expr": "string",
    "type": "cron"
  },
  "slug": "string",
  "subtitle": "string"
}
```
