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

# Get a template

`GET /templates/{id}`

## Request

- Base URL: `https://api.rendley.com/v1`
- URL: `https://api.rendley.com/v1/templates/{id}`
- Auth: none declared

A Rendley template with its document, or (signed in) a user template with the fields it exposes and their current values. Rendley templates have no fields. Pass values to POST /projects as `fields`, keyed by each field's key. A media field takes a public https URL of a file of its media_kind.

## Path parameters

- `id` string, required

## Response `200`

OK

- object
  - `data` object: Success data
    - `created_at` string
    - `created_by` string
    - `fields` TypesTemplateField[]
      - `group` string: The clip, or the canvas, the field belongs to.
      - `key` string: Name in POST /projects `fields`; the path when the author set no key.
      - `label` string
      - `length` integer: Item count of a list field; a value must have the same.
      - `linked` integer: How many more places the same value fills: fields sharing a key are linked.
      - `media_kind` 'image' | 'video' | 'gif' | 'audio'
      - `path` string
      - `type` 'text' | 'number' | 'color' | 'boolean' | 'list' | 'media'
      - `value` unknown
    - `fit_duration` number
    - `height` integer
    - `id` string
    - `is_premium` boolean
    - `name` string
    - `preview_video_url` string
    - `source_project_id` string: The project a user template was saved from, while that project exists.
    - `template_json` string
    - `thumbnail_url` string
    - `updated_at` string
    - `width` integer
    - `workspace_id` string
  - `error` HttpResponseAPIError
    - `code` string
    - `fields` HttpResponseFieldError[]
      - `field` string
      - `message` string
    - `message` string
  - `meta` unknown

## Other responses

- `401`: Unauthorized
- `404`: TEMPLATE_NOT_FOUND

---

[API](https://skmtc.dev/rendley/apis/rendley-api.md) - [All operations](https://skmtc.dev/rendley/apis/rendley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rendley/apis/rendley-api/revisions/7eb8713bbf78?raw)
