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

# List templates

`GET /api/templates`

## Request

- Base URL: `https://api.zvid.io`
- URL: `https://api.zvid.io/api/templates`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

List the account's templates with their declared variables (`variablesSummary`). The full project JSON is not included — fetch a template by ID for that.

## Query parameters

- `page` integer
- `limit` integer

## Response `200`

Templates for the authenticated account

- TemplateList
  - `templates` TemplateSummary[], required
    - `id` string, required
    - `userId` integer
    - `name` string, required
    - `description` string, nullable
    - `type` 'video' | 'image', required
    - `variablesSummary` TemplateVariableSummary[]
      - `name` string, required
      - `type` string
      - `used` boolean
      - `default` unknown
    - `version` integer, required
    - `status` 'active' | 'archived', required
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
  - `pagination` Pagination, required: Standard pagination envelope for list endpoints.
    - `page` integer, required
    - `limit` integer, required
    - `total` integer, required
    - `totalPages` integer, required
    - `hasNext` boolean: Whether there are more pages after the current one
    - `hasPrev` boolean: Whether there are pages before the current one

## Other responses

- `401`: Unauthorized

---

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