---
title: "Fork template (Cloud-only)"
method: POST
path: "/v1/templates/{project_id}/{template_version}/fork"
tags: ["templates"]
---

# Fork template (Cloud-only)

`POST /v1/templates/{project_id}/{template_version}/fork`

Forks a template version into a new template

## Path parameters

- `project_id` string, required
- `template_version` string, required

## Request body

- object
  - `name` string — Optional custom name for the forked template. If not provided, a random name will be generated.

## Response `200`

200

- object
  - `name` string, required — The exact name of the template
  - `id` string, required
  - `project_id` string, required
  - `project_slug` string, required
  - `latest_version` string, required — The latest version of the template
  - `description` string
  - `template_deployment_slug` string, required — The full name of the template, including version and project slug
  - `updated_at` string, required — When the template was last updated

## Other responses

- `400` — 400

---

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