---
title: "Speculatively create the next task's worktree"
method: POST
path: "/api/v1/projects/{id}/tasks/prepare"
tags: ["projects"]
---

# Speculatively create the next task's worktree

`POST /api/v1/projects/{id}/tasks/prepare`

## Path parameters

- `id` string, required — Project identifier (registry key).

## Response `202`

Accepted

- PrepareTaskResponse
  - `ok` boolean, required
  - `taskPreparation` string

## Other responses

- `404` — Not Found
- `500` — Internal Server Error
- `501` — Not Implemented

## Changes

- **2026-09-26** `710a6d7a7501` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/changes/api/v1/projects/:id/tasks/prepare/post.md)

---

[API](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon.md) · [All operations](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/llms.txt) · [OpenAPI document](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/revisions/1e9e4bbb67f1?raw)
