---
title: "List templates (v2)"
method: GET
path: "/v2/templates"
tags: ["templates"]
---

# List templates (v2)

`GET /v2/templates`

List all templates

## Query parameters

- `teamID` string — Identifier of the team
- `nextToken` string
- `limit` integer

## 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

- `400` — Bad request
- `401` — Authentication error
- `403` — Forbidden
- `500` — Server error

## Changes

- **2026-08-20** `e01b3f5506fe` — 4 info
  - added the optional property `error_code` to the response with the `400` status
  - added the optional property `error_code` to the response with the `401` status
  - added the optional property `error_code` to the response with the `403` status
  - added the optional property `error_code` to the response with the `500` status
- **2026-07-24** `93ed246a4c10` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/e2b-dev/apis/e2b-api/changes/v2/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)
