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

# List templates

`GET /v1/templates/`

## Request

- Base URL: `https://api.pdfbetter.com`
- URL: `https://api.pdfbetter.com/v1/templates/`
- Auth: HTTP bearer

Your reusable templates (`type: user`) followed by the PDFBetter library (`type: library`).

## Query parameters

- `type` 'library' | 'user'

## Response `200`

List templates

- TemplateList
  - `object` 'list', required
  - `data` object[], required
    - `object` 'template', required
    - `id` string, required: Library slug (type `library`) or template document id (type `user`)
    - `type` 'library' | 'user', required
    - `name` string, required
    - `description` string, nullable, required
    - `category` string, nullable, required
    - `pageCount` integer, nullable, required
    - `createdAt` string, nullable, required: ISO 8601 timestamp (UTC)
  - `hasMore` boolean, required
  - `nextCursor` string, nullable, required

## Other responses

- `400`: Invalid request (see `error.details.issues`)
- `401`: Missing or invalid API key
- `402`: Your plan doesn't include this (API access needs Business) or a monthly allowance is used up
- `403`: The API key lacks the required scope
- `404`: Not found (or not yours)
- `409`: Conflict with the current state
- `422`: Validation failed
- `429`: Rate limited — see RateLimit-* and Retry-After

---

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