Docs
Refer friends. Keep the rewards coming!Your friend can unlock up to 10M tokens · earn up to 30% revenue share.
+500K TokensGenerate link
POST /v1/sessions/{session_id}/runs

Start a Run

Start one execution inside an existing session. A Run is the unit of work — one instruction in, one result out.

Parameters

instruction*string

Natural-language instruction.

toolsstring[]

Tool allowlist for this Run.

streamboolean

Stream the response (SSE).

max_stepsnumber

Max execution steps (default 64).

Response

json
{
  id: "run_4c81b9d2",
  object: "run",
  session_id: "ses_9f31a2b4",
  status: "running",
  instruction: "Fix the N+1 in src/api/users.ts and add a test.",
  step: 0,
  max_steps: 64,
  created_at: 1716250502
}
{
  id: "run_4c81b9d2",
  object: "run",
  session_id: "ses_9f31a2b4",
  status: "running",
  instruction: "Fix the N+1 in src/api/users.ts and add a test.",
  step: 0,
  max_steps: 64,
  created_at: 1716250502
}