---
title: "Data schema of a template"
method: GET
path: "/v1/templates/{template_id}/schema"
tags: ["Templates"]
---

# Data schema of a template

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

## Request

- Base URL: `https://api-eu.dynamicdocumentapi.com`
- URL: `https://api-eu.dynamicdocumentapi.com/v1/templates/{template_id}/schema`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

## Path parameters

- `template_id` string, required

## Response `200`

- TemplateSchema
  - `declared` boolean
  - `dynamic_properties` object[]
    - `default` unknown
    - `key` string
    - `max_length` integer
    - `type` string
  - `object` 'template_schema'
  - `schema` object
  - `template_id` string
  - `version` integer, nullable

## Other responses

- `401`: Missing, invalid, expired or revoked credentials.
- `403`: Insufficient scope, IP not allowed, workspace suspended or scheduled for deletion, or email not verified.
- `404`: Template not found.
- `429`: Rate limited (`Retry-After`).

---

[API](https://skmtc.dev/dynamicdocumentapi/apis/dynamic-document-api.md) · [All operations](https://skmtc.dev/dynamicdocumentapi/apis/dynamic-document-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dynamicdocumentapi/apis/dynamic-document-api/revisions/0f14bc0000f4?raw)
