Generated from docs/openapi.json (127 paths, 169 operations) by scripts/gen-api-reference.py — do not hand-edit. Regenerate with ./scripts/regen-generated.sh after the spec changes.
This page lists every path, method, parameter and request/response schema name. It does not inline schema bodies — load docs/openapi.json into an OpenAPI viewer (Redocly, Scalar, Swagger Editor) for the full definitions, or read them directly in the spec file.
Two authentication surfaces, the WebSocket endpoint (not in this spec), and worked examples are in docs/API-REFERENCE.md.
Health and debug probes.
Database statistics
| Status | Meaning | Schema |
| 200 | Per-table row counts | — |
System info (only in debug builds)
| Status | Meaning | Schema |
| 200 | Build, version, database size, and non-sensitive config | — |
Liveness + readiness check
| Status | Meaning | Schema |
| 200 | Service is live; reports version and applied migration count | — |
Projects: the top-level container for work.
| Status | Meaning | Schema |
| 200 | All projects in the workspace | Project[] |
Request body: CreateProject
| Status | Meaning | Schema |
| 200 | Project created | Project |
| 400 | Validation error | ErrorEnvelope |
| Param | In | Type | Required | Description |
id | path | string | yes | Project ID |
| Status | Meaning | Schema |
| 200 | Deleted | — |
| 404 | Project not found | ErrorEnvelope |
| Param | In | Type | Required | Description |
id | path | string | yes | Project ID |
| Status | Meaning | Schema |
| 200 | The project | Project |
| 404 | Project not found | ErrorEnvelope |
| Param | In | Type | Required | Description |
id | path | string | yes | Project ID |
Request body: UpdateProject
| Status | Meaning | Schema |
| 200 | Updated project | Project |
| 400 | Validation error | ErrorEnvelope |
| 404 | Project not found | ErrorEnvelope |
start
| Param | In | Type | Required | Description |
id | path | string | yes | Project ID |
| Status | Meaning | Schema |
| 200 | Whether the project starts tasks by itself and why each waiting task is not started yet | AutoStartState |
| 404 | No such project | ErrorEnvelope |
GET /api/projects/{id}/routing
| Param | In | Type | Required | Description |
id | path | string | yes | Project ID |
| Status | Meaning | Schema |
| 200 | For each open card of the project, the profile that would do it, where that choice came from, and the team or agent it runs in; or why nobody would take it. The same choice a run takes | Routed[] |
| 404 | No such project | ErrorEnvelope |
What needs a person: an inbox of open and settled notifications, and a live socket that tells when it changes.
GET /api/notifications
| Param | In | Type | Required | Description |
state | path | NotificationState | yes | open (the default): what still asks something of the person. all: everything kept, |
limit | path | ['integer', 'null'] | yes | How many to return, 50 by default and 500 at most. 0 returns none, for a caller that |
| Status | Meaning | Schema |
| 200 | The notifications, newest first, and how many are open | NotificationList |
| 400 | state or limit is not what it should be | ErrorEnvelope |
GET /api/notifications/channels
| Status | Meaning | Schema |
| 200 | Every channel notifications leave through, with how many deliveries wait, how many were given up on, and the last error | NotificationChannel[] |
all
| Status | Meaning | Schema |
| 200 | Every unread notification is read now | ReadAll |
POST /api/notifications/{id}/read
| Param | In | Type | Required | Description |
id | path | string | yes | The notification |
| Status | Meaning | Schema |
| 204 | Marked read; one that is read already, or not there, changes nothing | — |
| 400 | id is not an id | ErrorEnvelope |
A computed, bounded summary of the projects a caller may read.
GET /api/digest
| Param | In | Type | Required | Description |
projects | path | ['string', 'null'] | yes | The projects to describe, as ids separated by commas. Absent: every project the caller |
since | path | ['string', 'null'] | yes | Runs that failed before this instant (RFC 3339) are left out. Absent: the last 24 hours. |
| Status | Meaning | Schema |
| 200 | A computed, bounded summary of the projects: items per status, what waits on a person and since when, blocked chains, tasks no team will pick up and why, stale items, runs failed since since, tokens against the limits, each team's current work and queue, and the change sets waiting. Every list shows a fixed number of rows and says how many more there are | Digest |
| 400 | projects or since is not what it should be | ErrorEnvelope |
| 403 | The credential lacks the scope read on a project it asked for | ErrorEnvelope |
| 404 | A project it asked for does not exist | ErrorEnvelope |
What needs a person: an inbox of open and settled notifications, and a live socket that tells when it changes.
GET /api/notifications
| Param | In | Type | Required | Description |
state | path | NotificationState | yes | open (the default): what still asks something of the person. all: everything kept, |
limit | path | ['integer', 'null'] | yes | How many to return, 50 by default and 500 at most. 0 returns none, for a caller that |
| Status | Meaning | Schema |
| 200 | The notifications, newest first, and how many are open | NotificationList |
| 400 | state or limit is not what it should be | ErrorEnvelope |
GET /api/notifications/channels
| Status | Meaning | Schema |
| 200 | Every channel notifications leave through, with how many deliveries wait, how many were given up on, and the last error | NotificationChannel[] |
all
| Status | Meaning | Schema |
| 200 | Every unread notification is read now | ReadAll |
POST /api/notifications/{id}/read
| Param | In | Type | Required | Description |
id | path | string | yes | The notification |
| Status | Meaning | Schema |
| 204 | Marked read; one that is read already, or not there, changes nothing | — |
| 400 | id is not an id | ErrorEnvelope |
Conversations between a person and a profile; each message starts a turn.
GET /api/threads
| Param | In | Type | Required | Description |
project_id | path | ['string', 'null'] | yes | Only the threads whose home is this project. |
open | path | boolean | yes | Only the open threads. |
| Status | Meaning | Schema |
| 200 | Threads, the most recently written first | Thread[] |
POST /api/threads
Request body: CreateThread
| Status | Meaning | Schema |
| 200 | The thread, open, with no message | Thread |
| 400 | The title, the profile or the credential is not acceptable | ErrorEnvelope |
| 404 | Project not found | ErrorEnvelope |
GET /api/threads/{id}
| Param | In | Type | Required | Description |
id | path | string | yes | Thread ID |
| Status | Meaning | Schema |
| 200 | The thread, its messages and its turns | ThreadDetail |
| 403 | The credential lacks the scope converse on the thread's project | ErrorEnvelope |
| 404 | Not found | ErrorEnvelope |
POST /api/threads/{id}/close
| Param | In | Type | Required | Description |
id | path | string | yes | Thread ID |
| Status | Meaning | Schema |
| 200 | The thread, closed | Thread |
| 404 | Not found | ErrorEnvelope |
POST /api/threads/{id}/messages
| Param | In | Type | Required | Description |
id | path | string | yes | Thread ID |
Request body: PostMessage
| Status | Meaning | Schema |
| 200 | The message is in the thread; when a person wrote it, its turn has started (an agent's message starts none) | PostedMessage |
| 400 | The message or its references are not acceptable | ErrorEnvelope |
| 403 | The credential lacks the scope converse on the thread's project | ErrorEnvelope |
| 404 | Not found | ErrorEnvelope |
| 409 | The thread is closed or idle, or a person's message is past the turn cap or comes before the last turn has answered | ErrorEnvelope |
Rules that wake a profile on an event or a schedule; one run takes every event since the last.
GET /api/triggers
| Param | In | Type | Required | Description |
project_id | path | ['string', 'null'] | yes | Only the triggers whose home is this project. |
| Status | Meaning | Schema |
| 200 | Triggers, oldest first | Trigger[] |
POST /api/triggers
Request body: CreateTrigger
| Status | Meaning | Schema |
| 200 | The trigger | Trigger |
| 400 | The trigger, its profile or its credential is not acceptable | ErrorEnvelope |
| 404 | Project not found | ErrorEnvelope |
DELETE /api/triggers/{id}
| Param | In | Type | Required | Description |
id | path | string | yes | Trigger ID |
| Status | Meaning | Schema |
| 204 | Deleted, with the events it kept | — |
| 404 | Not found | ErrorEnvelope |
GET /api/triggers/{id}
| Param | In | Type | Required | Description |
id | path | string | yes | Trigger ID |
| Status | Meaning | Schema |
| 200 | The trigger | Trigger |
| 404 | Not found | ErrorEnvelope |
PATCH /api/triggers/{id}
| Param | In | Type | Required | Description |
id | path | string | yes | Trigger ID |
Request body: UpdateTrigger
| Status | Meaning | Schema |
| 200 | The trigger, changed | Trigger |
| 400 | The change is not acceptable | ErrorEnvelope |
| 404 | Not found | ErrorEnvelope |
Items: the universal work unit (epics, tasks, bugs, …).
| Param | In | Type | Required | Description |
id | path | string | yes | Item ID |
| Status | Meaning | Schema |
| 200 | Deleted | — |
| 404 | Item not found | ErrorEnvelope |
| Param | In | Type | Required | Description |
id | path | string | yes | Item ID |
| Status | Meaning | Schema |
| 200 | Item with roles and dependencies; carries an ETag header for a later conditional PATCH | ItemDetail |
| 404 | Item not found | ErrorEnvelope |
| Param | In | Type | Required | Description |
id | path | string | yes | Item ID |
If-Match | header | ['string', 'null'] | no | Optional ETag from GET /api/items/{id}; a stale or malformed value returns 412 and writes nothing |
Request body: UpdateItem
| Status | Meaning | Schema |
| 200 | Updated item; carries the ETag for the exact returned snapshot | ItemCard |
| 400 | Invalid transition / validation error | ErrorEnvelope |
| 404 | Item not found | ErrorEnvelope |
| 412 | If-Match did not match the current item version — nothing was written | ErrorEnvelope |
| 422 | The tree rule refuses the parent or the sprint: group_under_work, parent_loop, tree_too_deep, parent_in_other_project, group_in_sprint | ErrorEnvelope |
what the agent will read for a given item:
| Param | In | Type | Required | Description |
id | path | string | yes | Item ID |
profile_id | query | string | no | The agent profile to compose with; the project's default when absent. |
harness | query | string | no | The agent the run dialog has chosen (claude-code, codex, docket, opencode); it |
tokens | query | integer | no | The token limit typed in the run dialog, a positive whole number. Equal to the profile's it |
no_limit | query | boolean | no | true when the person cleared the dialog's token limit to run without one; wins over |
| Status | Meaning | Schema |
| 200 | The composed instructions for the agent | AgentContextResponse |
| 404 | Item or project not found | ErrorEnvelope |
Removes an item's manual (or imported) GitHub link. 204 even when the
| Param | In | Type | Required | Description |
id | path | string | yes | Item ID |
| Status | Meaning | Schema |
| 204 | Unlinked (or was already unlinked) | — |
| 404 | Item not found | ErrorEnvelope |
| Param | In | Type | Required | Description |
id | path | string | yes | Item ID |
| Status | Meaning | Schema |
| 200 | The item's current GitHub link | GithubLinkBody |
| 404 | Item not found, or not linked | ErrorEnvelope |
Manually links an item to a GitHub issue so status and comments sync both ways — the
| Param | In | Type | Required | Description |
id | path | string | yes | Item ID |
Request body: GithubLinkBody
| Status | Meaning | Schema |
| 204 | Linked | — |
| 400 | Invalid repo or issue number | ErrorEnvelope |
| 404 | Item not found | ErrorEnvelope |
| Param | In | Type | Required | Description |
id | path | string | yes | Parent Item ID |
Request body: CreateItemsFromPlanRequest
| Status | Meaning | Schema |
| 200 | Items created | CreateItemsFromPlanResponse |
| 400 | Validation error | ErrorEnvelope |
| 404 | Parent item not found | ErrorEnvelope |
The profiles that may run an item, and why the others may not.
| Param | In | Type | Required | Description |
id | path | string | yes | Item ID |
| Status | Meaning | Schema |
| 200 | Each agent profile and whether it may run the item, with the reason when it may not. The rule a run is refused by | RunOption[] |
| 404 | No such item | ErrorEnvelope |
| Param | In | Type | Required | Description |
project_id | path | string | yes | Project ID |
status | path | ['string', 'null'] | yes | |
item_type | path | ['string', 'null'] | yes | |
priority | path | — | yes | |
sprint_id | path | ['string', 'null'] | yes | |
parent_id | path | ['string', 'null'] | yes | |
node | path | — | yes | Only groups, or only work. |
under | path | ['string', 'null'] | yes | Only what lies under this item, at any depth; the item itself is left out. |
assignee | path | ['string', 'null'] | yes | |
tag | path | ['string', 'null'] | yes | |
search | path | ['string', 'null'] | yes | |
page | path | ['integer', 'null'] | yes | |
per_page | path | ['integer', 'null'] | yes | |
| Status | Meaning | Schema |
| 200 | Paginated items | PaginatedItems |
| Param | In | Type | Required | Description |
project_id | path | string | yes | Project ID |
Request body: CreateItem
| Status | Meaning | Schema |
| 200 | Item created | ItemCard |
| 400 | Validation error | ErrorEnvelope |
| 404 | Project not found | ErrorEnvelope |
| 422 | The parent breaks the tree rule: a group under work (group_under_work), a tree deeper than five levels (tree_too_deep) or a parent of another project (parent_in_other_project) | ErrorEnvelope |
| Param | In | Type | Required | Description |
project_id | path | string | yes | Project ID |
| Status | Meaning | Schema |
| 200 | Every item of the project, parents first, each group with how far the work under it is | ItemNode[] |
| Param | In | Type | Required | Description |
project_id | path | string | yes | Project ID |
item | query | string | no | An item that exists: the answer leaves out the item and everything under it. |
type | query | string | no | The type key of an item about to be made. |
| Status | Meaning | Schema |
| 200 | Every item the tree rule admits as the parent, in tree order | ParentOption[] |
| 400 | Neither or both of item and type were given | ErrorEnvelope |
| 404 | The project, the item or the type is not there | ErrorEnvelope |
Sprints / iterations within a project.
| Param | In | Type | Required | Description |
project_id | path | string | yes | Project ID |
| Status | Meaning | Schema |
| 200 | Sprints for the project | Sprint[] |
| Param | In | Type | Required | Description |
project_id | path | string | yes | Project ID |
Request body: CreateSprint
| Status | Meaning | Schema |
| 200 | Sprint created | Sprint |
| 400 | Validation error | ErrorEnvelope |
| Param | In | Type | Required | Description |
id | path | string | yes | Sprint ID |
| Status | Meaning | Schema |
| 200 | The sprint | Sprint |
| 404 | Sprint not found | ErrorEnvelope |
| Param | In | Type | Required | Description |
id | path | string | yes | Sprint ID |
Request body: UpdateSprint
| Status | Meaning | Schema |
| 200 | The updated sprint | Sprint |
| 400 | Validation error | ErrorEnvelope |
| 404 | Sprint not found | ErrorEnvelope |
| Param | In | Type | Required | Description |
id | path | string | yes | Sprint ID |
Request body: UpdateSprintStatus
| Status | Meaning | Schema |
| 200 | Status updated | — |
| 400 | Validation error | ErrorEnvelope |
| 404 | Sprint not found | ErrorEnvelope |
Roles / specialties and their assignment to items.
| Param | In | Type | Required | Description |
item_id | path | string | yes | Item ID |
role_id | path | string | yes | Role ID |
| Status | Meaning | Schema |
| 200 | Role removed from item | — |
| Param | In | Type | Required | Description |
item_id | path | string | yes | Item ID |
role_id | path | string | yes | Role ID |
| Status | Meaning | Schema |
| 200 | Role assigned to item | — |
| 404 | The item or the role does not exist, or they belong to different projects | ErrorEnvelope |
| Param | In | Type | Required | Description |
project_id | path | string | yes | Project ID |
| Status | Meaning | Schema |
| 200 | Roles for the project | Role[] |
| Param | In | Type | Required | Description |
project_id | path | string | yes | Project ID |
Request body: CreateRole
| Status | Meaning | Schema |
| 200 | Role created | Role |
| 400 | Validation error | ErrorEnvelope |
| Param | In | Type | Required | Description |
id | path | string | yes | Role ID |
| Status | Meaning | Schema |
| 200 | Deleted | — |
| 404 | Role not found | ErrorEnvelope |
| Param | In | Type | Required | Description |
id | path | string | yes | Role ID |
Request body: UpdateRole
| Status | Meaning | Schema |
| 200 | Role updated | Role |
| 400 | Validation error or unknown agent profile | ErrorEnvelope |
| 404 | Role not found | ErrorEnvelope |
Keys the operator hands to agents: each holds scopes (projects times what it may do), is stored hashed, expires after 90 days and is revoked here.
credentials
| Status | Meaning | Schema |
| 200 | Every credential, the newest first; never a secret | AgentCredential[] |
credentials
Request body: IssueCredential
| Status | Meaning | Schema |
| 200 | Issued; the secret is in this answer only | IssuedCredential |
| 400 | The name or a scope is refused | ErrorEnvelope |
| 409 | Another credential not revoked has that name | ErrorEnvelope |
credentials/{id}/revoke
| Param | In | Type | Required | Description |
id | path | string | yes | Credential ID |
| Status | Meaning | Schema |
| 200 | Revoked for good | AgentCredential |
| 404 | No such credential | ErrorEnvelope |
credentials/{id}/rotate
| Param | In | Type | Required | Description |
id | path | string | yes | Credential ID |
| Status | Meaning | Schema |
| 200 | A new secret, valid ninety days; the old one stops working | IssuedCredential |
| 404 | No such credential, or it was revoked | ErrorEnvelope |
What an agent proposes to change on a board: operations checked whole, applied in one transaction, and decided one by one by the project's rung.
sets/{id}
| Param | In | Type | Required | Description |
id | path | string | yes | Change set ID |
| Status | Meaning | Schema |
| 200 | The change set with each operation's state and result | ChangeSet |
| 404 | Not found | ErrorEnvelope |
sets/{id}/apply
| Param | In | Type | Required | Description |
id | path | string | yes | Change set ID |
Request body: ApplyChangeSet
| Status | Meaning | Schema |
| 200 | Applied in one transaction | ChangeSet |
| 400 | Refused whole, with every reason; the change set is as it was | ErrorEnvelope |
| 404 | Not found | ErrorEnvelope |
| 409 | An operation chosen is not waiting | ErrorEnvelope |
sets/{id}/operations/{index}
| Param | In | Type | Required | Description |
id | path | string | yes | Change set ID |
index | path | integer | yes | Position of the operation |
Request body: EditOperation
| Status | Meaning | Schema |
| 200 | The operation is replaced; it is checked when applied | ChangeSet |
| 404 | Not found | ErrorEnvelope |
| 409 | The operation is not waiting, or the edit changes its kind | ErrorEnvelope |
sets/{id}/reject
| Param | In | Type | Required | Description |
id | path | string | yes | Change set ID |
Request body: RejectChangeSet
| Status | Meaning | Schema |
| 200 | What waited is turned down | ChangeSet |
| 404 | Not found | ErrorEnvelope |
| 409 | Nothing waits in it | ErrorEnvelope |
sets
| Param | In | Type | Required | Description |
project_id | path | string | yes | Project ID |
status | path | ['string', 'null'] | yes | Comma-separated statuses: waiting, applied, rejected, partly. Absent lists all. |
limit | path | ['integer', 'null'] | yes | At most this many, the newest first (default 100, at most 500). |
| Status | Meaning | Schema |
| 200 | The project's change sets, the newest first | ChangeSet[] |
| 400 | A status that is not one | ErrorEnvelope |
sets
| Param | In | Type | Required | Description |
project_id | path | string | yes | Project ID |
Request body: ProposeChangeSet
| Status | Meaning | Schema |
| 200 | Kept; what the project's rung allows has applied, the rest waits | ProposedChangeSet |
| 400 | Refused whole, with every reason; nothing was kept | ErrorEnvelope |
| 403 | The credential lacks the scope propose | ErrorEnvelope |
| 404 | Project not found | ErrorEnvelope |
The teams the board's agents report, with the profiles that name them.
POST /api/projects/{id}/teams/apply
| Param | In | Type | Required | Description |
id | path | string | yes | Project ID |
Request body: ApplyTeamsRequest
| Status | Meaning | Schema |
| 200 | How each team went, in the order asked: applied, waiting for a person to read the commands docket listed, or refused with the reason | TeamApplyResult[] |
| 400 | No team named, a name or shape docket does not know, or the project's code is not a folder on a computer | ErrorEnvelope |
| 404 | No such project | ErrorEnvelope |
| 409 | No active runner reports a docket that lists podShape; the sentence says what to do | ErrorEnvelope |
GET /api/teams
| Status | Meaning | Schema |
| 200 | Every team any active runner reports, once per name and agent, with the profiles that name it; plus the names profiles use that no runner reports | TeamList |
POST /api/teams/{harness}/{name}/memory/{id}
| Param | In | Type | Required | Description |
harness | path | string | yes | The agent that runs the team, as GET /api/teams names it |
name | path | string | yes | The team's name |
id | path | string | yes | The memory entry's id, as the team's report lists it |
Request body: DecideMemoryRequest
| Status | Meaning | Schema |
| 200 | The agent approved or refused the entry; the team's report afterwards | TeamMemoryDecided |
| 404 | not_found (no active runner reports a team of that name for that agent) | — |
| 409 | conflict (the agent refused, with its reason: the entry is no longer waiting, or it cannot decide from the board; or the runner did not answer in time) | ErrorEnvelope |
| 422 | validation_error (a refusal without a reason) | ErrorEnvelope |
POST /api/teams/{harness}/{name}/resume
| Param | In | Type | Required | Description |
harness | path | string | yes | The agent that runs the team, as GET /api/teams names it |
name | path | string | yes | The team's name |
| Status | Meaning | Schema |
| 200 | The agent let the team claim tasks again; its report afterwards | TeamResumed |
| 404 | not_found (no active runner reports a team of that name for that agent) | — |
| 409 | conflict (the agent refused, with its reason, or the runner did not answer in time) | ErrorEnvelope |
GET /api/teams/{id}/activity
| Param | In | Type | Required | Description |
id | path | string | yes | The team's name |
harness | path | ['string', 'null'] | yes | |
| Status | Meaning | Schema |
| 200 | What the team is doing: every task it holds with the step each is in and the steps it finished, the work the board did not start included (on_board is null). An agent credential gets the tasks of the projects it may read, and the work the board did not start only if it may read every project. supported is false, with its reason, for an agent that cannot say | TeamActivityEntry |
| 403 | An agent credential with the scope read on no project | ErrorEnvelope |
| 404 | not_found (no active runner reports a team of that name) | — |
How far Tack may merge a project's changes on its own.
GET /api/projects/:id/autonomy
| Param | In | Type | Required | Description |
id | path | string | yes | Project ID |
| Status | Meaning | Schema |
| 200 | The project's autonomy settings | AutonomySettings |
| 404 | No such project | ErrorEnvelope |
PUT /api/projects/:id/autonomy
| Param | In | Type | Required | Description |
id | path | string | yes | Project ID |
Request body: AutonomySettings
| Status | Meaning | Schema |
| 200 | The settings now in force | AutonomySettings |
| 400 | An unknown level, a nameless or repeated domain, a domain naming a type the project lacks, a negative limit | ErrorEnvelope |
| 404 | No such project | ErrorEnvelope |
An attempt's Merge-Readiness Pack and the human verdict on it.
GET /api/executions/:request_id/attempts/:attempt_number/mrp
| Param | In | Type | Required | Description |
request_id | path | string | yes | Execution request ID |
attempt_number | path | integer | yes | 1-based attempt number |
| Status | Meaning | Schema |
| 200 | The parsed pack, when it was opened and the attempt's review | MrpResponse |
| 404 | No pack for this attempt | ErrorEnvelope |
POST /api/executions/:request_id/attempts/:attempt_number/mrp/viewed
| Param | In | Type | Required | Description |
request_id | path | string | yes | Execution request ID |
attempt_number | path | integer | yes | 1-based attempt number |
| Status | Meaning | Schema |
| 200 | When the pack was first opened, stamped once | MrpViewed |
| 404 | No pack for this attempt | ErrorEnvelope |
Factory metrics measured from a project's rows.
GET /api/projects/:id/metrics/factory
| Param | In | Type | Required | Description |
id | path | string | yes | Project ID |
since | query | string | no | Start of the window (RFC 3339); absent means all time. |
| Status | Meaning | Schema |
| 200 | Factory metrics measured from the project's rows | FactoryMetrics |
| 400 | since is not RFC 3339 | ErrorEnvelope |
| 404 | Project not found | ErrorEnvelope |
An item's brief: acceptance criteria, constraints, definition of done.
DELETE /api/items/:item_id/brief
| Param | In | Type | Required | Description |
item_id | path | string | yes | Item ID |
| Status | Meaning | Schema |
| 204 | Brief deleted | — |
| 404 | Item not found, or it has no brief | ErrorEnvelope |
GET /api/items/:item_id/brief
| Param | In | Type | Required | Description |
item_id | path | string | yes | Item ID |
| Status | Meaning | Schema |
| 200 | The item's brief | ItemBrief |
| 404 | Item not found, or it has no brief | ErrorEnvelope |
PUT /api/items/:item_id/brief
| Param | In | Type | Required | Description |
item_id | path | string | yes | Item ID |
Request body: UpsertItemBrief
| Status | Meaning | Schema |
| 200 | The brief as stored | ItemBrief |
| 400 | Validation error | ErrorEnvelope |
| 404 | Item not found | ErrorEnvelope |
GET /api/items/:item_id/brief/versions
| Param | In | Type | Required | Description |
item_id | path | string | yes | Item ID |
| Status | Meaning | Schema |
| 200 | Every saved version of the item's brief, oldest first | ItemBriefVersion[] |
| 404 | Item not found | ErrorEnvelope |
Comments on items.
| Param | In | Type | Required | Description |
item_id | path | string | yes | Item ID |
| Status | Meaning | Schema |
| 200 | Comments on the item | Comment[] |
| Param | In | Type | Required | Description |
item_id | path | string | yes | Item ID |
Request body: CreateComment
| Status | Meaning | Schema |
| 200 | Comment created | Comment |
| 400 | Validation error | ErrorEnvelope |
Directed dependency edges between items.
| Param | In | Type | Required | Description |
item_id | path | string | yes | Item ID |
| Status | Meaning | Schema |
| 200 | Dependency edges for the item | Dependency[] |
| Param | In | Type | Required | Description |
item_id | path | string | yes | Source item ID |
Request body: CreateDependency
| Status | Meaning | Schema |
| 200 | Dependency created | Dependency |
| 400 | Cycle detected or duplicate | ErrorEnvelope |
| Param | In | Type | Required | Description |
item_id | path | string | yes | Item ID |
dep_id | path | string | yes | Dependency ID |
| Status | Meaning | Schema |
| 200 | Deleted | — |
| 404 | Dependency not found | ErrorEnvelope |
File attachments on items.
DELETE /api/attachments/:id
| Param | In | Type | Required | Description |
id | path | string | yes | Attachment ID |
| Status | Meaning | Schema |
| 204 | Attachment deleted | — |
| 404 | Attachment not found | ErrorEnvelope |
GET /api/attachments/:id
| Param | In | Type | Required | Description |
id | path | string | yes | Attachment ID |
| Status | Meaning | Schema |
| 200 | Attachment file bytes | — |
| 404 | Attachment not found | ErrorEnvelope |
GET /api/items/:id/attachments
| Param | In | Type | Required | Description |
item_id | path | string | yes | Item ID |
| Status | Meaning | Schema |
| 200 | Attachments on the item | array |
| 404 | Item not found | ErrorEnvelope |
POST /api/items/:id/attachments
| Param | In | Type | Required | Description |
item_id | path | string | yes | Item ID |
Request body: string
| Status | Meaning | Schema |
| 200 | Attachment metadata | — |
| 400 | Missing/oversized file | ErrorEnvelope |
| 404 | Item not found | ErrorEnvelope |
Per-project custom field definitions and values.
Delete a custom field
| Param | In | Type | Required | Description |
id | path | string | yes | Custom field ID |
| Status | Meaning | Schema |
| 204 | Field deleted | — |
Get a specific custom field
| Param | In | Type | Required | Description |
id | path | string | yes | Custom field ID |
| Status | Meaning | Schema |
| 200 | The field definition | CustomFieldDefinition |
| 404 | Field not found | ErrorEnvelope |
Update a custom field
| Param | In | Type | Required | Description |
id | path | string | yes | Custom field ID |
Request body: UpdateCustomField
| Status | Meaning | Schema |
| 200 | Updated field | CustomFieldDefinition |
| 500 | Update failed | ErrorEnvelope |
Get all custom field values for an item
| Param | In | Type | Required | Description |
item_id | path | string | yes | Item ID |
| Status | Meaning | Schema |
| 200 | All custom field values for the item | CustomFieldValue[] |
Delete a custom field value
| Param | In | Type | Required | Description |
item_id | path | string | yes | Item ID |
field_id | path | string | yes | Custom field ID |
| Status | Meaning | Schema |
| 204 | Value deleted | — |
Get a specific custom field value
| Param | In | Type | Required | Description |
item_id | path | string | yes | Item ID |
field_id | path | string | yes | Custom field ID |
| Status | Meaning | Schema |
| 200 | The field value | CustomFieldValue |
| 404 | Value not found | ErrorEnvelope |
Set a custom field value for an item
| Param | In | Type | Required | Description |
item_id | path | string | yes | Item ID |
field_id | path | string | yes | Custom field ID |
| Status | Meaning | Schema |
| 200 | Value set | CustomFieldValue |
| 404 | Item or field not found | ErrorEnvelope |
| 422 | Value failed field validation | ErrorEnvelope |
List all custom fields for a project
| Param | In | Type | Required | Description |
project_id | path | string | yes | Project ID |
| Status | Meaning | Schema |
| 200 | Custom field definitions | CustomFieldDefinition[] |
Create a custom field for a project
| Param | In | Type | Required | Description |
project_id | path | string | yes | Project ID |
Request body: CreateCustomField
| Status | Meaning | Schema |
| 200 | Field created | CustomFieldDefinition |
| 404 | Project not found | ErrorEnvelope |
Reusable project templates.
Create a project from a template
| Param | In | Type | Required | Description |
id | path | string | yes | Template ID |
Request body: CreateProjectFromTemplate
| Status | Meaning | Schema |
| 200 | Project created from template | Project |
| 404 | Template not found | ErrorEnvelope |
| 422 | Validation error | ErrorEnvelope |
Snapshot a project's configuration as a reusable template
| Param | In | Type | Required | Description |
project_id | path | string | yes | Project ID |
Request body: SaveAsTemplateRequest
| Status | Meaning | Schema |
| 200 | Template snapshot created | ProjectTemplate |
| 404 | Project not found | ErrorEnvelope |
List all project templates
| Param | In | Type | Required | Description |
project_type | query | ProjectType | no | |
| Status | Meaning | Schema |
| 200 | Templates (optionally filtered by project type) | ProjectTemplate[] |
Create a new project template
Request body: CreateProjectTemplate
| Status | Meaning | Schema |
| 200 | Template created | ProjectTemplate |
| 422 | Validation error (workflow shape, custom field options) | ErrorEnvelope |
Delete a template (user-created only)
| Param | In | Type | Required | Description |
id | path | string | yes | Template ID |
| Status | Meaning | Schema |
| 204 | Template deleted | — |
Get a specific template
| Param | In | Type | Required | Description |
id | path | string | yes | Template ID |
| Status | Meaning | Schema |
| 200 | The template | ProjectTemplate |
| 404 | Template not found | ErrorEnvelope |
Import from JSON/YAML/CSV, GitHub Issues, and Linear.
POST /api/projects/import
| Status | Meaning | Schema |
| 200 | Import result with the new project and stats | — |
| 400 | Invalid import payload | ErrorEnvelope |
| Param | In | Type | Required | Description |
dry_run | query | boolean | no | Check the file and report what would be created, writing nothing. |
name | query | string | no | The new project's name. Overrides an outline's project.name; |
project_type | query | string | no | The new project's type (default custom). Overrides an outline's |
description | query | string | no | Overrides an outline's project.description. |
Request body: string
| Status | Meaning | Schema |
| 200 | The project and items created, or that would be on a dry run | OutlineResult |
| 400 | The CSV was refused; the message lists every problem | ErrorEnvelope |
| Param | In | Type | Required | Description |
dry_run | query | boolean | no | Check the file and report what would be created, writing nothing. |
name | query | string | no | The new project's name. Overrides an outline's project.name; |
project_type | query | string | no | The new project's type (default custom). Overrides an outline's |
description | query | string | no | Overrides an outline's project.description. |
Request body: Outline
| Status | Meaning | Schema |
| 200 | The project and items created, or that would be on a dry run | OutlineResult |
| 400 | The outline was refused; the message lists every problem | ErrorEnvelope |
ItemSource::CsvImport — a bare CSV carries no provenance of its own, so
| Param | In | Type | Required | Description |
id | path | string | yes | Project ID |
dry_run | query | boolean | no | Check the file and report what would be created, writing nothing. |
Request body: string
| Status | Meaning | Schema |
| 200 | The items created, or that would be on a dry run | OutlineResult |
| 400 | The CSV was refused; the message lists every problem | ErrorEnvelope |
| 404 | Project not found | ErrorEnvelope |
github
| Param | In | Type | Required | Description |
id | path | string | yes | Project ID |
Request body: GitHubImportRequest
| Status | Meaning | Schema |
| 200 | Counts of created/skipped issues and rate-limit remaining | — |
| 400 | Bad repo, token, or rate limit | ErrorEnvelope |
| 404 | Project or repo not found | ErrorEnvelope |
linear
| Param | In | Type | Required | Description |
id | path | string | yes | Project ID |
Request body: LinearImportRequest
| Status | Meaning | Schema |
| 200 | Counts of created and skipped issues | — |
| 400 | Bad API key, filter, or rate limit | ErrorEnvelope |
| 404 | Project not found | ErrorEnvelope |
| Param | In | Type | Required | Description |
id | path | string | yes | Project ID |
dry_run | query | boolean | no | Check the file and report what would be created, writing nothing. |
Request body: Outline
| Status | Meaning | Schema |
| 200 | The items created, or that would be on a dry run | OutlineResult |
| 400 | The outline was refused; the message lists every problem | ErrorEnvelope |
| 404 | Project not found | ErrorEnvelope |
Project export to JSON / YAML / CSV.
GET /api/projects/:id/export
| Param | In | Type | Required | Description |
id | path | string | yes | Project ID |
format | query | string | no | |
scope | query | string | no | snapshot (the default) is the database dump POST /api/projects/import |
| Status | Meaning | Schema |
| 200 | Export file (JSON, YAML, or CSV per the format query) | — |
| 400 | Unsupported format | ErrorEnvelope |
| 404 | Project not found | ErrorEnvelope |
Full-text search within a project or globally.
| Param | In | Type | Required | Description |
project_id | path | string | yes | Project ID |
q | query | string | yes | |
| Status | Meaning | Schema |
| 200 | Matching items | Item[] |
| Param | In | Type | Required | Description |
q | query | string | yes | |
| Status | Meaning | Schema |
| 200 | Matching items across all projects | Item[] |
Local and S3-compatible cloud backup / restore.
VACUUM INTO snapshot streamed as application/octet-stream.
| Status | Meaning | Schema |
| 200 | SQLite snapshot (secrets scrubbed) | — |
| 400 | Not a file-based database | ErrorEnvelope |
list remote backups newest-first.
| Status | Meaning | Schema |
| 200 | Remote backup manifests, newest first | — |
| 409 | Remote backup not configured | ErrorEnvelope |
create a bundle and upload it to the configured S3
| Status | Meaning | Schema |
| 200 | Backup manifest | — |
| 409 | Not configured, or another device has newer work | ErrorEnvelope |
download a bundle and stage it for next restart.
Request body: RestoreRemoteRequest
| Status | Meaning | Schema |
| 200 | Restore staged for next restart | — |
| 404 | No remote backups found | ErrorEnvelope |
| 409 | Not configured, or restore would lose newer work | ErrorEnvelope |
| 422 | The archive or its manifest cannot be read (unreadable_archive) | ErrorEnvelope |
download a bundle and validate it (sha256 +
Request body: RestoreRemoteRequest
| Status | Meaning | Schema |
| 200 | Verification verdict plus the manifest | — |
| 404 | No remote backups found | ErrorEnvelope |
| 409 | Remote backup not configured | ErrorEnvelope |
Validate a SQLite backup and stage it for the next restart.
| Status | Meaning | Schema |
| 200 | Restore staged for next restart | — |
| 400 | Not a valid SQLite file | ErrorEnvelope |
| 409 | Uploaded schema is newer than this binary | ErrorEnvelope |
Runtime-editable server settings (cloud backup).
current cloud-backup configuration (secret masked).
| Status | Meaning | Schema |
| 200 | Cloud-backup config (secret masked as secret_key_set) | — |
save cloud-backup configuration.
Request body: UpdateBackupSettings
| Status | Meaning | Schema |
| 200 | Updated config (secret masked) | — |
| 422 | Validation error | ErrorEnvelope |
Harness-agnostic runner fleet (Part III): PM-side execution-request/fleet/runner-enrollment/agent-profile management. Authenticated the same way as the rest of this API (operator session or API token); scopes idempotency and audit actor to the server-derived x-tack-principal, which a client cannot set (see crate::middleware::inject_operator_principal).
| Status | Meaning | Schema |
| 200 | Every agent profile, by name | AgentProfileListResponse |
Request body: CreateProfile
| Status | Meaning | Schema |
| 200 | Agent profile created | CreateProfileResponse |
| 409 | conflict (name already exists) | RunnerV1ErrorEnvelope |
| Param | In | Type | Required | Description |
id | path | string | yes | Agent profile id |
| Status | Meaning | Schema |
| 200 | Agent profile deleted | — |
| 404 | not_found | RunnerV1ErrorEnvelope |
| 409 | conflict (built-in profile, details.reason = builtin_profile) | RunnerV1ErrorEnvelope |
| Param | In | Type | Required | Description |
id | path | string | yes | Agent profile id |
Request body: UpdateProfile
| Status | Meaning | Schema |
| 200 | Agent profile updated | AgentProfileSummary |
| 404 | not_found | RunnerV1ErrorEnvelope |
| 409 | conflict (name already exists) | RunnerV1ErrorEnvelope |
| Param | In | Type | Required | Description |
id | path | string | yes | Agent profile id |
| Status | Meaning | Schema |
| 200 | The counted tokens of the profile's last successful runs | ProfileHistory |
| 404 | not_found | RunnerV1ErrorEnvelope |
Resolve a pending decision with an operator-supplied answer
| Param | In | Type | Required | Description |
attempt_id | path | string | yes | Attempt ID the decision belongs to (opaque) |
decision_id | path | string | yes | Decision ID, scoped to attempt_id: a decision_id that exists but belongs to a different attempt resolves as 404 not_found, indistinguishable from one that never existed at all — an attacker guessing another attempt's decision_id learns nothing. |
x-tack-decision-token | header | string | yes | TACK_EXECUTION_DECISION_TOKEN — a second, independent operator credential on top of the ordinary operator auth every other /api route uses (never a substitute for it). Fail-closed: every call is rejected with 403 whenever the server has not configured TACK_EXECUTION_DECISION_TOKEN at all — there is no "no secret configured, allow everything" fallback the way the plain Bearer gate has for an unset TACK_API_TOKEN. |
Request body: ResolveDecisionRequest
| Status | Meaning | Schema |
| 200 | Decision resolved — either a fresh write or a byte-identical idempotent replay of one (replayed distinguishes the two). | ResolveDecisionResponse |
| 400 | invalid_request (missing/malformed answer, or answer.option_id is not one of this decision's own recorded options) | RunnerV1ErrorEnvelope |
| 401 | unauthorized — no x-tack-principal; a runner bearer credential never satisfies this, by construction | RunnerV1ErrorEnvelope |
| 403 | forbidden — x-tack-decision-token missing, unconfigured server-side, or mismatched (details.required_scope = "operator:decisions") | RunnerV1ErrorEnvelope |
| 404 | not_found — no decision exists for this exact (attempt_id, decision_id) pair | RunnerV1ErrorEnvelope |
| 409 | decision_expired / idempotency_conflict | RunnerV1ErrorEnvelope |
| 413 | payload_too_large (answer exceeds decision_answer_bytes_max, 32768 bytes) | RunnerV1ErrorEnvelope |
the Merge button. Merges the
| Param | In | Type | Required | Description |
attempt_id | path | string | yes | Execution attempt ID (opaque) |
Request body: MergeAttemptRequest
| Status | Meaning | Schema |
| 200 | Merged; carries the merge commit's sha | — |
| 400 | invalid_request (the pack recommends reject, or the checks changed, and no reason was written) | RunnerV1ErrorEnvelope |
| 404 | not_found | RunnerV1ErrorEnvelope |
| 409 | conflict: the merge was held, the message says why | RunnerV1ErrorEnvelope |
| Param | In | Type | Required | Description |
item_id | query | string | no | |
project_id | query | string | no | Every open run of the project (queued, running, waiting on a person) and those that ended |
item_ids | query | string | no | Comma-separated item ids — returns exactly one row per id, its own |
limit | query | integer | no | |
| Status | Meaning | Schema |
| 200 | Execution requests, newest first. item_ids present: exactly one row per id that has at least one execution, the batch's own most recent one. Else project_id present: every run of the project that is not over, and those that ended in the last 24 hours. Else scoped to one item when item_id is given, otherwise every request the install has recorded up to limit | ExecutionListResponse |
| 400 | invalid_request (a malformed item_ids entry, or more ids than the route's cap) | RunnerV1ErrorEnvelope |
| 404 | not_found (project_id names no project) | RunnerV1ErrorEnvelope |
Request body: CreateExecution
| Status | Meaning | Schema |
| 200 | Execution request created or idempotently replayed | CreateExecutionResponse |
| 400 | invalid_request | RunnerV1ErrorEnvelope |
| 404 | not_found (item does not exist) | RunnerV1ErrorEnvelope |
| 409 | conflict / idempotency_conflict / runner_revoked / group_not_runnable (an item that holds work is run only with a profile that plans or researches) | RunnerV1ErrorEnvelope |
| Param | In | Type | Required | Description |
request_id | path | string | yes | Execution request ID (opaque) |
| Status | Meaning | Schema |
| 200 | Execution request detail | ExecutionDetailResponse |
| 404 | not_found | RunnerV1ErrorEnvelope |
the operator read path
| Param | In | Type | Required | Description |
request_id | path | string | yes | Execution request ID (opaque) |
| Status | Meaning | Schema |
| 200 | Every attempt made against this request, oldest first (may be empty) | AttemptListResponse |
| 404 | not_found | RunnerV1ErrorEnvelope |
| Param | In | Type | Required | Description |
request_id | path | string | yes | Execution request ID (opaque) |
attempt_number | path | integer | yes | 1-based attempt number |
| Status | Meaning | Schema |
| 200 | Every artifact manifested for this attempt, oldest first (may be empty) | ArtifactListResponse |
| 404 | not_found (execution_request or execution_attempt) | RunnerV1ErrorEnvelope |
Download a verified artifact's raw content
| Param | In | Type | Required | Description |
request_id | path | string | yes | Execution request ID (opaque) |
attempt_number | path | integer | yes | 1-based attempt number within the execution request |
artifact_id | path | string | yes | Artifact ID, scoped to the attempt that reported it (opaque) |
| Status | Meaning | Schema |
| 200 | The artifact's raw bytes. Content-Type is the artifact's declared media_type, or application/octet-stream when none was declared. | string |
| 401 | unauthorized — no authenticated operator principal | RunnerV1ErrorEnvelope |
| 404 | not_found (details.artifact_id) — no artifact manifest matches this (request_id, attempt_number, artifact_id) triple | RunnerV1ErrorEnvelope |
| 409 | conflict (details.artifact_id) — the artifact manifest exists but its content has not been verified yet; distinct from not_found, never silently treated as "gone" or zero bytes | RunnerV1ErrorEnvelope |
| Param | In | Type | Required | Description |
request_id | path | string | yes | Execution request ID (opaque) |
attempt_number | path | integer | yes | 1-based attempt number |
| Status | Meaning | Schema |
| 200 | Every decision raised against this attempt, oldest first (may be empty) | DecisionListResponse |
| 404 | not_found (execution_request or execution_attempt) | RunnerV1ErrorEnvelope |
| Param | In | Type | Required | Description |
request_id | path | string | yes | Execution request ID (opaque) |
attempt_number | path | integer | yes | 1-based attempt number |
| Status | Meaning | Schema |
| 200 | Every event this attempt has reported, oldest first (may be empty) | EventListResponse |
| 404 | not_found (execution_request or execution_attempt) | RunnerV1ErrorEnvelope |
| Param | In | Type | Required | Description |
request_id | path | string | yes | Execution request ID (opaque) |
attempt_number | path | integer | yes | 1-based attempt number |
Request body: ReviewAttemptRequest
| Status | Meaning | Schema |
| 200 | The recorded verdict | AttemptReview |
| 400 | invalid_request (verdict is not accepted or rejected, or a rejection has no reason) | RunnerV1ErrorEnvelope |
| 404 | not_found (execution_request or execution_attempt) | RunnerV1ErrorEnvelope |
| 409 | conflict (details.reason = already_reviewed) | RunnerV1ErrorEnvelope |
| Param | In | Type | Required | Description |
request_id | path | string | yes | Execution request ID (opaque) |
| Status | Meaning | Schema |
| 200 | Cancelled at once when nobody holds the run; otherwise cancellation requested and not yet terminal | CancellationRequestedResponse |
| 404 | not_found | RunnerV1ErrorEnvelope |
| 409 | conflict (already terminal) | RunnerV1ErrorEnvelope |
POST /api/executions/{id}/continue: a new request that follows the same docket task id's
| Param | In | Type | Required | Description |
request_id | path | string | yes | The id of the run to continue |
| Status | Meaning | Schema |
| 200 | Continuation created or idempotently replayed | ContinueResponse |
| 404 | not_found (the named run does not exist) | RunnerV1ErrorEnvelope |
| 409 | idempotency_conflict | RunnerV1ErrorEnvelope |
| 422 | unprocessable (never offered, or no tokens left) | RunnerV1ErrorEnvelope |
| Param | In | Type | Required | Description |
request_id | path | string | yes | Execution request ID (opaque) |
Request body: RecoveryConfirmation
| Status | Meaning | Schema |
| 200 | Requeued (or replayed) after an audited recovery decision | RequeueResponse |
| 409 | conflict / idempotency_conflict / invalid_transition | RunnerV1ErrorEnvelope |
| Status | Meaning | Schema |
| 200 | Every runner fleet, by name | FleetListResponse |
Request body: CreateFleet
| Status | Meaning | Schema |
| 200 | Fleet created | CreateFleetResponse |
| 409 | conflict (name already exists) | RunnerV1ErrorEnvelope |
| Param | In | Type | Required | Description |
fleet_id | path | string | yes | Fleet ID (opaque) |
Request body: AddFleetMember
| Status | Meaning | Schema |
| 200 | Runner is now (or already was) a member of the fleet | FleetMemberResponse |
| 404 | not_found (fleet or runner does not exist) | RunnerV1ErrorEnvelope |
| Param | In | Type | Required | Description |
fleet_id | path | string | yes | Fleet ID (opaque) |
runner_id | path | string | yes | Runner ID (opaque) |
| Status | Meaning | Schema |
| 200 | Runner removed from the fleet | FleetMemberResponse |
| 404 | not_found (runner was not a member of this fleet) | RunnerV1ErrorEnvelope |
the read path for agent_runners
| Param | In | Type | Required | Description |
fleet_id | path | ['string', 'null'] | yes | Optional roster filter — a runner is included only if it is a |
| Status | Meaning | Schema |
| 200 | Every enrolled runner (optionally filtered to one fleet's roster) | RunnerListResponse |
Creates a pending runner and stores only a SHA-256 enrollment-token hash.
Request body: CreatePendingRunner
| Status | Meaning | Schema |
| 200 | Pending runner created; the raw enrollment token is returned exactly once | CreatePendingRunnerResponse |
| 400 | invalid_request | RunnerV1ErrorEnvelope |
| 409 | conflict (name already exists) | RunnerV1ErrorEnvelope |
| Param | In | Type | Required | Description |
runner_id | path | string | yes | Runner ID (opaque) |
token_id | path | string | yes | Enrollment token ID (opaque) |
| Status | Meaning | Schema |
| 200 | Token revoked | RevokeEnrollmentTokenResponse |
| 404 | not_found | RunnerV1ErrorEnvelope |
| 409 | conflict (already consumed) | RunnerV1ErrorEnvelope |
| Param | In | Type | Required | Description |
runner_id | path | string | yes | Runner ID (opaque) |
| Status | Meaning | Schema |
| 200 | Runner revoked | RevokeRunnerResponse |
| 404 | not_found | RunnerV1ErrorEnvelope |
Harness-agnostic runner fleet (Part III): the pull protocol a tack-runner process speaks at /api/runner/v1 (enroll, claim, heartbeat, report). Authenticated by a distinct, per-runner hashed bearer credential — never the operator token, and never substitutable for it (docs/contracts/runner-v1/protocol.json: credentials_are_not_substitutable). Every wire shape is frozen by docs/contracts/runner-v1/, not independently re-specified here.
Report what a harness's teams are doing: the tasks that changed, each replacing what the board holds for it (additive v1 operation; exact path fixed by protocol.json)
| Status | Meaning | Schema |
| 200 | Activity recorded; a repeated report changes nothing | — |
| 400 | invalid_request | RunnerV1ErrorEnvelope |
| 401 | unauthorized | RunnerV1ErrorEnvelope |
| 403 | forbidden / runner_revoked | RunnerV1ErrorEnvelope |
| 404 | not_found | RunnerV1ErrorEnvelope |
| 409 | conflict / idempotency_conflict / invalid_transition / stale_lease | RunnerV1ErrorEnvelope |
Report the attempt entering preparing
| Param | In | Type | Required | Description |
attempt_id | path | string | yes | Attempt ID, issued at claim time (opaque) |
| Status | Meaning | Schema |
| 200 | Transition accepted or replayed | — |
| 400 | invalid_request | RunnerV1ErrorEnvelope |
| 401 | unauthorized | RunnerV1ErrorEnvelope |
| 403 | forbidden / runner_revoked | RunnerV1ErrorEnvelope |
| 404 | not_found | RunnerV1ErrorEnvelope |
| 409 | conflict / idempotency_conflict / invalid_transition / stale_lease | RunnerV1ErrorEnvelope |
Submit an artifact manifest (content upload is the separate PUT .../artifacts/{artifact_id}/content operation below; content download is a distinct, operator-facing route — see execution-operator's "Download a verified artifact's raw content")
| Param | In | Type | Required | Description |
attempt_id | path | string | yes | Attempt ID, issued at claim time (opaque) |
| Status | Meaning | Schema |
| 200 | Manifest accepted; per-artifact upload URLs issued | — |
| 400 | invalid_request | RunnerV1ErrorEnvelope |
| 401 | unauthorized | RunnerV1ErrorEnvelope |
| 403 | forbidden / runner_revoked | RunnerV1ErrorEnvelope |
| 404 | not_found | RunnerV1ErrorEnvelope |
| 409 | conflict / idempotency_conflict / invalid_transition / stale_lease | RunnerV1ErrorEnvelope |
Upload one manifested artifact's verified raw content
| Param | In | Type | Required | Description |
attempt_id | path | string | yes | Attempt ID, issued at claim time (opaque) |
artifact_id | path | string | yes | Artifact ID from this attempt's prior manifest submission (POST .../artifacts, opaque) |
x-tack-fencing-token | header | string | yes | The attempt's current fencing token. The request body is raw bytes, so — unlike every other runner-protocol write — the fencing token cannot travel inside a JSON body, so it travels as a header instead. docs/contracts/runner-v1/ fixes the manifest exchange's payload shape, not this upload URL (see this fragment's own doc comment). |
| Status | Meaning | Schema |
| 200 | Content verified and committed: {protocol_version, attempt_id, artifact_id, state: "content_verified", size_bytes, sha256} | — |
| 400 | invalid_request (Content-Type mismatch, or the upload stream ended early) | RunnerV1ErrorEnvelope |
| 401 | unauthorized | RunnerV1ErrorEnvelope |
| 403 | forbidden / runner_revoked | RunnerV1ErrorEnvelope |
| 409 | conflict (content already recorded and is immutable; or the attempt is not currently running/waiting_decision) / artifact_checksum_mismatch / stale_lease | RunnerV1ErrorEnvelope |
| 413 | payload_too_large (artifact_content_bytes_max) | RunnerV1ErrorEnvelope |
Report the observed effect of a requested cancellation
| Param | In | Type | Required | Description |
attempt_id | path | string | yes | Attempt ID, issued at claim time (opaque) |
| Status | Meaning | Schema |
| 200 | Cancellation observation committed or replayed | — |
| 400 | invalid_request | RunnerV1ErrorEnvelope |
| 401 | unauthorized | RunnerV1ErrorEnvelope |
| 403 | forbidden / runner_revoked | RunnerV1ErrorEnvelope |
| 404 | not_found | RunnerV1ErrorEnvelope |
| 409 | conflict / idempotency_conflict / invalid_transition / stale_lease | RunnerV1ErrorEnvelope |
Report the attempt's terminal outcome
| Param | In | Type | Required | Description |
attempt_id | path | string | yes | Attempt ID, issued at claim time (opaque) |
| Status | Meaning | Schema |
| 200 | Completion committed or replayed | — |
| 400 | invalid_request | RunnerV1ErrorEnvelope |
| 401 | unauthorized | RunnerV1ErrorEnvelope |
| 403 | forbidden / runner_revoked | RunnerV1ErrorEnvelope |
| 404 | not_found | RunnerV1ErrorEnvelope |
| 409 | conflict / idempotency_conflict / invalid_transition / stale_lease | RunnerV1ErrorEnvelope |
Create a decision for later out-of-band operator resolution
| Param | In | Type | Required | Description |
attempt_id | path | string | yes | Attempt ID, issued at claim time (opaque) |
| Status | Meaning | Schema |
| 200 | Decision recorded | — |
| 400 | invalid_request | RunnerV1ErrorEnvelope |
| 401 | unauthorized | RunnerV1ErrorEnvelope |
| 403 | forbidden / runner_revoked | RunnerV1ErrorEnvelope |
| 404 | not_found | RunnerV1ErrorEnvelope |
| 409 | conflict / idempotency_conflict / invalid_transition / stale_lease | RunnerV1ErrorEnvelope |
Tell the board the agent's own tool took the answer to a decision it still holds open; the decision is closed and the attempt can ask its next question (additive v1 operation; exact path fixed by protocol.json)
| Param | In | Type | Required | Description |
attempt_id | path | string | yes | Attempt ID, issued at claim time (opaque) |
| Status | Meaning | Schema |
| 200 | Decision closed as answered_elsewhere, or reported as another road had already settled it | — |
| 400 | invalid_request | RunnerV1ErrorEnvelope |
| 401 | unauthorized | RunnerV1ErrorEnvelope |
| 403 | forbidden / runner_revoked | RunnerV1ErrorEnvelope |
| 404 | not_found | RunnerV1ErrorEnvelope |
| 409 | conflict / idempotency_conflict / invalid_transition / stale_lease | RunnerV1ErrorEnvelope |
Poll for decision resolutions since a given timestamp
| Param | In | Type | Required | Description |
attempt_id | path | string | yes | Attempt ID, issued at claim time (opaque) |
| Status | Meaning | Schema |
| 200 | Resolved decisions since after, plus the new next_after cursor | — |
| 400 | invalid_request | RunnerV1ErrorEnvelope |
| 401 | unauthorized | RunnerV1ErrorEnvelope |
| 403 | forbidden / runner_revoked | RunnerV1ErrorEnvelope |
| 404 | not_found | RunnerV1ErrorEnvelope |
| 409 | conflict / idempotency_conflict / invalid_transition / stale_lease | RunnerV1ErrorEnvelope |
Append a fenced, checkpointed batch of execution events
| Param | In | Type | Required | Description |
attempt_id | path | string | yes | Attempt ID, issued at claim time (opaque) |
| Status | Meaning | Schema |
| 200 | Batch committed (accepted/duplicate event ids, committed checkpoint) | — |
| 400 | invalid_request | RunnerV1ErrorEnvelope |
| 401 | unauthorized | RunnerV1ErrorEnvelope |
| 403 | forbidden / runner_revoked | RunnerV1ErrorEnvelope |
| 404 | not_found | RunnerV1ErrorEnvelope |
| 409 | conflict / idempotency_conflict / invalid_transition / stale_lease | RunnerV1ErrorEnvelope |
Report a post-restart recovery observation for an attempt (additive v1 operation; exact path fixed by protocol.json)
| Param | In | Type | Required | Description |
attempt_id | path | string | yes | Attempt ID, issued at claim time (opaque) |
| Status | Meaning | Schema |
| 200 | Recovery observation committed or replayed; server-authoritative disposition returned | — |
| 400 | invalid_request | RunnerV1ErrorEnvelope |
| 401 | unauthorized | RunnerV1ErrorEnvelope |
| 403 | forbidden / runner_revoked | RunnerV1ErrorEnvelope |
| 404 | not_found | RunnerV1ErrorEnvelope |
| 409 | conflict / idempotency_conflict / invalid_transition / stale_lease | RunnerV1ErrorEnvelope |
Report the attempt entering running
| Param | In | Type | Required | Description |
attempt_id | path | string | yes | Attempt ID, issued at claim time (opaque) |
| Status | Meaning | Schema |
| 200 | Transition accepted or replayed | — |
| 400 | invalid_request | RunnerV1ErrorEnvelope |
| 401 | unauthorized | RunnerV1ErrorEnvelope |
| 403 | forbidden / runner_revoked | RunnerV1ErrorEnvelope |
| 404 | not_found | RunnerV1ErrorEnvelope |
| 409 | conflict / idempotency_conflict / invalid_transition / stale_lease | RunnerV1ErrorEnvelope |
Claim the next eligible execution request for this runner or its fleet
| Status | Meaning | Schema |
| 200 | A fenced lease and the immutable request snapshot, or no_eligible_work | — |
| 400 | invalid_request | RunnerV1ErrorEnvelope |
| 401 | unauthorized | RunnerV1ErrorEnvelope |
| 403 | forbidden / runner_revoked | RunnerV1ErrorEnvelope |
| 404 | not_found | RunnerV1ErrorEnvelope |
| 409 | conflict / idempotency_conflict / invalid_transition / stale_lease | RunnerV1ErrorEnvelope |
Exchange a single-use enrollment token for a runner identity and bearer credential
| Status | Meaning | Schema |
| 200 | Runner enrolled; the raw bearer credential is returned exactly once | — |
| 400 | invalid_request | RunnerV1ErrorEnvelope |
| 401 | unauthorized | RunnerV1ErrorEnvelope |
| 403 | forbidden / runner_revoked | RunnerV1ErrorEnvelope |
| 404 | not_found | RunnerV1ErrorEnvelope |
| 409 | conflict / idempotency_conflict / invalid_transition / stale_lease | RunnerV1ErrorEnvelope |
Report liveness, capacity, and active-attempt state in one fenced batch
| Status | Meaning | Schema |
| 200 | Renewed lease facts per reported attempt | — |
| 400 | invalid_request | RunnerV1ErrorEnvelope |
| 401 | unauthorized | RunnerV1ErrorEnvelope |
| 403 | forbidden / runner_revoked | RunnerV1ErrorEnvelope |
| 404 | not_found | RunnerV1ErrorEnvelope |
| 409 | conflict / idempotency_conflict / invalid_transition / stale_lease | RunnerV1ErrorEnvelope |
Ask for what a person asked of this runner's harnesses from the board, each handed out once (additive v1 operation; exact path fixed by protocol.json)
| Status | Meaning | Schema |
| 200 | The operations waiting for the runner; empty when none | — |
| 400 | invalid_request | RunnerV1ErrorEnvelope |
| 401 | unauthorized | RunnerV1ErrorEnvelope |
| 403 | forbidden / runner_revoked | RunnerV1ErrorEnvelope |
| 404 | not_found | RunnerV1ErrorEnvelope |
| 409 | conflict / idempotency_conflict / invalid_transition / stale_lease | RunnerV1ErrorEnvelope |
Tell the board how an operation ended, to the request that waits for it (additive v1 operation; exact path fixed by protocol.json)
| Param | In | Type | Required | Description |
operation_id | path | string | yes | Operation ID, issued when the board hands the operation out (opaque) |
| Status | Meaning | Schema |
| 200 | Result handed to the waiting request; 404 when nothing waits | — |
| 400 | invalid_request | RunnerV1ErrorEnvelope |
| 401 | unauthorized | RunnerV1ErrorEnvelope |
| 403 | forbidden / runner_revoked | RunnerV1ErrorEnvelope |
| 404 | not_found | RunnerV1ErrorEnvelope |
| 409 | conflict / idempotency_conflict / invalid_transition / stale_lease | RunnerV1ErrorEnvelope |
Refresh reported capabilities and optionally rotate the runner's bearer credential
| Status | Meaning | Schema |
| 200 | Capabilities accepted; a rotated credential, if requested, is returned exactly once | — |
| 400 | invalid_request | RunnerV1ErrorEnvelope |
| 401 | unauthorized | RunnerV1ErrorEnvelope |
| 403 | forbidden / runner_revoked | RunnerV1ErrorEnvelope |
| 404 | not_found | RunnerV1ErrorEnvelope |
| 409 | conflict / idempotency_conflict / invalid_transition / stale_lease | RunnerV1ErrorEnvelope |
| Param | In | Type | Required | Description |
id | path | string | yes | Project ID |
| Status | Meaning | Schema |
| 200 | The project's types in display order, each with how many items use it | ItemTypeUse[] |
| 404 | Project not found | ErrorEnvelope |
| Param | In | Type | Required | Description |
id | path | string | yes | Project ID |
Request body: CreateItemType
| Status | Meaning | Schema |
| 200 | The type, last in order and never the default | ItemTypeDef |
| 400 | The key or name is not valid, or the key is used | ErrorEnvelope |
| 404 | Project not found | ErrorEnvelope |
| Param | In | Type | Required | Description |
id | path | string | yes | Project ID |
key | path | string | yes | The type's key |
merge_into | query | string | no | The type the items of the deleted one move to; required while items use it. |
| Status | Meaning | Schema |
| 204 | The type is deleted and its items moved to merge_into | — |
| 400 | The default work type, or a merge into another level, cannot be done | ErrorEnvelope |
| 404 | Project or type not found | ErrorEnvelope |
| 409 | Items use the type and merge_into is not given (type_in_use) | ErrorEnvelope |
| Param | In | Type | Required | Description |
id | path | string | yes | Project ID |
key | path | string | yes | The type's key |
Request body: UpdateItemType
| Status | Meaning | Schema |
| 200 | The type after the change | ItemTypeDef |
| 400 | The change breaks a rule of the catalog | ErrorEnvelope |
| 404 | Project or type not found | ErrorEnvelope |
| 409 | The level cannot change while items use the type (type_in_use) | ErrorEnvelope |
the persisted preference, the live runtime state. Only mounted on a
| Status | Meaning | Schema |
| 200 | Embedded-runner preference and runtime state | — |
save the preference and start/stop the embedded runner to match,
Request body: UpdateLocalRunner
| Status | Meaning | Schema |
| 204 | Preference saved and the runtime reconciled to match | — |
what is at path; writes nothing.
Request body: FolderPath
| Status | Meaning | Schema |
| 200 | Whether the path exists, is a directory, and its git facts | FolderCheck |
| 400 | The path is not absolute | — |
| 409 | The embedded runner is not configured | — |
creates path and runs git init. An existing
Request body: FolderPath
| Status | Meaning | Schema |
| 200 | Directory created and initialised as a git repository | — |
| 400 | The path is not absolute | — |
| 409 | The path exists and is not an empty directory, or the embedded runner is not configured | — |
runs the harness once on this machine from an empty
Request body: TestRun
| Status | Meaning | Schema |
| 200 | The execution request that was queued | — |
| 409 | The embedded runner is not configured, not running or not enrolled | — |