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

# Get a specific template by slug

`GET /templates/{slug}`

## Request

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

Returns detailed information about a single template.

## Path parameters

- `slug` string, required

## Response `200`

Template details

- TemplateResponse: Response type for a single template
  - `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.

## Other responses

- `401`: Unauthorized
- `404`: Template not found
- `500`: Internal server error

## Changes

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

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/templates/:slug/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)
