---
title: "List templates"
method: GET
path: "/workspace/{workspace_id}/templates/"
tags: ["QR codes"]
---

# List templates

`GET /workspace/{workspace_id}/templates/`

## Request

- Base URL: `https://hovercode.com/api/v2`
- URL: `https://hovercode.com/api/v2/workspace/{workspace_id}/templates/`
- Auth: API key in header `Authorization`

Design templates: the workspace's own saved templates first, then Hovercode's built-in designs (`is_default: true`). Paginated 50 per page (max 200).

## Path parameters

- `workspace_id` string, uuid, required

## Query parameters

- `page` integer
- `page_size` integer

## Response `200`

OK

- union: Page of templates.
  - object: DRF page-number pagination envelope.
    - `count` integer, required
    - `next` string, uri, nullable, required
    - `previous` string, uri, nullable, required
    - `results` Template[], required
      - `id` string, uuid
      - `title` string, nullable
      - `primary_color` string, nullable
      - `background_color` string, nullable
      - `pattern` 'Original' | 'Circles' | 'Squares' | 'Diamonds' | 'Triangles' | 'Lines'
      - `eye_style` 'Square' | 'Rounded' | 'Drop' | 'Leaf'
      - `eye_color` string, nullable
      - `frame_color` string, nullable
      - `has_border` boolean
      - `text` string, nullable
      - `text_secondary` string, nullable
      - `frame` string, nullable
      - `has_logo` boolean
      - `logo` string, uri, nullable
      - `preview` string, uri, nullable
      - `created` string, date-time
      - `is_default` boolean: True for a Hovercode built-in design, false for a workspace template.
  - EmptyResults: Returned instead of a pagination envelope when the list is empty.
    - `message` 'No results found', required
    - `results` unknown[], required
      - unknown

## Other responses

- `401`: Missing or invalid API token.
- `404`: Not found, or not in a workspace you belong to.
- `429`: Rate limit exceeded. Wait `Retry-After` seconds before retrying.

---

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