API reference map
Status: Ready
Truth label: Current
Audience: System designer, Fleet operator
Reader outcome: Find the right route group for a task, know which credential it needs, and know which handbook page explains its behavior.
Last verified: 2026-09-13
Full guides: API reference
Service locations
| Service | Default address |
|---|---|
| Forge Central | http://127.0.0.1:8080 |
| Brain | http://127.0.0.1:8081 |
Both expose GET /health publicly. Every other route follows the local-or-token
policy described in Security boundaries.
Response conventions
| Status | Meaning |
|---|---|
| 200 | Successful read, update, decision, or result acknowledgment |
| 400 | Invalid request, enum, path, transition, or verification setting |
| 401 | Fleet, worker, or run credential rejected |
| 403 | Remote access disabled, scope denied, or task not assigned to this worker |
| 404 | Resource not found |
| 409 | State conflict, active references, duplicate claim, or invalid transition |
| 422 | Request body failed validation |
| 500 | Unhandled service or storage failure |
| 503 | Required dependent service unavailable |
Status 409 is the normal answer to a stale save. Every Cortex editor treats it as "reload and reapply", not as an error to retry blindly.
Forge Central
| Group | Representative routes | Handbook page |
|---|---|---|
| Health and status | GET /health, GET /status, GET /alerts, GET /engines | Running the stack |
| Workers | POST /workers/register, POST /workers/{id}/heartbeat, GET /workers, GET /workers/types, DELETE /workers/{id} | Workers |
| Projects | POST /projects, GET /projects, PATCH /projects/{id}, DELETE /projects/{id} | Projects |
| Tasks | POST /tasks, POST /tasks/preview, GET /tasks, GET /tasks/{id}, GET /tasks/{id}/logs, GET /tasks/{id}/runs, DELETE /tasks/{id} | Tasks |
| Task execution | GET /tasks/next, POST /tasks/{id}/claim, POST /tasks/{id}/lease, POST /tasks/{id}/log, POST /tasks/{id}/result | Workers |
| Checkpoints | POST /tasks/{id}/approve (with grade, override_gate at a failure hold, or complete_now at a plan hold), POST /tasks/{id}/reject, POST /tasks/{id}/cancel | Reviews and deliverables |
| Briefs and acceptance | GET and PUT /tasks/{id}/brief, POST /tasks/{id}/acceptance, GET /runs/{id}/acceptance, POST /runs/{id}/acceptance/assessments | Reviews and deliverables |
| Queued execution settings | GET and PUT /tasks/{id}/execution, POST /tasks/{id}/execution/preview | Tasks |
| Follow-ups | GET, POST, and DELETE /tasks/{id}/followups | Tasks |
| Stage inputs | GET and PUT /tasks/{id}/handoff, GET /tasks/{id}/handoff/download | Reviews and deliverables |
| Deliverables | GET /runs/{id}/deliverables, GET /runs/{id}/deliverables/file, PUT /runs/{id}/deliverables/file | Reviews and deliverables |
| Pipelines | GET /pipelines, POST /pipelines/{name}, POST /pipelines/{name}/preview | Methods and workflows |
| Workflow templates | GET, PUT, and POST under /workflow-templates | Methods and workflows |
| Managed methods | GET, PUT, and POST under /methods, plus GET /methods/source/skill/{name} | Methods and workflows |
| Task defaults | GET and PUT /task-defaults/{level}, GET /task-defaults/{level}/versions | Projects |
| Sessions | POST /sessions, GET /sessions/{id}, GET /sessions/{id}/tasks, GET /sessions/{id}/workflow, POST /sessions/{id}/complete | Tasks |
| Schedules | GET, POST, PATCH, and DELETE under /schedules, plus occurrence, result, and cursor routes | Recurring tasks |
| Analytics and traces | GET /analytics/egress, GET /analytics/outcomes, GET /runs/{id}/trace, GET /runs/{id}/diff | Quality and feedback |
| Usage measurement | GET /analytics/usage/report, GET /analytics/usage/export, GET and PUT /analytics/usage/settings, POST /analytics/usage/refresh, POST /analytics/usage/ingest (worker credential), GET and PUT /analytics/usage/prices, PUT /analytics/usage/accounts/{id}, GET /analytics/usage/history/{kind}/{id} | Quality and feedback |
Brain
| Group | Representative routes | Handbook page |
|---|---|---|
| Chat | POST /chat, POST /chat/stream, GET /chat/providers, GET /chat/influences, GET /chat/generation-controls | Chat |
| Attachments | POST, GET, and DELETE under /chat/attachments | Chat |
| Turn inspection | GET /chat/turns/{id}/trace, GET /chat/turns/{id}/inspection | Chat |
| Reply ratings | GET, PUT, and DELETE /chat/turns/{id}/feedback, GET /chat/turn-feedback | Quality and feedback |
| Polish review | GET /chat/turns/{id}/revision, POST /chat/turns/{id}/revision-verdict, /chat/revision-cases | Quality and feedback |
| Meaning trials | /chat/revision-trials preview, create, cancel, and delete | Quality and feedback |
| Conversation workspaces | /chat/workspaces | Conversations |
| Voice examples | GET, POST, PUT, and DELETE /chat/voice-examples, POST /chat/voice-packs/reload | Writing and voice |
| Writing drafts | /writing/drafts and its version routes | Writing and voice |
| Voice packs | /writing/packs, /writing/pack-settings, /writing/profiles; lenses are edited under /library/lenses | Voice packs |
| Writing comparison | /writing/evaluation cases, runs, reviews, suites, and batches | Quality and feedback |
| Context budgets | /writing/context-budgets, including worker-effective | Settings and budgets |
| Local processing | /writing/local-processing | Settings and budgets |
| Chat defaults | GET and PUT /settings/operator, POST /settings/operator/preview, GET /settings/operator/versions | Settings and budgets |
| Operator context | /context records, versions, and preview | Briefs and memory |
| Influence library | /library sources, groups, selections, passages, and previews | Sources and influences |
| Source lifecycle | /library/sources/{id} replacement, cleanup, and undo | Sources and influences |
| Research | /research briefs, runs, evidence, findings, and cited briefs | Research |
| Knowledge | GET /knowledge/search, POST /knowledge/add, POST /knowledge/ingest, GET /knowledge/collections | Briefs and memory |
| Knowledge documents | GET, PUT, and DELETE /knowledge/{collection}/documents/{id} | Briefs and memory |
| Memory corrections | /memory-management records, history, and retry | Briefs and memory |
| Learning candidates | GET /knowledge/candidates, promote, and dismiss | Briefs and memory |
| Canonical project memory | GET /cpmi/search, GET /cpmi/records, GET /cpmi/stats, POST /cpmi/index, POST /cpmi/push | Briefs and memory |
| Rules | GET, POST, PUT, and DELETE /rules, GET /rules/active | Briefs and memory |
| Task and output feedback | POST /feedback, GET /feedback/{task_id}, /feedback-targets | Quality and feedback |
| Conversations | POST /conversations/save, GET /conversations/list, GET and DELETE /conversations/{name} | Conversations |
| Provider keys | GET /config/api-keys | Disabled unless key distribution is enabled |
Client guidance
Three habits prevent most integration bugs.
- Send a request id and reuse it on retry. Central returns the existing task for the same id and body. Reusing the id with different content returns a conflict, and a deleted task returns Gone rather than recreating work.
- Read the response, not the request. Unknown request fields are currently
ignored, so confirm the created task contains the field you set, for example
assigned_worker. - Treat 409 as reload-and-reapply. Every versioned editor uses an optimistic revision check, and the server preserves the newer value.
- Send
base_revisionon every measurement PUT. Usage settings, prices, task labels, and account observations are revision checked; a stale edit returns 409. Usage report and export acceptdays=0for all history and cap positive windows at 365; the egress and outcome routes cap a positivedaysat 365 and treat zero or a negative value as all recorded time. - Do not send a turn limit.
max_iterationsis no longer a task field. Legacy values in requests, defaults, execution imports, and recurring templates are accepted and ignored, andGET /enginesno longer advertisesdefault_max_turnsorsupports_max_turns. WhatGET /enginesdoes report iseffort_levelsper engine (claude-codelowtomax, antigravitylowtohigh, codexminimaltoxhigh, codex-oss none), installed CLI versions from the last registration, and each engine's model catalogue.effort: nullmeans the CLI's own default.
Trust warning
An authenticated API client has the same authority as the operator. It can create tasks, approve checkpoints, read traces, ingest server-side files, and search memory. Do not hand the fleet bearer to code you would not run yourself.