---
title: "List Space templates"
method: GET
path: "/api/spaces/templates"
tags: ["spaces"]
---

# List Space templates

`GET /api/spaces/templates`

Returns the catalog of official Space templates. The `repoId` of a template can be passed as `template` when creating a Space through the create-repo endpoint.

## Response `200`

The list of available Space templates.

- object
  - `templates` object[], required
    - `sdk` 'docker' | 'static' | 'gradio', required
    - `name` string, required — Human-friendly name of the template (e.g. `JupyterLab`).
    - `repoId` string, required — Repo id of the template Space, to pass as `template` on create.
    - `preferredPrivate` boolean, required — Whether the created Space is expected to be private.

---

[API](https://skmtc.net/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.net/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/huggingface/hub-api-endpoints/versions/dae0cc3790f0/schema)
