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

# Get a template

`GET /v1/templates/{templateId}`

## Request

- Base URL: `https://sign-api.tvarka.pro`
- URL: `https://sign-api.tvarka.pro/v1/templates/{templateId}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Api-Key`
  - OAuth 2 (authorization code, authorization URL `https://sign-api.tvarka.pro/oauth/authorize`, token URL `https://sign-api.tvarka.pro/oauth/token`, scopes: `sign.read`, `sign.signings`)

## Path parameters

- `templateId` string, uuid, required

## Response `200`

The template.

- Template
  - `templateId` string, uuid
  - `title` string
  - `level` 'qualified' | 'esign'
  - `signingOrder` 'parallel' | 'sequential'
  - `expiresInDays` integer, nullable
  - `document` object
    - `name` string
    - `sha256` string
    - `bytes` integer
  - `roles` TemplateRole[]
    - `roleName` string, required
    - `name` string, nullable
    - `email` string, email, nullable: A saved signer, invited on every send unless the send names this role with another person.
    - `language` string, nullable
    - `visibleSignature` union: A box saved on a template role, and the box a signer gets from it (v1.14.1). The shape of `VisibleSignature`. The sizes are those of the template's level, the sizes the Tvarka Sign app saves it with: at least the default qualified stamp (103.18 x 35.72 pt) or the default e-signature mark (119.06 x 45.64 pt), and at most three times that. When a qualified template is sent, the box is checked by these sizes and must fit the PDF. A box sent to `POST /v1/templates` is a box sent in a request, so it keeps the `VisibleSignature` rules, 148 x 52 pt at least. A field binding keeps the field rules of `VisibleSignature`.
      - object
        - `page` integer, required
        - `x` number, required
        - `y` number, required
        - `width` number, required
        - `height` number, required
      - object
        - `field` string, required
  - `createdAt` string, date-time
  - `lastUsedAt` string, date-time, nullable
  - `useCount` integer

## Other responses

- `401`: An RFC 9457 problem document.
- `402`: An RFC 9457 problem document.
- `403`: An RFC 9457 problem document.
- `404`: An RFC 9457 problem document.
- `429`: An RFC 9457 problem document.
- `503`: An RFC 9457 problem document.

---

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