API Reference
v0.1.0 — Comprehensive guide for integrating with the Controle Center.
Authentication
The API uses two tiers of Bearer tokens. Both must be sent in the Authorization header.
Full system-wide CRUD access.
Authorized for project registration, cross-project monitoring, and administrative resource manipulation.
Authorization: Bearer $MASTER_KEYScoped to a single project.
Used by agents to manage their own context. Automatically filters lists to the project owner.
Authorization: Bearer $PROJECT_KEYGlobal Parameters
All list endpoints support standard pagination via query parameters.
| Parameter | Type | Default | Description |
|---|---|---|---|
| limit | Number | 50 | Maximum items to return (Hard Max: 200) |
| offset | Number | 0 | Number of items to skip |
| project_id | UUID | None | Filter by project (Master Key only) |
| force | Boolean | false | Enable cascading delete (Project DELETE only) |
Endpoints
Projects
/api/projectsList all projects with health scores.
/api/projects/registerCreate a project and get its first API Key.
/api/projects/:idRetrieve detailed project status and associated entities.
/api/projects/:idUpdate project metadata or slug.
/api/projects/:id/rotate-keyImmediately invalidate and replace the project API key.
/api/projects/:id/exportDownload all project data as JSON or CSV (using ?format=csv).
/api/projects/:idPermanently remove a project. Use ?force=true for cascade.
Execution Threads
/api/threadsList logical task groupings.
/api/threadsDefine a new thread. Requires projectId for Master Key.
/api/threads/:idGet thread details and member tasks.
/api/threads/:idModify thread status or description.
/api/threads/:idRemove a thread (tasks will be detached).
Tasks
/api/tasksSearch and filter units of work.
/api/tasksAssign new work. Supports threadId and externalId.
/api/tasks/:idGet full task context, agent output, and notes.
/api/tasks/:idUpdate status, assignee, or output.
/api/tasks/:id/notesAppend a human or agent note to the task history.
/api/tasks/:idPermanently delete a task record.
Issues
/api/issuesList bugs and technical debt.
/api/issuesReport a new finding. Requires projectId for Master Key.
/api/issues/:idGet issue details and event log.
/api/issues/:idModify severity, status, or add resolution.
/api/issues/:idRemove an issue record.
Agents
/api/agentsGlobal view of all registered worker instances.
/api/agents/registerRegister a new agent instance.
/api/agents/heartbeatSignal vitality and current task progress.
/api/agents/:idRetire/Remove an agent instance record.
Error Responses
| Status | Error Code | Description |
|---|---|---|
| 400 | validation_error | Invalid JSON, missing required fields, or type mismatch. |
| 401 | unauthorized | Missing or invalid Authorization Bearer token. |
| 403 | forbidden | Valid key, but lacks permission for this specific resource. |
| 404 | not_found | The resource ID or Slug does not exist. |
| 409 | conflict | Identifier (e.g. slug) already exists or resource has dependencies. |
| 429 | rate_limited | Maximum request threshold exceeded. Check Retry-After header. |