---
title: "List instance templates"
method: GET
path: "/preview/v2/instance_templates"
tags: ["Instance Templates"]
---

# List instance templates

`GET /preview/v2/instance_templates`

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

List all instance templates.

## Query parameters

- `workspace` string, required — A resource path like 'sfc:workspace:acme:my-workspace' _or_ an ID. Resource paths are human-readable but not stable - they change when resources are renamed or moved. IDs are stable and permanent.
- `id` SfcApiResourcePathOrIdInstanceTemplateId[]
- `limit` integer
- `starting_after` string
- `ending_before` string
- `include` SfcApiInstanceTemplateInclude[]

## Response `200`

Paginated list of instance templates.

- SfcApiListInstanceTemplatesResponse
  - `object` 'list', required
  - `cursor` string
  - `has_more` boolean, required
  - `data` SfcApiInstanceTemplateResponse[], required
    - `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.
- `422` — Validation failed.
- `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)
