---
title: "Return the immutable service-template release applied to a project together with catalog drift, missing requirements, and an available upgrade preview."
method: GET
path: "/projects/{project_id}/service-template"
tags: ["Projects"]
---

# Return the immutable service-template release applied to a project together with catalog drift, missing requirements, and an available upgrade preview.

`GET /projects/{project_id}/service-template`

## Request

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

## Path parameters

- `project_id` integer, required

## Response `200`

Applied service release and upgrade preview

- ServiceTemplateInstanceResponse
  - `applied` ServiceTemplateInstance, required: Immutable app release attached to a service created from it. The resolved definition is deliberately stored with the service. The live catalog is only needed to discover a newer release; deployments, edits and rollbacks continue to work if the catalog later changes or disappears.
    - `schema_version` string, required: Catalog schema used to deserialize `template`.
    - `service` string, nullable: Which of the template's services this one is. Absent on snapshots written before templates could have several services: those are the template's only service.
    - `slug` string, required: Stable app family identifier.
    - `template` ProjectTemplate, required: Exact resolved release from which this service was created/upgraded.
      - `databases` string[], required: Managed databases the template needs (e.g., ["postgres", "redis"]).
      - `description` string, nullable: Short description
      - `features` string[], required: Feature highlights
      - `git` GitRef, required: Source repository shared by the services that don't declare their own. Always present as the source-of-truth / build fallback, even for image-based templates.
        - `path` string, nullable: Path within the repository (for monorepos) Also accepts "subfolder" as an alias in YAML/JSON
        - `ref` string: Git reference (branch, tag, or commit)
        - `url` string, required: Git repository URL (e.g., "https://github.com/owner/repo.git" or "https://gitlab.com/owner/repo.git")
      - `image_url` string, nullable: URL to template image/icon
      - `is_featured` boolean, required: Whether the template is featured/promoted
      - `is_public` boolean, required: Whether the template is publicly visible
      - `kind` 'starter' | 'app', required: Who owns the code once the template is created.
      - `name` string, required: Display name
      - `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 full screenshot/banner preview of the deployed template (e.g. `/templates/nextjs-saas-starter.png`). Rendered as a wide preview on the template card; optional — templates without one show no banner.
      - `services` TemplateServiceSpec[], required: The services the template creates; never empty.
        - `command` string[], nullable: Optional command passed to the container image. This is needed for production images whose default command is intentionally a development mode (for example Keycloak).
        - `database_bindings` object: Environment aliases populated from a linked managed database. The outer key is the database type and each inner entry maps an application variable to a variable supplied by that database. Example: `postgres.KC_DB_USERNAME: POSTGRES_USER`.
        - `databases` string[]: Managed databases (types listed in the template's `databases`) linked to this service. Filled in on load: a service is linked to every database it binds, and a template's only service to all of them.
        - `directory` string, nullable: Directory of the source this service builds from. Overrides the path of its repository reference.
        - `env_vars` EnvVarTemplate[]: Variables of this service only.
          - `default` string, nullable: Default value if not provided by user
          - `default_generator` string, nullable: Frontend-side generator for the default value. Recognised values: `app_url` (https://{repo}.{base_domain}), `random_secret` (32-byte base64), `random_hex_32` (32-byte hex). Unknown values are ignored client-side.
          - `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: Whether this variable is required
          - `secret` boolean: Explicit sensitivity classification for credentials whose names do not match the conservative built-in heuristic.
        - `exposed_port` integer, nullable: Container port the service listens on. Falls back to the image's EXPOSE / 3000 default.
        - `git` GitRef, nullable: Git repository reference (supports any git provider: GitHub, GitLab, Bitbucket, etc.)
          - `path` string, nullable: Path within the repository (for monorepos) Also accepts "subfolder" as an alias in YAML/JSON
          - `ref` string: Git reference (branch, tag, or commit)
          - `url` string, required: Git repository URL (e.g., "https://github.com/owner/repo.git" or "https://gitlab.com/owner/repo.git")
        - `health_check_path` string, nullable: HTTP health-check path probed after the container starts. Must start with '/'. Defaults to "/".
        - `image` string, nullable: Prebuilt Docker image reference (e.g. "ghcr.io/org/app@sha256:…"). When set, the service pulls and runs this image instead of building from source.
        - `name` string, required: Name of the service, unique within the template. It names the created service and is how routes and variable references point at it.
        - `preset` string, required: Framework/preset to use (e.g., "nextjs", "python", "dockerfile")
        - `preset_config` unknown
        - `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
      - `shared_env_vars` EnvVarTemplate[], required: Variables shared by every service. Created in a project, they become the project's shared variables.
        - `default` string, nullable: Default value if not provided by user
        - `default_generator` string, nullable: Frontend-side generator for the default value. Recognised values: `app_url` (https://{repo}.{base_domain}), `random_secret` (32-byte base64), `random_hex_32` (32-byte hex). Unknown values are ignored client-side.
        - `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: Whether this variable is required
        - `secret` boolean: Explicit sensitivity classification for credentials whose names do not match the conservative built-in heuristic.
      - `slug` string, required: Unique identifier for the template (used in URLs)
      - `sort_order` integer, required: Sort order for display (lower = first)
      - `tags` string[], required: Tags/categories for filtering
      - `version` string, required: Version of this template release. Apps pin this value and the complete resolved definition so catalog updates are always an explicit, reviewable upgrade rather than a silent runtime mutation.
    - `version` string, required: Applied template release.
  - `catalog_drift` boolean, required: The catalog definition changed without a version bump. Applying it is intentionally blocked because mutable releases make upgrades and rollbacks non-reproducible.
  - `catalog_error` string, nullable: User-safe explanation when the active catalog could not provide this service family. The applied snapshot remains authoritative and editable.
  - `changes` ServiceTemplateUpgradeChange[], required
    - `current` string, nullable
    - `field` string, required
    - `kind` 'added' | 'removed' | 'changed', required
    - `target` string, nullable
  - `latest` ServiceTemplateInstance, nullable: Immutable app release attached to a service created from it. The resolved definition is deliberately stored with the service. The live catalog is only needed to discover a newer release; deployments, edits and rollbacks continue to work if the catalog later changes or disappears.
    - `schema_version` string, required: Catalog schema used to deserialize `template`.
    - `service` string, nullable: Which of the template's services this one is. Absent on snapshots written before templates could have several services: those are the template's only service.
    - `slug` string, required: Stable app family identifier.
    - `template` ProjectTemplate, required: Exact resolved release from which this service was created/upgraded.
      - `databases` string[], required: Managed databases the template needs (e.g., ["postgres", "redis"]).
      - `description` string, nullable: Short description
      - `features` string[], required: Feature highlights
      - `git` GitRef, required: Source repository shared by the services that don't declare their own. Always present as the source-of-truth / build fallback, even for image-based templates.
        - `path` string, nullable: Path within the repository (for monorepos) Also accepts "subfolder" as an alias in YAML/JSON
        - `ref` string: Git reference (branch, tag, or commit)
        - `url` string, required: Git repository URL (e.g., "https://github.com/owner/repo.git" or "https://gitlab.com/owner/repo.git")
      - `image_url` string, nullable: URL to template image/icon
      - `is_featured` boolean, required: Whether the template is featured/promoted
      - `is_public` boolean, required: Whether the template is publicly visible
      - `kind` 'starter' | 'app', required: Who owns the code once the template is created.
      - `name` string, required: Display name
      - `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 full screenshot/banner preview of the deployed template (e.g. `/templates/nextjs-saas-starter.png`). Rendered as a wide preview on the template card; optional — templates without one show no banner.
      - `services` TemplateServiceSpec[], required: The services the template creates; never empty.
        - `command` string[], nullable: Optional command passed to the container image. This is needed for production images whose default command is intentionally a development mode (for example Keycloak).
        - `database_bindings` object: Environment aliases populated from a linked managed database. The outer key is the database type and each inner entry maps an application variable to a variable supplied by that database. Example: `postgres.KC_DB_USERNAME: POSTGRES_USER`.
        - `databases` string[]: Managed databases (types listed in the template's `databases`) linked to this service. Filled in on load: a service is linked to every database it binds, and a template's only service to all of them.
        - `directory` string, nullable: Directory of the source this service builds from. Overrides the path of its repository reference.
        - `env_vars` EnvVarTemplate[]: Variables of this service only.
          - `default` string, nullable: Default value if not provided by user
          - `default_generator` string, nullable: Frontend-side generator for the default value. Recognised values: `app_url` (https://{repo}.{base_domain}), `random_secret` (32-byte base64), `random_hex_32` (32-byte hex). Unknown values are ignored client-side.
          - `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: Whether this variable is required
          - `secret` boolean: Explicit sensitivity classification for credentials whose names do not match the conservative built-in heuristic.
        - `exposed_port` integer, nullable: Container port the service listens on. Falls back to the image's EXPOSE / 3000 default.
        - `git` GitRef, nullable: Git repository reference (supports any git provider: GitHub, GitLab, Bitbucket, etc.)
          - `path` string, nullable: Path within the repository (for monorepos) Also accepts "subfolder" as an alias in YAML/JSON
          - `ref` string: Git reference (branch, tag, or commit)
          - `url` string, required: Git repository URL (e.g., "https://github.com/owner/repo.git" or "https://gitlab.com/owner/repo.git")
        - `health_check_path` string, nullable: HTTP health-check path probed after the container starts. Must start with '/'. Defaults to "/".
        - `image` string, nullable: Prebuilt Docker image reference (e.g. "ghcr.io/org/app@sha256:…"). When set, the service pulls and runs this image instead of building from source.
        - `name` string, required: Name of the service, unique within the template. It names the created service and is how routes and variable references point at it.
        - `preset` string, required: Framework/preset to use (e.g., "nextjs", "python", "dockerfile")
        - `preset_config` unknown
        - `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
      - `shared_env_vars` EnvVarTemplate[], required: Variables shared by every service. Created in a project, they become the project's shared variables.
        - `default` string, nullable: Default value if not provided by user
        - `default_generator` string, nullable: Frontend-side generator for the default value. Recognised values: `app_url` (https://{repo}.{base_domain}), `random_secret` (32-byte base64), `random_hex_32` (32-byte hex). Unknown values are ignored client-side.
        - `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: Whether this variable is required
        - `secret` boolean: Explicit sensitivity classification for credentials whose names do not match the conservative built-in heuristic.
      - `slug` string, required: Unique identifier for the template (used in URLs)
      - `sort_order` integer, required: Sort order for display (lower = first)
      - `tags` string[], required: Tags/categories for filtering
      - `version` string, required: Version of this template release. Apps pin this value and the complete resolved definition so catalog updates are always an explicit, reviewable upgrade rather than a silent runtime mutation.
    - `version` string, required: Applied template release.
  - `missing_services` string[], required: Managed service families that must be linked before this release can be applied. Existing links are never removed automatically.
  - `project_id` integer, required
  - `required_configuration` EnvVarTemplate[], required: Required target inputs that are not currently configured and cannot be filled from a template default or generator.
    - `default` string, nullable: Default value if not provided by user
    - `default_generator` string, nullable: Frontend-side generator for the default value. Recognised values: `app_url` (https://{repo}.{base_domain}), `random_secret` (32-byte base64), `random_hex_32` (32-byte hex). Unknown values are ignored client-side.
    - `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: Whether this variable is required
    - `secret` boolean: Explicit sensitivity classification for credentials whose names do not match the conservative built-in heuristic.
  - `upgrade_available` boolean, required

## Other responses

- `400`: Project is not a service
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Project not found

## Changes

- **2026-10-14** `daf87435065e`: 4 breaking, 18 warning, 52 info
  - the `applied/template/services/items/` response's property type changed from `string` to `object` for status `200`
  - the `latest/oneOf[#/components/schemas/ServiceTemplateInstance]/template/services/items/` response's property type changed from `string` to `object` for status `200`
  - removed the required property `applied/template/preset` from the response with the `200` status
  - removed the required property `latest/oneOf[#/components/schemas/ServiceTemplateInstance]/template/preset` from the response with the `200` status
  - …70 more
- **2026-09-07** `c2a1f69745e7`: 1 info
  - endpoint added
- **2026-09-07** `7a3103561bd0`: 1 breaking
  - api path removed without deprecation
- **2026-09-07** `ebd376a7af05`: 1 info
  - endpoint added
- **2026-09-07** `f7404eb7ac98`: 1 breaking
  - api path removed without deprecation

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