---
title: "List template builds"
method: GET
path: "/templates/{templateID}"
tags: ["templates"]
---

# List template builds

`GET /templates/{templateID}`

List all builds for a template

## Path parameters

- `templateID` string, required

## Query parameters

- `nextToken` string
- `limit` integer

## Response `200`

Successfully returned the template with its builds

- TemplateWithBuilds
  - `templateID` string, required — Identifier of the template
  - `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
  - `lastSpawnedAt` string, date-time, nullable, required — Time when the template was last used
  - `spawnCount` integer, required — Number of times the template was used
  - `builds` TemplateBuild[], required — List of builds for the template
    - `buildID` string, uuid, required — Identifier of the build
    - `status` 'building' | 'waiting' | 'ready' | 'error', required — Status of the template build
    - `createdAt` string, date-time, required — Time when the build was created
    - `updatedAt` string, date-time, required — Time when the build was last updated
    - `finishedAt` string, date-time — Time when the build was finished
    - `cpuCount` integer, required — CPU cores for the sandbox
    - `memoryMB` integer, required — Memory for the sandbox in MiB
    - `diskSizeMB` integer — Disk size for the sandbox in MiB
    - `envdVersion` string — Version of the envd running in the sandbox

## Other responses

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

---

[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)
