---
title: "Create template (v3)"
method: POST
path: "/v3/templates"
tags: ["templates"]
---

# Create template (v3)

`POST /v3/templates`

Create a new template

## Request body

- TemplateBuildRequestV3
  - `name` string — Name of the template. Can include a tag with colon separator (e.g. "my-template" or "my-template:v1"). If tag is included, it will be treated as if the tag was provided in the tags array.
  - `tags` string[] — Tags to assign to the template build
  - `alias` string — Alias of the template. Deprecated, use name instead.
  - `teamID` string — Identifier of the team
  - `cpuCount` integer — CPU cores for the sandbox
  - `memoryMB` integer — Memory for the sandbox in MiB

## Response `202`

The build was requested successfully

- TemplateRequestResponseV3
  - `templateID` string, required — Identifier of the template
  - `buildID` string, required — Identifier of the last successful build for given template
  - `public` boolean, required — Whether the template is public or only accessible by the team
  - `names` string[], required — Names of the template
  - `tags` string[], required — Tags assigned to the template build
  - `aliases` string[], required — Aliases of the template

## Other responses

- `400` — Bad request
- `401` — Authentication error
- `403` — Forbidden
- `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)
