---
title: "Retrieve templates"
method: GET
path: "/v1/templates"
tags: ["Templates"]
---

# Retrieve templates

`GET /v1/templates`

Retrieve all templates available in your workspace including default templates and custom templates

## Response `200`

Retrieve all templates

- GetAllTemplatesResponseDto[]
  - `requestId` string
  - `resource` string
  - `data` Template[]
    - `id` string — The template's unique identifier.
    - `name` string — The template's name.
    - `description` string — The template's description.
    - `responseFormats` string[] — The template's supported response formats.
    - `inputSchema` InputSchemaItem[] — The schema of a template's allowed inputs.
      - `inputKey` string — The key to be used in the request body's inputs when using the `Run Template` endpoint to complete the template generation.
      - `type` 'string' | 'boolean' | 'number' | 'string[]' | 'knowledge[]' — The expected type of the input's value
      - `required` boolean — Indicates if an input is required to complete the template.
      - `maxLength` number — The maximum character count accepted for this input's value
      - `label` string — The suggested input label.
      - `placeholder` string — An input's placeholder that acts as an example input value.
      - `tooltip` string — An input's tooltip to add additional context for the user.
      - `options` InputItemOption[] — "options" will only be present when type is "select".
        - `label` string — The displayed value in a select input's dropdown.
        - `value` string — The value to use in the associated input when completing the template.

## Other responses

- `500` — Internal server error. Unable to get templates.

---

[API](https://skmtc.net/jasper/apis/jasper-api.md) · [All operations](https://skmtc.net/jasper/apis/jasper-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jasper/jasper-api/revisions/438914d9525e/schema)
