Skip to main content

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​

ServiceDefault address
Forge Centralhttp://127.0.0.1:8080
Brainhttp://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​

StatusMeaning
200Successful read, update, decision, or result acknowledgment
400Invalid request, enum, path, transition, or verification setting
401Fleet, worker, or run credential rejected
403Remote access disabled, scope denied, or task not assigned to this worker
404Resource not found
409State conflict, active references, duplicate claim, or invalid transition
422Request body failed validation
500Unhandled service or storage failure
503Required 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​

GroupRepresentative routesHandbook page
Health and statusGET /health, GET /status, GET /alerts, GET /enginesRunning the stack
WorkersPOST /workers/register, POST /workers/{id}/heartbeat, GET /workers, GET /workers/types, DELETE /workers/{id}Workers
ProjectsPOST /projects, GET /projects, PATCH /projects/{id}, DELETE /projects/{id}Projects
TasksPOST /tasks, POST /tasks/preview, GET /tasks, GET /tasks/{id}, GET /tasks/{id}/logs, GET /tasks/{id}/runs, DELETE /tasks/{id}Tasks
Task executionGET /tasks/next, POST /tasks/{id}/claim, POST /tasks/{id}/lease, POST /tasks/{id}/log, POST /tasks/{id}/resultWorkers
CheckpointsPOST /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}/cancelReviews and deliverables
Briefs and acceptanceGET and PUT /tasks/{id}/brief, POST /tasks/{id}/acceptance, GET /runs/{id}/acceptance, POST /runs/{id}/acceptance/assessmentsReviews and deliverables
Queued execution settingsGET and PUT /tasks/{id}/execution, POST /tasks/{id}/execution/previewTasks
Follow-upsGET, POST, and DELETE /tasks/{id}/followupsTasks
Stage inputsGET and PUT /tasks/{id}/handoff, GET /tasks/{id}/handoff/downloadReviews and deliverables
DeliverablesGET /runs/{id}/deliverables, GET /runs/{id}/deliverables/file, PUT /runs/{id}/deliverables/fileReviews and deliverables
PipelinesGET /pipelines, POST /pipelines/{name}, POST /pipelines/{name}/previewMethods and workflows
Workflow templatesGET, PUT, and POST under /workflow-templatesMethods and workflows
Managed methodsGET, PUT, and POST under /methods, plus GET /methods/source/skill/{name}Methods and workflows
Task defaultsGET and PUT /task-defaults/{level}, GET /task-defaults/{level}/versionsProjects
SessionsPOST /sessions, GET /sessions/{id}, GET /sessions/{id}/tasks, GET /sessions/{id}/workflow, POST /sessions/{id}/completeTasks
SchedulesGET, POST, PATCH, and DELETE under /schedules, plus occurrence, result, and cursor routesRecurring tasks
Analytics and tracesGET /analytics/egress, GET /analytics/outcomes, GET /runs/{id}/trace, GET /runs/{id}/diffQuality and feedback
Usage measurementGET /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​

GroupRepresentative routesHandbook page
ChatPOST /chat, POST /chat/stream, GET /chat/providers, GET /chat/influences, GET /chat/generation-controlsChat
AttachmentsPOST, GET, and DELETE under /chat/attachmentsChat
Turn inspectionGET /chat/turns/{id}/trace, GET /chat/turns/{id}/inspectionChat
Reply ratingsGET, PUT, and DELETE /chat/turns/{id}/feedback, GET /chat/turn-feedbackQuality and feedback
Polish reviewGET /chat/turns/{id}/revision, POST /chat/turns/{id}/revision-verdict, /chat/revision-casesQuality and feedback
Meaning trials/chat/revision-trials preview, create, cancel, and deleteQuality and feedback
Conversation workspaces/chat/workspacesConversations
Voice examplesGET, POST, PUT, and DELETE /chat/voice-examples, POST /chat/voice-packs/reloadWriting and voice
Writing drafts/writing/drafts and its version routesWriting and voice
Voice packs/writing/packs, /writing/pack-settings, /writing/profiles; lenses are edited under /library/lensesVoice packs
Writing comparison/writing/evaluation cases, runs, reviews, suites, and batchesQuality and feedback
Context budgets/writing/context-budgets, including worker-effectiveSettings and budgets
Local processing/writing/local-processingSettings and budgets
Chat defaultsGET and PUT /settings/operator, POST /settings/operator/preview, GET /settings/operator/versionsSettings and budgets
Operator context/context records, versions, and previewBriefs and memory
Influence library/library sources, groups, selections, passages, and previewsSources and influences
Source lifecycle/library/sources/{id} replacement, cleanup, and undoSources and influences
Research/research briefs, runs, evidence, findings, and cited briefsResearch
KnowledgeGET /knowledge/search, POST /knowledge/add, POST /knowledge/ingest, GET /knowledge/collectionsBriefs and memory
Knowledge documentsGET, PUT, and DELETE /knowledge/{collection}/documents/{id}Briefs and memory
Memory corrections/memory-management records, history, and retryBriefs and memory
Learning candidatesGET /knowledge/candidates, promote, and dismissBriefs and memory
Canonical project memoryGET /cpmi/search, GET /cpmi/records, GET /cpmi/stats, POST /cpmi/index, POST /cpmi/pushBriefs and memory
RulesGET, POST, PUT, and DELETE /rules, GET /rules/activeBriefs and memory
Task and output feedbackPOST /feedback, GET /feedback/{task_id}, /feedback-targetsQuality and feedback
ConversationsPOST /conversations/save, GET /conversations/list, GET and DELETE /conversations/{name}Conversations
Provider keysGET /config/api-keysDisabled unless key distribution is enabled

Client guidance​

Three habits prevent most integration bugs.

  1. 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.
  2. 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.
  3. Treat 409 as reload-and-reapply. Every versioned editor uses an optimistic revision check, and the server preserves the newer value.
  4. Send base_revision on every measurement PUT. Usage settings, prices, task labels, and account observations are revision checked; a stale edit returns 409. Usage report and export accept days=0 for all history and cap positive windows at 365; the egress and outcome routes cap a positive days at 365 and treat zero or a negative value as all recorded time.
  5. Do not send a turn limit. max_iterations is no longer a task field. Legacy values in requests, defaults, execution imports, and recurring templates are accepted and ignored, and GET /engines no longer advertises default_max_turns or supports_max_turns. What GET /engines does report is effort_levels per engine (claude-code low to max, antigravity low to high, codex minimal to xhigh, codex-oss none), installed CLI versions from the last registration, and each engine's model catalogue. effort: null means 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.