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

# Get a template

`GET /templates/{name}`

Return a template by its name

## Path parameters

- `name` string, required

## Response `200`

OK

- GithubComStacyOsStacyvmInternalOrchestratorTemplate
  - `allowed_hosts` string[]
  - `cpu_cores` integer
  - `created_at` string
  - `description` string
  - `env` object
  - `image` string
  - `memory_mb` integer
  - `name` string
  - `pool_size` integer
  - `secrets` GithubComStacyOsStacyvmInternalOrchestratorSecretConfig[]
    - `inject_at` string
    - `name` string
  - `setup` string[]
  - `ttl_seconds` integer
  - `updated_at` string
  - `version` integer

## Other responses

- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/stacyos/apis/stacyvm-api.md) · [All operations](https://skmtc.dev/stacyos/apis/stacyvm-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stacyos/stacyvm-api/revisions/d8b1ebf10293/schema)
