---
title: "List templates"
method: GET
path: "/api/templates"
tags: ["Templates"]
---

# List templates

`GET /api/templates`

## Request

- Base URL: `https://api.sendly.now`
- URL: `https://api.sendly.now/api/templates`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `better-auth.session_token`
  - OAuth 2 (authorization code, authorization URL `https://app.sendly.now/api/auth/oauth2/authorize`, token URL `https://app.sendly.now/api/auth/oauth2/token`, scopes: `templates:read`)

Cursor-paginated list of templates. Use `search` for full-text-ish filtering on name/description/subject.

Requires the `templates:read` scope — View your email templates.

## Query parameters

- `limit` integer
- `cursor` string
- `search` string
- `emailCategory` 'MARKETING' | 'TRANSACTIONAL' | 'SELF_MANAGED_UNSUBSCRIBE'

## Response `200`

Template list

- TemplateListResponse: Cursor-paginated list of templates.
  - `data` object, required
    - `cursor` string: Cursor for the next page; omitted on the last page.
    - `data` Template[], required
      - `body` string, required
      - `createdAt` string, date-time, required: ISO 8601 datetime string
      - `currentVersion` integer, required: Version counter, incremented by an update that changes the rendered content. A campaign records the version it sent, so this is how a caller tells 'the template changed since' from 'the template was renamed'.
      - `description` string, nullable
      - `emailCategory` 'MARKETING' | 'TRANSACTIONAL' | 'SELF_MANAGED_UNSUBSCRIBE', required
      - `from` string, email, required
      - `fromName` string, nullable
      - `id` string, uuid, required
      - `name` string, required
      - `projectId` string, uuid, required
      - `replyTo` string, email, nullable
      - `subject` string, required
      - `updatedAt` string, date-time, required: ISO 8601 datetime string
    - `hasMore` boolean, required
    - `total` integer, required
  - `success` true, required

## Other responses

- `400`: Validation error
- `401`: Unauthorized — missing or invalid auth
- `403`: Forbidden — insufficient permissions or project disabled
- `422`: Validation failed — request body or query parameters did not match the schema
- `429`: Rate limit or billing limit exceeded
- `500`: Internal server error

---

[API](https://skmtc.dev/sendly/apis/sendly-api.md) · [All operations](https://skmtc.dev/sendly/apis/sendly-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sendly/apis/sendly-api/revisions/ce7cfb7f7c7e?raw)
