---
title: "Create worktree"
method: POST
path: "/experimental/worktree"
---

# Create worktree

`POST /experimental/worktree`

Create a new git worktree for the current project.

## Query parameters

- `directory` string

## Request body

- WorktreeCreateInput
  - `name` string
  - `startCommand` string

## Response `200`

Worktree created

- Worktree
  - `name` string, required
  - `branch` string, required
  - `directory` string, required

## Other responses

- `400` — Bad request

---

[API](https://skmtc.net/martian-engineering/apis/voltcode.md) · [All operations](https://skmtc.net/martian-engineering/apis/voltcode/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/martian-engineering/voltcode/revisions/d28625e4a7ea/schema)
