---
title: "Spawn Agent"
method: POST
path: "/v1/teams/{team_id}/agents/spawn"
tags: ["agent runtime"]
---

# Spawn Agent

`POST /v1/teams/{team_id}/agents/spawn`

## Request

- Base URL: `https://api.stormy.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stormy.ai/v1/teams/{team_id}/agents/spawn`
- Auth: none declared

Start one full-harness child and return immediately to the caller.

## Path parameters

- `team_id` string, uuid, required

## Headers

- `authorization` string, nullable
- `x-darwin-token` string, nullable
- `x-darwin-run-id` string, nullable

## Request body

- SpawnAgentRequest
  - `task` string, required
  - `idempotency_key` string, required
  - `lane` string, nullable
  - `kind` 'work' | 'page'
  - `engine` 'pi' | 'claude_managed', nullable
  - `budget_usd` number, nullable
  - `inherit_context` boolean
  - `brief_deadline_seconds` integer, nullable
  - `parent_harness_context` ParentHarnessContext: The exact Pi workbench inherited by an instant nested page job.
    - `system_prompt` string, required
    - `system_prompt_source` string, nullable
    - `prompt` string, required
    - `preloaded_context` string[]
  - `page` string, nullable

## Response `202`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

> 68 revisions in range; 1 not diffed.

- **2026-10-06** `b04426754d2a`: 2 breaking, 2 info
  - removed the enum value `claude_managed` of the request property `engine`
  - removed the enum value `pi` of the request property `engine`
  - the `engine` request property default value `pi` was removed
  - request property `engine` list-of-types was widened by adding types `null` to media type `application/json`
- **2026-10-06** `8764aa9a19c7`: 2 info
  - added the new optional request property `budget_usd`
  - added the new optional request property `engine`
- **2026-09-28** `432537ba92f4`: 1 info
  - added the new optional request property `page`
- **2026-09-26** `faea4a09e09c`: 1 info
  - added the new optional request property `parent_harness_context/anyOf[subschema #1: ParentHarnessContext]/system_prompt_source`
- **2026-09-03** `c48c4f626ab0`: 3 info
  - added the new optional request property `inherit_context`
  - added the new optional request property `kind`
  - added the new optional request property `parent_harness_context`

[Operation history](https://skmtc.dev/stormy/apis/stormy-control-plane/changes/v1/teams/:team_id/agents/spawn/post.md)

---

[API](https://skmtc.dev/stormy/apis/stormy-control-plane.md) · [All operations](https://skmtc.dev/stormy/apis/stormy-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/stormy/apis/stormy-control-plane/revisions/a40e83844eaa?raw)
