---
title: "Get a template"
method: GET
path: "/api/v1/templates/{template_id}"
tags: ["Templates"]
---

# Get a template

`GET /api/v1/templates/{template_id}`

## Request

- Base URL: `https://www.ifillpdf.com`
- URL: `https://www.ifillpdf.com/api/v1/templates/{template_id}`
- Auth: HTTP bearer

Returns a single template with its field and party structure. Visibility-gated; never returns stored default values.

## Path parameters

- `template_id` string, uuid, required

## Response `200`

Template detail.

- TemplateDetailEnvelope
  - `template` TemplateDetail, required
    - `id` string, uuid, required
    - `name` string, required
    - `description` string, nullable
    - `category` string, nullable
    - `language` string, nullable
    - `tags` string[]
    - `visibility` 'public' | 'team' | 'private', required
    - `is_published` boolean
    - `page_count` integer
    - `preview_image_url` string, nullable
    - `created_at` string, date-time
    - `parties` DocumentEntity[]
      - `id` string
      - `label` string
      - `description` string
      - `color` string
    - `fields` DocumentField[]
      - `id` string
      - `name` string
      - `label` string
      - `type` 'text' | 'checkbox' | 'signature' | 'date' | 'number'
      - `page` integer
      - `partyId` string
      - `rect` object

## Other responses

- `401`: Missing or invalid API key.
- `404`: Resource not found.

---

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