Base URL
Production
Cookie headers are stripped before authentication—API routes read only Authorization: Bearer <token>. Responses carry Content-Type: application/json; charset=utf-8 (except SSE streams) and Cache-Control: no-store.
Error format
Every non-2xx response returns a structured JSON error envelope with a stable machine-readablecode and human-readable English message:
Pagination cursors
GET /api/v1/projects and GET /api/v1/kits accept limit (1–200, default 100) and an opaque cursor returned in next_cursor. Keep passing next_cursor while has_more is true.
Idempotent runs
POST /api/v1/runs accepts an optional Idempotency-Key header (1–128 characters matching [A-Za-z0-9._:-]). Replaying the exact same request with the same key returns HTTP 200 with the original run instead of starting a second draft. Reusing an active key with a different product or text returns 409 idempotency_conflict.
Streaming specialist turns (SSE)
SendAccept: text/event-stream on POST /api/v1/kits/{kit}/threads/{agent}/turns to stream token deltas:
turn— Recorded user turn metadatastatus— Stage updatesdelta— Incremental response text chunksdone(orerror) — Terminal payload carrying the fullTurnResponseincluding any pendingpatchandcurrentdiff arrays