---
title: "Get template (v1)"
method: GET
path: "/v1/templates/{id}"
tags: ["Legacy v1"]
deprecated: true
---

# Get template (v1)

`GET /v1/templates/{id}`

## Request

- Base URL: `https://api.pdfs.build`
- URL: `https://api.pdfs.build/v1/templates/{id}`
- Auth: HTTP bearer

> **Deprecated.**

## Query parameters

- `resolve_images` 'true'

## Response `200`

The template.

- TemplateV1
  - `id` string, required: Internal id.
  - `name` string, required
  - `description` string, nullable
  - `status` 'draft' | 'published', required
  - `createdAt` string, required: UTC, ISO 8601 without a timezone suffix.
  - `updatedAt` string, required: UTC, ISO 8601 without a timezone suffix.
  - `schema` object, nullable
  - `sampleData` object, nullable
  - `baseTemplateId` string, nullable
  - `userId` string, required
  - `organizationId` string, nullable

## Other responses

- `401`: Missing, invalid or expired API key.
- `404`: No template with that id is accessible to this key. Another user's draft is indistinguishable from a missing template.

---

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