---
title: "List templates"
method: GET
path: "/templates"
tags: ["templates"]
deprecated: true
---

# List templates

`GET /templates`

> **Deprecated.**

List all templates

## Query parameters

- `teamID` string — Identifier of the team

## Response `200`

Successfully returned all templates

- Template[]
  - `templateID` string, required — Identifier of the template
  - `buildID` string, required — Identifier of the last successful build for given template
  - `cpuCount` integer, required — CPU cores for the sandbox
  - `memoryMB` integer, required — Memory for the sandbox in MiB
  - `diskSizeMB` integer, required — Disk size for the sandbox in MiB
  - `public` boolean, required — Whether the template is public or only accessible by the team
  - `aliases` string[], required — Aliases of the template
  - `names` string[], required — Names of the template (namespace/alias format when namespaced)
  - `createdAt` string, date-time, required — Time when the template was created
  - `updatedAt` string, date-time, required — Time when the template was last updated
  - `createdBy` TeamUser, required
    - `id` string, uuid, required — Identifier of the user
    - `email` string, nullable, required — Email of the user
  - `lastSpawnedAt` string, date-time, nullable, required — Time when the template was last used
  - `spawnCount` integer, required — Number of times the template was used
  - `buildCount` integer, required — Number of times the template was built
  - `envdVersion` string, required — Version of the envd running in the sandbox
  - `buildStatus` 'building' | 'waiting' | 'ready' | 'error', required — Status of the template build

## Other responses

- `401` — Authentication error
- `500` — Server error

## Changes

> 53 revisions in range; 3 could not be searched.

- **2026-07-24** `93ed246a4c10` — 20 info
  - the endpoint scheme security `AdminApiKeyAuth AND AdminTeamAuth` was added to the API
  - the endpoint scheme security `Supabase1TokenAuth AND Supabase2TeamAuth` was removed from the API
  - endpoint deprecated
  - removed `#/components/schemas/Template` from the `items/` response property `allOf` list for the response status `200`
  - …16 more
- **2026-05-27** `e13ef89d456c` — 1 breaking, 2 info
  - the response property `items/allOf[#/components/schemas/Template]/createdBy/allOf[#/components/schemas/TeamUser]/email` became nullable for the status `200`
  - the endpoint scheme security `AuthProviderBearerAuth AND AuthProviderTeamAuth` was added to the API
  - response property `items/allOf[#/components/schemas/Template]/createdBy/allOf[#/components/schemas/TeamUser]/email` deprecated
- **2026-01-29** `402358b77bf2` — 2 info
  - response property `items/allOf[#/components/schemas/Template]/aliases` deprecated
  - added the required property `items/allOf[#/components/schemas/Template]/names` to the response with the `200` status
- **2026-01-27** `05ac348d449f` — 2 info
  - the endpoint scheme security `Supabase1TokenAuth AND Supabase2TeamAuth` was added to the API
  - the endpoint scheme security `Supabase1TokenAuth` was removed from the API
- …earlier changes not shown

[Full history](https://skmtc.dev/e2b-dev/apis/e2b-api/changes/templates/get.md)

---

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