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

# Get a template

`GET /templates/{template_id}`

## Request

- Base URL: `https://api-docs.jackhamr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.jackhamr.ai/templates/{template_id}`
- Auth: none declared

Return a single template by id.

404 when the template does not exist, belongs to another org, or is
a private user template. Existence is not leaked across org
boundaries.

## Path parameters

- `template_id` string, required

## Response `200`

Successful Response

- TemplateOut: An environment template as returned by ``GET /api/v1/templates``.
  - `id` string, required
  - `name` string, required
  - `description` string, nullable
  - `visibility` string, required
  - `organization_id` string, nullable
  - `created_by` string, required
  - `snapshot_id` integer, nullable
  - `proxmox_template_vmid` integer, nullable
  - `os_type` string, nullable
  - `default_cores` integer
  - `default_memory` integer
  - `default_disk_size` integer
  - `installed_packages` string[], nullable
  - `pre_configured_tools` string[], nullable
  - `version` string
  - `is_active` boolean
  - `usage_count` integer
  - `tags` string[], nullable
  - `category` string, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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