---
title: "Get instance template"
method: GET
path: "/preview/v2/instance_templates/{id}"
tags: ["Instance Templates"]
---

# Get instance template

`GET /preview/v2/instance_templates/{id}`

> ⚠️ This endpoint is in [public preview](/preview/roadmap).

Retrieve an instance template by ID or resource path.

## Path parameters

- `id` string, required — A resource path like 'sfc:instance_template:acme:prod:my-instance_template' _or_ an ID. Resource paths are human-readable but not stable - they change when resources are renamed or moved. IDs are stable and permanent.

## Response `200`

Instance template details.

- SfcApiInstanceTemplateResponse
  - `id` string, required
  - `resource_path` string, required — A resource path for a instance_template resource. Format: sfc:instance_template:<account>:<workspace>:<name>.
  - `owner` string, required
  - `workspace` string, required
  - `name` string, required
  - `object` 'instance_template', required
  - `image` SfcApiImageSummary, required
    - `id` string, required
    - `name` string, required
  - `cloud_init_user_data_used` boolean, required — Whether cloud-init user data is configured for this template.
  - `created_at` integer, required — Unix timestamp.
  - `cloud_init_user_data` string, byte — Base64-encoded [cloud-init user data](https://cloudinit.readthedocs.io/en/latest/explanation/format/index.html).

## Other responses

- `401` — Unauthorized.
- `404` — Instance template not found.
- `500` — Internal server error.

---

[API](https://skmtc.net/sfcompute/apis/san-francisco-compute-documentation.md) · [All operations](https://skmtc.net/sfcompute/apis/san-francisco-compute-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sfcompute/san-francisco-compute-documentation/revisions/93dd7661e9bb/schema)
