---
title: "List all available templates"
method: GET
path: "/templates"
tags: ["Templates"]
---

# List all available templates

`GET /templates`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/templates`
- Auth: HTTP bearer

Returns a list of all public templates, optionally filtered by tag or featured status.

## Query parameters

- `tag` string
- `featured` boolean
- `kind` 'starter' | 'app': Who owns a template's code once it is created (ADR-051).

## Response `200`

List of templates

- ListTemplatesResponse: Response for listing templates
  - `templates` TemplateResponse[], required: List of templates
    - `command` string[], nullable: Optional command passed to the image entrypoint.
    - `databases` string[], required: Managed databases the template needs.
    - `description` string, nullable: Short description
    - `env_vars` EnvVarTemplateResponse[], required: Variables of the first service, followed by the shared variables.
      - `default` string, nullable: Default value if not provided by user
      - `default_generator` string, nullable: Frontend-side generator hint for the default value (e.g. `app_url`, `random_secret`, `random_hex_32`)
      - `description` string, nullable: Description of what this variable is used for
      - `example` string, nullable: Example value for documentation
      - `name` string, required: Name of the environment variable
      - `required` boolean, required: Whether this variable is required
      - `secret` boolean, required: Whether values must use the protected secret reveal path.
    - `exposed_port` integer, nullable: Container port the prebuilt image listens on (image deploys only).
    - `features` string[], required: Feature highlights
    - `git` GitRefResponse, required: Git repository reference
      - `path` string, nullable: Path within the repository (for monorepos)
      - `ref` string, required: Git reference (branch, tag, or commit)
      - `url` string, required: Git repository URL
    - `health_check_path` string, nullable: HTTP health-check path probed after the container starts (image deploys).
    - `image` string, nullable: Prebuilt Docker image reference. When set, the one-click deploy pulls and runs this image directly (no build); when absent it builds from `git`.
    - `image_url` string, nullable: URL to template image/icon
    - `is_featured` boolean, required: Whether the template is featured/promoted
    - `kind` 'starter' | 'app', required: Who owns the code once the template is created.
    - `managed_service_bindings` object, required: Managed-service environment aliases of the first service, used at deployment time.
    - `name` string, required: Display name
    - `preset` string, required: Framework/preset of the first service.
    - `resources` TemplateResources, nullable: Resource profile required by a curated template. CPU values use the same microcore unit as project deployment configuration; memory values are MiB.
      - `cpu_limit` integer, nullable
      - `cpu_request` integer, nullable
      - `memory_limit` integer, nullable
      - `memory_request` integer, nullable
    - `routes` TemplateRoute[], required: Path routes between the services.
      - `prefix` string, required: Path prefix handed to `target`, such as `/api`.
      - `source` string, required: Service whose hostnames receive the requests.
      - `strip_prefix` boolean: Forward `/api/users` as `/users`.
      - `target` string, required: Service that answers requests under `prefix`.
    - `screenshot_url` string, nullable: URL to a wide screenshot/banner preview of the deployed template. Absent for templates that don't have one captured yet.
    - `service_definitions` TemplateServiceResponse[], required: Every service the template creates, in order.
      - `database_bindings` object, required: Managed-database environment aliases used at deployment time.
      - `databases` string[], required: Managed databases linked to this service.
      - `directory` string, nullable: Directory of the source the service builds from.
      - `env_vars` EnvVarTemplateResponse[], required: Variables of this service.
        - `default` string, nullable: Default value if not provided by user
        - `default_generator` string, nullable: Frontend-side generator hint for the default value (e.g. `app_url`, `random_secret`, `random_hex_32`)
        - `description` string, nullable: Description of what this variable is used for
        - `example` string, nullable: Example value for documentation
        - `name` string, required: Name of the environment variable
        - `required` boolean, required: Whether this variable is required
        - `secret` boolean, required: Whether values must use the protected secret reveal path.
      - `exposed_port` integer, nullable: Container port the service listens on.
      - `git` GitRefResponse, nullable: Git repository reference response
        - `path` string, nullable: Path within the repository (for monorepos)
        - `ref` string, required: Git reference (branch, tag, or commit)
        - `url` string, required: Git repository URL
      - `health_check_path` string, nullable: HTTP health-check path.
      - `image` string, nullable: Prebuilt image the service runs instead of building.
      - `name` string, required: Name of the service within the template.
      - `preset` string, required: Framework/preset to use.
      - `resources` TemplateResources, nullable: Resource profile required by a curated template. CPU values use the same microcore unit as project deployment configuration; memory values are MiB.
        - `cpu_limit` integer, nullable
        - `cpu_request` integer, nullable
        - `memory_limit` integer, nullable
        - `memory_request` integer, nullable
    - `services` string[], required: Managed databases the template needs. Same as `databases`; kept for clients written before templates could have several services.
    - `shared_env_vars` EnvVarTemplateResponse[], required: Variables shared by all services; they become project variables.
      - `default` string, nullable: Default value if not provided by user
      - `default_generator` string, nullable: Frontend-side generator hint for the default value (e.g. `app_url`, `random_secret`, `random_hex_32`)
      - `description` string, nullable: Description of what this variable is used for
      - `example` string, nullable: Example value for documentation
      - `name` string, required: Name of the environment variable
      - `required` boolean, required: Whether this variable is required
      - `secret` boolean, required: Whether values must use the protected secret reveal path.
    - `slug` string, required: Unique identifier for the template (used in URLs)
    - `tags` string[], required: Tags/categories for filtering
    - `version` string, required: Immutable release identifier for apps.
  - `total` integer, required: Total number of templates

## Other responses

- `401`: Unauthorized
- `500`: Internal server error

## Changes

- **2026-10-14** `daf87435065e`: 1 breaking, 1 warning, 6 info
  - removed the enum value `service` from the `query` request parameter `kind`
  - added the new `app` enum value to the `templates/items/kind` response property for the response status `200`
  - added the new enum value `app` to the `query` request parameter `kind`
  - removed the `service` enum value from the `templates/items/kind` response property for the response status `200`
  - …4 more
- **2026-09-07** `c2a1f69745e7`: 7 info
  - added the new optional `query` request parameter `kind`
  - added the optional property `templates/items/command` to the response with the `200` status
  - added the optional property `templates/items/resources` to the response with the `200` status
  - added the required property `templates/items/env_vars/items/secret` to the response with the `200` status
  - …3 more
- **2026-09-07** `7a3103561bd0`: 4 breaking, 3 warning
  - removed the required property `templates/items/env_vars/items/secret` from the response with the `200` status
  - removed the required property `templates/items/kind` from the response with the `200` status
  - removed the required property `templates/items/managed_service_bindings` from the response with the `200` status
  - removed the required property `templates/items/version` from the response with the `200` status
  - …3 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/templates/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
