API Reference

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.


System

Health and debug probes.

GET /api/debug/db-stats

Database statistics

StatusMeaningSchema
200Per-table row counts—

GET /api/debug/info

System info (only in debug builds)

StatusMeaningSchema
200Build, version, database size, and non-sensitive config—

GET /api/health

Liveness + readiness check

StatusMeaningSchema
200Service is live; reports version and applied migration count—

Projects

Projects: the top-level container for work.

GET /api/projects

StatusMeaningSchema
200All projects in the workspaceProject[]

POST /api/projects

Request body: CreateProject

StatusMeaningSchema
200Project createdProject
400Validation errorErrorEnvelope

DELETE /api/projects/{id}

ParamInTypeRequiredDescription
idpathstringyesProject ID
StatusMeaningSchema
200Deleted—
404Project not foundErrorEnvelope

GET /api/projects/{id}

ParamInTypeRequiredDescription
idpathstringyesProject ID
StatusMeaningSchema
200The projectProject
404Project not foundErrorEnvelope

PATCH /api/projects/{id}

ParamInTypeRequiredDescription
idpathstringyesProject ID

Request body: UpdateProject

StatusMeaningSchema
200Updated projectProject
400Validation errorErrorEnvelope
404Project not foundErrorEnvelope

GET /api/projects/{id}/auto-start

start

ParamInTypeRequiredDescription
idpathstringyesProject ID
StatusMeaningSchema
200Whether the project starts tasks by itself and why each waiting task is not started yetAutoStartState
404No such projectErrorEnvelope

GET /api/projects/{id}/routing

GET /api/projects/{id}/routing

ParamInTypeRequiredDescription
idpathstringyesProject ID
StatusMeaningSchema
200For 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 takesRouted[]
404No such projectErrorEnvelope

Notifications

What needs a person: an inbox of open and settled notifications, and a live socket that tells when it changes.

GET /api/notifications

GET /api/notifications

ParamInTypeRequiredDescription
statepathNotificationStateyesopen (the default): what still asks something of the person. all: everything kept,
limitpath['integer', 'null']yesHow many to return, 50 by default and 500 at most. 0 returns none, for a caller that
StatusMeaningSchema
200The notifications, newest first, and how many are openNotificationList
400state or limit is not what it should beErrorEnvelope

GET /api/notifications/channels

GET /api/notifications/channels

StatusMeaningSchema
200Every channel notifications leave through, with how many deliveries wait, how many were given up on, and the last errorNotificationChannel[]

POST /api/notifications/read-all

all

StatusMeaningSchema
200Every unread notification is read nowReadAll

POST /api/notifications/{id}/read

POST /api/notifications/{id}/read

ParamInTypeRequiredDescription
idpathstringyesThe notification
StatusMeaningSchema
204Marked read; one that is read already, or not there, changes nothing—
400id is not an idErrorEnvelope

Digest

A computed, bounded summary of the projects a caller may read.

GET /api/digest

GET /api/digest

ParamInTypeRequiredDescription
projectspath['string', 'null']yesThe projects to describe, as ids separated by commas. Absent: every project the caller
sincepath['string', 'null']yesRuns that failed before this instant (RFC 3339) are left out. Absent: the last 24 hours.
StatusMeaningSchema
200A 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 areDigest
400projects or since is not what it should beErrorEnvelope
403The credential lacks the scope read on a project it asked forErrorEnvelope
404A project it asked for does not existErrorEnvelope

Notifications

What needs a person: an inbox of open and settled notifications, and a live socket that tells when it changes.

GET /api/notifications

GET /api/notifications

ParamInTypeRequiredDescription
statepathNotificationStateyesopen (the default): what still asks something of the person. all: everything kept,
limitpath['integer', 'null']yesHow many to return, 50 by default and 500 at most. 0 returns none, for a caller that
StatusMeaningSchema
200The notifications, newest first, and how many are openNotificationList
400state or limit is not what it should beErrorEnvelope

GET /api/notifications/channels

GET /api/notifications/channels

StatusMeaningSchema
200Every channel notifications leave through, with how many deliveries wait, how many were given up on, and the last errorNotificationChannel[]

POST /api/notifications/read-all

all

StatusMeaningSchema
200Every unread notification is read nowReadAll

POST /api/notifications/{id}/read

POST /api/notifications/{id}/read

ParamInTypeRequiredDescription
idpathstringyesThe notification
StatusMeaningSchema
204Marked read; one that is read already, or not there, changes nothing—
400id is not an idErrorEnvelope

Threads

Conversations between a person and a profile; each message starts a turn.

GET /api/threads

GET /api/threads

ParamInTypeRequiredDescription
project_idpath['string', 'null']yesOnly the threads whose home is this project.
openpathbooleanyesOnly the open threads.
StatusMeaningSchema
200Threads, the most recently written firstThread[]

POST /api/threads

POST /api/threads

Request body: CreateThread

StatusMeaningSchema
200The thread, open, with no messageThread
400The title, the profile or the credential is not acceptableErrorEnvelope
404Project not foundErrorEnvelope

GET /api/threads/{id}

GET /api/threads/{id}

ParamInTypeRequiredDescription
idpathstringyesThread ID
StatusMeaningSchema
200The thread, its messages and its turnsThreadDetail
403The credential lacks the scope converse on the thread's projectErrorEnvelope
404Not foundErrorEnvelope

POST /api/threads/{id}/close

POST /api/threads/{id}/close

ParamInTypeRequiredDescription
idpathstringyesThread ID
StatusMeaningSchema
200The thread, closedThread
404Not foundErrorEnvelope

POST /api/threads/{id}/messages

POST /api/threads/{id}/messages

ParamInTypeRequiredDescription
idpathstringyesThread ID

Request body: PostMessage

StatusMeaningSchema
200The message is in the thread; when a person wrote it, its turn has started (an agent's message starts none)PostedMessage
400The message or its references are not acceptableErrorEnvelope
403The credential lacks the scope converse on the thread's projectErrorEnvelope
404Not foundErrorEnvelope
409The thread is closed or idle, or a person's message is past the turn cap or comes before the last turn has answeredErrorEnvelope

Triggers

Rules that wake a profile on an event or a schedule; one run takes every event since the last.

GET /api/triggers

GET /api/triggers

ParamInTypeRequiredDescription
project_idpath['string', 'null']yesOnly the triggers whose home is this project.
StatusMeaningSchema
200Triggers, oldest firstTrigger[]

POST /api/triggers

POST /api/triggers

Request body: CreateTrigger

StatusMeaningSchema
200The triggerTrigger
400The trigger, its profile or its credential is not acceptableErrorEnvelope
404Project not foundErrorEnvelope

DELETE /api/triggers/{id}

DELETE /api/triggers/{id}

ParamInTypeRequiredDescription
idpathstringyesTrigger ID
StatusMeaningSchema
204Deleted, with the events it kept—
404Not foundErrorEnvelope

GET /api/triggers/{id}

GET /api/triggers/{id}

ParamInTypeRequiredDescription
idpathstringyesTrigger ID
StatusMeaningSchema
200The triggerTrigger
404Not foundErrorEnvelope

PATCH /api/triggers/{id}

PATCH /api/triggers/{id}

ParamInTypeRequiredDescription
idpathstringyesTrigger ID

Request body: UpdateTrigger

StatusMeaningSchema
200The trigger, changedTrigger
400The change is not acceptableErrorEnvelope
404Not foundErrorEnvelope

Items

Items: the universal work unit (epics, tasks, bugs, …).

DELETE /api/items/{id}

ParamInTypeRequiredDescription
idpathstringyesItem ID
StatusMeaningSchema
200Deleted—
404Item not foundErrorEnvelope

GET /api/items/{id}

ParamInTypeRequiredDescription
idpathstringyesItem ID
StatusMeaningSchema
200Item with roles and dependencies; carries an ETag header for a later conditional PATCHItemDetail
404Item not foundErrorEnvelope

PATCH /api/items/{id}

ParamInTypeRequiredDescription
idpathstringyesItem ID
If-Matchheader['string', 'null']noOptional ETag from GET /api/items/{id}; a stale or malformed value returns 412 and writes nothing

Request body: UpdateItem

StatusMeaningSchema
200Updated item; carries the ETag for the exact returned snapshotItemCard
400Invalid transition / validation errorErrorEnvelope
404Item not foundErrorEnvelope
412If-Match did not match the current item version — nothing was writtenErrorEnvelope
422The tree rule refuses the parent or the sprint: group_under_work, parent_loop, tree_too_deep, parent_in_other_project, group_in_sprintErrorEnvelope

GET /api/items/{id}/agent-context

what the agent will read for a given item:

ParamInTypeRequiredDescription
idpathstringyesItem ID
profile_idquerystringnoThe agent profile to compose with; the project's default when absent.
harnessquerystringnoThe agent the run dialog has chosen (claude-code, codex, docket, opencode); it
tokensqueryintegernoThe token limit typed in the run dialog, a positive whole number. Equal to the profile's it
no_limitquerybooleannotrue when the person cleared the dialog's token limit to run without one; wins over
StatusMeaningSchema
200The composed instructions for the agentAgentContextResponse
404Item or project not foundErrorEnvelope

Removes an item's manual (or imported) GitHub link. 204 even when the

ParamInTypeRequiredDescription
idpathstringyesItem ID
StatusMeaningSchema
204Unlinked (or was already unlinked)—
404Item not foundErrorEnvelope
ParamInTypeRequiredDescription
idpathstringyesItem ID
StatusMeaningSchema
200The item's current GitHub linkGithubLinkBody
404Item not found, or not linkedErrorEnvelope

Manually links an item to a GitHub issue so status and comments sync both ways — the

ParamInTypeRequiredDescription
idpathstringyesItem ID

Request body: GithubLinkBody

StatusMeaningSchema
204Linked—
400Invalid repo or issue numberErrorEnvelope
404Item not foundErrorEnvelope

POST /api/items/{id}/items-from-plan

ParamInTypeRequiredDescription
idpathstringyesParent Item ID

Request body: CreateItemsFromPlanRequest

StatusMeaningSchema
200Items createdCreateItemsFromPlanResponse
400Validation errorErrorEnvelope
404Parent item not foundErrorEnvelope

GET /api/items/{id}/run-options

The profiles that may run an item, and why the others may not.

ParamInTypeRequiredDescription
idpathstringyesItem ID
StatusMeaningSchema
200Each agent profile and whether it may run the item, with the reason when it may not. The rule a run is refused byRunOption[]
404No such itemErrorEnvelope

GET /api/projects/{project_id}/items

ParamInTypeRequiredDescription
project_idpathstringyesProject ID
statuspath['string', 'null']yes
item_typepath['string', 'null']yes
prioritypath—yes
sprint_idpath['string', 'null']yes
parent_idpath['string', 'null']yes
nodepath—yesOnly groups, or only work.
underpath['string', 'null']yesOnly what lies under this item, at any depth; the item itself is left out.
assigneepath['string', 'null']yes
tagpath['string', 'null']yes
searchpath['string', 'null']yes
pagepath['integer', 'null']yes
per_pagepath['integer', 'null']yes
StatusMeaningSchema
200Paginated itemsPaginatedItems

POST /api/projects/{project_id}/items

ParamInTypeRequiredDescription
project_idpathstringyesProject ID

Request body: CreateItem

StatusMeaningSchema
200Item createdItemCard
400Validation errorErrorEnvelope
404Project not foundErrorEnvelope
422The 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

GET /api/projects/{project_id}/items/tree

ParamInTypeRequiredDescription
project_idpathstringyesProject ID
StatusMeaningSchema
200Every item of the project, parents first, each group with how far the work under it isItemNode[]

GET /api/projects/{project_id}/parents

ParamInTypeRequiredDescription
project_idpathstringyesProject ID
itemquerystringnoAn item that exists: the answer leaves out the item and everything under it.
typequerystringnoThe type key of an item about to be made.
StatusMeaningSchema
200Every item the tree rule admits as the parent, in tree orderParentOption[]
400Neither or both of item and type were givenErrorEnvelope
404The project, the item or the type is not thereErrorEnvelope

Sprints

Sprints / iterations within a project.

GET /api/projects/{project_id}/sprints

ParamInTypeRequiredDescription
project_idpathstringyesProject ID
StatusMeaningSchema
200Sprints for the projectSprint[]

POST /api/projects/{project_id}/sprints

ParamInTypeRequiredDescription
project_idpathstringyesProject ID

Request body: CreateSprint

StatusMeaningSchema
200Sprint createdSprint
400Validation errorErrorEnvelope

GET /api/sprints/{id}

ParamInTypeRequiredDescription
idpathstringyesSprint ID
StatusMeaningSchema
200The sprintSprint
404Sprint not foundErrorEnvelope

PATCH /api/sprints/{id}

ParamInTypeRequiredDescription
idpathstringyesSprint ID

Request body: UpdateSprint

StatusMeaningSchema
200The updated sprintSprint
400Validation errorErrorEnvelope
404Sprint not foundErrorEnvelope

PATCH /api/sprints/{id}/status

ParamInTypeRequiredDescription
idpathstringyesSprint ID

Request body: UpdateSprintStatus

StatusMeaningSchema
200Status updated—
400Validation errorErrorEnvelope
404Sprint not foundErrorEnvelope

Roles

Roles / specialties and their assignment to items.

DELETE /api/items/{item_id}/roles/{role_id}

ParamInTypeRequiredDescription
item_idpathstringyesItem ID
role_idpathstringyesRole ID
StatusMeaningSchema
200Role removed from item—

PUT /api/items/{item_id}/roles/{role_id}

ParamInTypeRequiredDescription
item_idpathstringyesItem ID
role_idpathstringyesRole ID
StatusMeaningSchema
200Role assigned to item—
404The item or the role does not exist, or they belong to different projectsErrorEnvelope

GET /api/projects/{project_id}/roles

ParamInTypeRequiredDescription
project_idpathstringyesProject ID
StatusMeaningSchema
200Roles for the projectRole[]

POST /api/projects/{project_id}/roles

ParamInTypeRequiredDescription
project_idpathstringyesProject ID

Request body: CreateRole

StatusMeaningSchema
200Role createdRole
400Validation errorErrorEnvelope

DELETE /api/roles/{id}

ParamInTypeRequiredDescription
idpathstringyesRole ID
StatusMeaningSchema
200Deleted—
404Role not foundErrorEnvelope

PATCH /api/roles/{id}

ParamInTypeRequiredDescription
idpathstringyesRole ID

Request body: UpdateRole

StatusMeaningSchema
200Role updatedRole
400Validation error or unknown agent profileErrorEnvelope
404Role not foundErrorEnvelope

Agent Credentials

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.

GET /api/agent-credentials

credentials

StatusMeaningSchema
200Every credential, the newest first; never a secretAgentCredential[]

POST /api/agent-credentials

credentials

Request body: IssueCredential

StatusMeaningSchema
200Issued; the secret is in this answer onlyIssuedCredential
400The name or a scope is refusedErrorEnvelope
409Another credential not revoked has that nameErrorEnvelope

POST /api/agent-credentials/{id}/revoke

credentials/{id}/revoke

ParamInTypeRequiredDescription
idpathstringyesCredential ID
StatusMeaningSchema
200Revoked for goodAgentCredential
404No such credentialErrorEnvelope

POST /api/agent-credentials/{id}/rotate

credentials/{id}/rotate

ParamInTypeRequiredDescription
idpathstringyesCredential ID
StatusMeaningSchema
200A new secret, valid ninety days; the old one stops workingIssuedCredential
404No such credential, or it was revokedErrorEnvelope

Change Sets

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.

GET /api/change-sets/{id}

sets/{id}

ParamInTypeRequiredDescription
idpathstringyesChange set ID
StatusMeaningSchema
200The change set with each operation's state and resultChangeSet
404Not foundErrorEnvelope

POST /api/change-sets/{id}/apply

sets/{id}/apply

ParamInTypeRequiredDescription
idpathstringyesChange set ID

Request body: ApplyChangeSet

StatusMeaningSchema
200Applied in one transactionChangeSet
400Refused whole, with every reason; the change set is as it wasErrorEnvelope
404Not foundErrorEnvelope
409An operation chosen is not waitingErrorEnvelope

PATCH /api/change-sets/{id}/operations/{index}

sets/{id}/operations/{index}

ParamInTypeRequiredDescription
idpathstringyesChange set ID
indexpathintegeryesPosition of the operation

Request body: EditOperation

StatusMeaningSchema
200The operation is replaced; it is checked when appliedChangeSet
404Not foundErrorEnvelope
409The operation is not waiting, or the edit changes its kindErrorEnvelope

POST /api/change-sets/{id}/reject

sets/{id}/reject

ParamInTypeRequiredDescription
idpathstringyesChange set ID

Request body: RejectChangeSet

StatusMeaningSchema
200What waited is turned downChangeSet
404Not foundErrorEnvelope
409Nothing waits in itErrorEnvelope

GET /api/projects/{project_id}/change-sets

sets

ParamInTypeRequiredDescription
project_idpathstringyesProject ID
statuspath['string', 'null']yesComma-separated statuses: waiting, applied, rejected, partly. Absent lists all.
limitpath['integer', 'null']yesAt most this many, the newest first (default 100, at most 500).
StatusMeaningSchema
200The project's change sets, the newest firstChangeSet[]
400A status that is not oneErrorEnvelope

POST /api/projects/{project_id}/change-sets

sets

ParamInTypeRequiredDescription
project_idpathstringyesProject ID

Request body: ProposeChangeSet

StatusMeaningSchema
200Kept; what the project's rung allows has applied, the rest waitsProposedChangeSet
400Refused whole, with every reason; nothing was keptErrorEnvelope
403The credential lacks the scope proposeErrorEnvelope
404Project not foundErrorEnvelope

Teams

The teams the board's agents report, with the profiles that name them.

POST /api/projects/{id}/teams/apply

POST /api/projects/{id}/teams/apply

ParamInTypeRequiredDescription
idpathstringyesProject ID

Request body: ApplyTeamsRequest

StatusMeaningSchema
200How each team went, in the order asked: applied, waiting for a person to read the commands docket listed, or refused with the reasonTeamApplyResult[]
400No team named, a name or shape docket does not know, or the project's code is not a folder on a computerErrorEnvelope
404No such projectErrorEnvelope
409No active runner reports a docket that lists podShape; the sentence says what to doErrorEnvelope

GET /api/teams

GET /api/teams

StatusMeaningSchema
200Every team any active runner reports, once per name and agent, with the profiles that name it; plus the names profiles use that no runner reportsTeamList

POST /api/teams/{harness}/{name}/memory/{id}

POST /api/teams/{harness}/{name}/memory/{id}

ParamInTypeRequiredDescription
harnesspathstringyesThe agent that runs the team, as GET /api/teams names it
namepathstringyesThe team's name
idpathstringyesThe memory entry's id, as the team's report lists it

Request body: DecideMemoryRequest

StatusMeaningSchema
200The agent approved or refused the entry; the team's report afterwardsTeamMemoryDecided
404not_found (no active runner reports a team of that name for that agent)—
409conflict (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
422validation_error (a refusal without a reason)ErrorEnvelope

POST /api/teams/{harness}/{name}/resume

POST /api/teams/{harness}/{name}/resume

ParamInTypeRequiredDescription
harnesspathstringyesThe agent that runs the team, as GET /api/teams names it
namepathstringyesThe team's name
StatusMeaningSchema
200The agent let the team claim tasks again; its report afterwardsTeamResumed
404not_found (no active runner reports a team of that name for that agent)—
409conflict (the agent refused, with its reason, or the runner did not answer in time)ErrorEnvelope

GET /api/teams/{id}/activity

GET /api/teams/{id}/activity

ParamInTypeRequiredDescription
idpathstringyesThe team's name
harnesspath['string', 'null']yes
StatusMeaningSchema
200What 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 sayTeamActivityEntry
403An agent credential with the scope read on no projectErrorEnvelope
404not_found (no active runner reports a team of that name)—

Autonomy

How far Tack may merge a project's changes on its own.

GET /api/projects/{id}/autonomy

GET /api/projects/:id/autonomy

ParamInTypeRequiredDescription
idpathstringyesProject ID
StatusMeaningSchema
200The project's autonomy settingsAutonomySettings
404No such projectErrorEnvelope

PUT /api/projects/{id}/autonomy

PUT /api/projects/:id/autonomy

ParamInTypeRequiredDescription
idpathstringyesProject ID

Request body: AutonomySettings

StatusMeaningSchema
200The settings now in forceAutonomySettings
400An unknown level, a nameless or repeated domain, a domain naming a type the project lacks, a negative limitErrorEnvelope
404No such projectErrorEnvelope

Mrp

An attempt's Merge-Readiness Pack and the human verdict on it.

GET /api/executions/{request_id}/attempts/{attempt_number}/mrp

GET /api/executions/:request_id/attempts/:attempt_number/mrp

ParamInTypeRequiredDescription
request_idpathstringyesExecution request ID
attempt_numberpathintegeryes1-based attempt number
StatusMeaningSchema
200The parsed pack, when it was opened and the attempt's reviewMrpResponse
404No pack for this attemptErrorEnvelope

POST /api/executions/{request_id}/attempts/{attempt_number}/mrp/viewed

POST /api/executions/:request_id/attempts/:attempt_number/mrp/viewed

ParamInTypeRequiredDescription
request_idpathstringyesExecution request ID
attempt_numberpathintegeryes1-based attempt number
StatusMeaningSchema
200When the pack was first opened, stamped onceMrpViewed
404No pack for this attemptErrorEnvelope

Metrics

Factory metrics measured from a project's rows.

GET /api/projects/{id}/metrics/factory

GET /api/projects/:id/metrics/factory

ParamInTypeRequiredDescription
idpathstringyesProject ID
sincequerystringnoStart of the window (RFC 3339); absent means all time.
StatusMeaningSchema
200Factory metrics measured from the project's rowsFactoryMetrics
400since is not RFC 3339ErrorEnvelope
404Project not foundErrorEnvelope

Briefs

An item's brief: acceptance criteria, constraints, definition of done.

DELETE /api/items/{item_id}/brief

DELETE /api/items/:item_id/brief

ParamInTypeRequiredDescription
item_idpathstringyesItem ID
StatusMeaningSchema
204Brief deleted—
404Item not found, or it has no briefErrorEnvelope

GET /api/items/{item_id}/brief

GET /api/items/:item_id/brief

ParamInTypeRequiredDescription
item_idpathstringyesItem ID
StatusMeaningSchema
200The item's briefItemBrief
404Item not found, or it has no briefErrorEnvelope

PUT /api/items/{item_id}/brief

PUT /api/items/:item_id/brief

ParamInTypeRequiredDescription
item_idpathstringyesItem ID

Request body: UpsertItemBrief

StatusMeaningSchema
200The brief as storedItemBrief
400Validation errorErrorEnvelope
404Item not foundErrorEnvelope

GET /api/items/{item_id}/brief/versions

GET /api/items/:item_id/brief/versions

ParamInTypeRequiredDescription
item_idpathstringyesItem ID
StatusMeaningSchema
200Every saved version of the item's brief, oldest firstItemBriefVersion[]
404Item not foundErrorEnvelope

Comments

Comments on items.

GET /api/items/{item_id}/comments

ParamInTypeRequiredDescription
item_idpathstringyesItem ID
StatusMeaningSchema
200Comments on the itemComment[]

POST /api/items/{item_id}/comments

ParamInTypeRequiredDescription
item_idpathstringyesItem ID

Request body: CreateComment

StatusMeaningSchema
200Comment createdComment
400Validation errorErrorEnvelope

Dependencies

Directed dependency edges between items.

GET /api/items/{item_id}/dependencies

ParamInTypeRequiredDescription
item_idpathstringyesItem ID
StatusMeaningSchema
200Dependency edges for the itemDependency[]

POST /api/items/{item_id}/dependencies

ParamInTypeRequiredDescription
item_idpathstringyesSource item ID

Request body: CreateDependency

StatusMeaningSchema
200Dependency createdDependency
400Cycle detected or duplicateErrorEnvelope

DELETE /api/items/{item_id}/dependencies/{dep_id}

ParamInTypeRequiredDescription
item_idpathstringyesItem ID
dep_idpathstringyesDependency ID
StatusMeaningSchema
200Deleted—
404Dependency not foundErrorEnvelope

Attachments

File attachments on items.

DELETE /api/attachments/{id}

DELETE /api/attachments/:id

ParamInTypeRequiredDescription
idpathstringyesAttachment ID
StatusMeaningSchema
204Attachment deleted—
404Attachment not foundErrorEnvelope

GET /api/attachments/{id}

GET /api/attachments/:id

ParamInTypeRequiredDescription
idpathstringyesAttachment ID
StatusMeaningSchema
200Attachment file bytes—
404Attachment not foundErrorEnvelope

GET /api/items/{item_id}/attachments

GET /api/items/:id/attachments

ParamInTypeRequiredDescription
item_idpathstringyesItem ID
StatusMeaningSchema
200Attachments on the itemarray
404Item not foundErrorEnvelope

POST /api/items/{item_id}/attachments

POST /api/items/:id/attachments

ParamInTypeRequiredDescription
item_idpathstringyesItem ID

Request body: string

StatusMeaningSchema
200Attachment metadata—
400Missing/oversized fileErrorEnvelope
404Item not foundErrorEnvelope

Custom Fields

Per-project custom field definitions and values.

DELETE /api/custom-fields/{id}

Delete a custom field

ParamInTypeRequiredDescription
idpathstringyesCustom field ID
StatusMeaningSchema
204Field deleted—

GET /api/custom-fields/{id}

Get a specific custom field

ParamInTypeRequiredDescription
idpathstringyesCustom field ID
StatusMeaningSchema
200The field definitionCustomFieldDefinition
404Field not foundErrorEnvelope

PATCH /api/custom-fields/{id}

Update a custom field

ParamInTypeRequiredDescription
idpathstringyesCustom field ID

Request body: UpdateCustomField

StatusMeaningSchema
200Updated fieldCustomFieldDefinition
500Update failedErrorEnvelope

GET /api/items/{item_id}/custom-fields

Get all custom field values for an item

ParamInTypeRequiredDescription
item_idpathstringyesItem ID
StatusMeaningSchema
200All custom field values for the itemCustomFieldValue[]

DELETE /api/items/{item_id}/custom-fields/{field_id}

Delete a custom field value

ParamInTypeRequiredDescription
item_idpathstringyesItem ID
field_idpathstringyesCustom field ID
StatusMeaningSchema
204Value deleted—

GET /api/items/{item_id}/custom-fields/{field_id}

Get a specific custom field value

ParamInTypeRequiredDescription
item_idpathstringyesItem ID
field_idpathstringyesCustom field ID
StatusMeaningSchema
200The field valueCustomFieldValue
404Value not foundErrorEnvelope

PUT /api/items/{item_id}/custom-fields/{field_id}

Set a custom field value for an item

ParamInTypeRequiredDescription
item_idpathstringyesItem ID
field_idpathstringyesCustom field ID
StatusMeaningSchema
200Value setCustomFieldValue
404Item or field not foundErrorEnvelope
422Value failed field validationErrorEnvelope

GET /api/projects/{project_id}/custom-fields

List all custom fields for a project

ParamInTypeRequiredDescription
project_idpathstringyesProject ID
StatusMeaningSchema
200Custom field definitionsCustomFieldDefinition[]

POST /api/projects/{project_id}/custom-fields

Create a custom field for a project

ParamInTypeRequiredDescription
project_idpathstringyesProject ID

Request body: CreateCustomField

StatusMeaningSchema
200Field createdCustomFieldDefinition
404Project not foundErrorEnvelope

Templates

Reusable project templates.

POST /api/projects/from-template/{id}

Create a project from a template

ParamInTypeRequiredDescription
idpathstringyesTemplate ID

Request body: CreateProjectFromTemplate

StatusMeaningSchema
200Project created from templateProject
404Template not foundErrorEnvelope
422Validation errorErrorEnvelope

POST /api/projects/{project_id}/save-as-template

Snapshot a project's configuration as a reusable template

ParamInTypeRequiredDescription
project_idpathstringyesProject ID

Request body: SaveAsTemplateRequest

StatusMeaningSchema
200Template snapshot createdProjectTemplate
404Project not foundErrorEnvelope

GET /api/templates

List all project templates

ParamInTypeRequiredDescription
project_typequeryProjectTypeno
StatusMeaningSchema
200Templates (optionally filtered by project type)ProjectTemplate[]

POST /api/templates

Create a new project template

Request body: CreateProjectTemplate

StatusMeaningSchema
200Template createdProjectTemplate
422Validation error (workflow shape, custom field options)ErrorEnvelope

DELETE /api/templates/{id}

Delete a template (user-created only)

ParamInTypeRequiredDescription
idpathstringyesTemplate ID
StatusMeaningSchema
204Template deleted—

GET /api/templates/{id}

Get a specific template

ParamInTypeRequiredDescription
idpathstringyesTemplate ID
StatusMeaningSchema
200The templateProjectTemplate
404Template not foundErrorEnvelope

Import

Import from JSON/YAML/CSV, GitHub Issues, and Linear.

POST /api/projects/import

POST /api/projects/import

StatusMeaningSchema
200Import result with the new project and stats—
400Invalid import payloadErrorEnvelope

POST /api/projects/import-csv

ParamInTypeRequiredDescription
dry_runquerybooleannoCheck the file and report what would be created, writing nothing.
namequerystringnoThe new project's name. Overrides an outline's project.name;
project_typequerystringnoThe new project's type (default custom). Overrides an outline's
descriptionquerystringnoOverrides an outline's project.description.

Request body: string

StatusMeaningSchema
200The project and items created, or that would be on a dry runOutlineResult
400The CSV was refused; the message lists every problemErrorEnvelope

POST /api/projects/outline

ParamInTypeRequiredDescription
dry_runquerybooleannoCheck the file and report what would be created, writing nothing.
namequerystringnoThe new project's name. Overrides an outline's project.name;
project_typequerystringnoThe new project's type (default custom). Overrides an outline's
descriptionquerystringnoOverrides an outline's project.description.

Request body: Outline

StatusMeaningSchema
200The project and items created, or that would be on a dry runOutlineResult
400The outline was refused; the message lists every problemErrorEnvelope

POST /api/projects/{id}/import-csv

ItemSource::CsvImport — a bare CSV carries no provenance of its own, so

ParamInTypeRequiredDescription
idpathstringyesProject ID
dry_runquerybooleannoCheck the file and report what would be created, writing nothing.

Request body: string

StatusMeaningSchema
200The items created, or that would be on a dry runOutlineResult
400The CSV was refused; the message lists every problemErrorEnvelope
404Project not foundErrorEnvelope

POST /api/projects/{id}/import-github

github

ParamInTypeRequiredDescription
idpathstringyesProject ID

Request body: GitHubImportRequest

StatusMeaningSchema
200Counts of created/skipped issues and rate-limit remaining—
400Bad repo, token, or rate limitErrorEnvelope
404Project or repo not foundErrorEnvelope

POST /api/projects/{id}/import-linear

linear

ParamInTypeRequiredDescription
idpathstringyesProject ID

Request body: LinearImportRequest

StatusMeaningSchema
200Counts of created and skipped issues—
400Bad API key, filter, or rate limitErrorEnvelope
404Project not foundErrorEnvelope

POST /api/projects/{id}/outline

ParamInTypeRequiredDescription
idpathstringyesProject ID
dry_runquerybooleannoCheck the file and report what would be created, writing nothing.

Request body: Outline

StatusMeaningSchema
200The items created, or that would be on a dry runOutlineResult
400The outline was refused; the message lists every problemErrorEnvelope
404Project not foundErrorEnvelope

Export

Project export to JSON / YAML / CSV.

GET /api/projects/{id}/export

GET /api/projects/:id/export

ParamInTypeRequiredDescription
idpathstringyesProject ID
formatquerystringno
scopequerystringnosnapshot (the default) is the database dump POST /api/projects/import
StatusMeaningSchema
200Export file (JSON, YAML, or CSV per the format query)—
400Unsupported formatErrorEnvelope
404Project not foundErrorEnvelope

Full-text search within a project or globally.

GET /api/projects/{project_id}/search

ParamInTypeRequiredDescription
project_idpathstringyesProject ID
qquerystringyes
StatusMeaningSchema
200Matching itemsItem[]

GET /api/search

ParamInTypeRequiredDescription
qquerystringyes
StatusMeaningSchema
200Matching items across all projectsItem[]

Backup

Local and S3-compatible cloud backup / restore.

GET /api/backup

VACUUM INTO snapshot streamed as application/octet-stream.

StatusMeaningSchema
200SQLite snapshot (secrets scrubbed)—
400Not a file-based databaseErrorEnvelope

GET /api/backup/remote

list remote backups newest-first.

StatusMeaningSchema
200Remote backup manifests, newest first—
409Remote backup not configuredErrorEnvelope

POST /api/backup/remote

create a bundle and upload it to the configured S3

StatusMeaningSchema
200Backup manifest—
409Not configured, or another device has newer workErrorEnvelope

POST /api/backup/remote/restore

download a bundle and stage it for next restart.

Request body: RestoreRemoteRequest

StatusMeaningSchema
200Restore staged for next restart—
404No remote backups foundErrorEnvelope
409Not configured, or restore would lose newer workErrorEnvelope
422The archive or its manifest cannot be read (unreadable_archive)ErrorEnvelope

POST /api/backup/remote/verify

download a bundle and validate it (sha256 +

Request body: RestoreRemoteRequest

StatusMeaningSchema
200Verification verdict plus the manifest—
404No remote backups foundErrorEnvelope
409Remote backup not configuredErrorEnvelope

POST /api/restore

Validate a SQLite backup and stage it for the next restart.

StatusMeaningSchema
200Restore staged for next restart—
400Not a valid SQLite fileErrorEnvelope
409Uploaded schema is newer than this binaryErrorEnvelope

Settings

Runtime-editable server settings (cloud backup).

GET /api/settings/backup

current cloud-backup configuration (secret masked).

StatusMeaningSchema
200Cloud-backup config (secret masked as secret_key_set)—

PUT /api/settings/backup

save cloud-backup configuration.

Request body: UpdateBackupSettings

StatusMeaningSchema
200Updated config (secret masked)—
422Validation errorErrorEnvelope

Execution Operator

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).

GET /api/agent-profiles

StatusMeaningSchema
200Every agent profile, by nameAgentProfileListResponse

POST /api/agent-profiles

Request body: CreateProfile

StatusMeaningSchema
200Agent profile createdCreateProfileResponse
409conflict (name already exists)RunnerV1ErrorEnvelope

DELETE /api/agent-profiles/{id}

ParamInTypeRequiredDescription
idpathstringyesAgent profile id
StatusMeaningSchema
200Agent profile deleted—
404not_foundRunnerV1ErrorEnvelope
409conflict (built-in profile, details.reason = builtin_profile)RunnerV1ErrorEnvelope

PATCH /api/agent-profiles/{id}

ParamInTypeRequiredDescription
idpathstringyesAgent profile id

Request body: UpdateProfile

StatusMeaningSchema
200Agent profile updatedAgentProfileSummary
404not_foundRunnerV1ErrorEnvelope
409conflict (name already exists)RunnerV1ErrorEnvelope

GET /api/agent-profiles/{id}/history

ParamInTypeRequiredDescription
idpathstringyesAgent profile id
StatusMeaningSchema
200The counted tokens of the profile's last successful runsProfileHistory
404not_foundRunnerV1ErrorEnvelope

POST /api/attempts/{attempt_id}/decisions/{decision_id}/resolve

Resolve a pending decision with an operator-supplied answer

ParamInTypeRequiredDescription
attempt_idpathstringyesAttempt ID the decision belongs to (opaque)
decision_idpathstringyesDecision 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-tokenheaderstringyesTACK_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

StatusMeaningSchema
200Decision resolved — either a fresh write or a byte-identical idempotent replay of one (replayed distinguishes the two).ResolveDecisionResponse
400invalid_request (missing/malformed answer, or answer.option_id is not one of this decision's own recorded options)RunnerV1ErrorEnvelope
401unauthorized — no x-tack-principal; a runner bearer credential never satisfies this, by constructionRunnerV1ErrorEnvelope
403forbidden — x-tack-decision-token missing, unconfigured server-side, or mismatched (details.required_scope = "operator:decisions")RunnerV1ErrorEnvelope
404not_found — no decision exists for this exact (attempt_id, decision_id) pairRunnerV1ErrorEnvelope
409decision_expired / idempotency_conflictRunnerV1ErrorEnvelope
413payload_too_large (answer exceeds decision_answer_bytes_max, 32768 bytes)RunnerV1ErrorEnvelope

POST /api/attempts/{attempt_id}/merge

the Merge button. Merges the

ParamInTypeRequiredDescription
attempt_idpathstringyesExecution attempt ID (opaque)

Request body: MergeAttemptRequest

StatusMeaningSchema
200Merged; carries the merge commit's sha—
400invalid_request (the pack recommends reject, or the checks changed, and no reason was written)RunnerV1ErrorEnvelope
404not_foundRunnerV1ErrorEnvelope
409conflict: the merge was held, the message says whyRunnerV1ErrorEnvelope

GET /api/executions

ParamInTypeRequiredDescription
item_idquerystringno
project_idquerystringnoEvery open run of the project (queued, running, waiting on a person) and those that ended
item_idsquerystringnoComma-separated item ids — returns exactly one row per id, its own
limitqueryintegerno
StatusMeaningSchema
200Execution 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 limitExecutionListResponse
400invalid_request (a malformed item_ids entry, or more ids than the route's cap)RunnerV1ErrorEnvelope
404not_found (project_id names no project)RunnerV1ErrorEnvelope

POST /api/executions

Request body: CreateExecution

StatusMeaningSchema
200Execution request created or idempotently replayedCreateExecutionResponse
400invalid_requestRunnerV1ErrorEnvelope
404not_found (item does not exist)RunnerV1ErrorEnvelope
409conflict / idempotency_conflict / runner_revoked / group_not_runnable (an item that holds work is run only with a profile that plans or researches)RunnerV1ErrorEnvelope

GET /api/executions/{request_id}

ParamInTypeRequiredDescription
request_idpathstringyesExecution request ID (opaque)
StatusMeaningSchema
200Execution request detailExecutionDetailResponse
404not_foundRunnerV1ErrorEnvelope

GET /api/executions/{request_id}/attempts

the operator read path

ParamInTypeRequiredDescription
request_idpathstringyesExecution request ID (opaque)
StatusMeaningSchema
200Every attempt made against this request, oldest first (may be empty)AttemptListResponse
404not_foundRunnerV1ErrorEnvelope

GET /api/executions/{request_id}/attempts/{attempt_number}/artifacts

ParamInTypeRequiredDescription
request_idpathstringyesExecution request ID (opaque)
attempt_numberpathintegeryes1-based attempt number
StatusMeaningSchema
200Every artifact manifested for this attempt, oldest first (may be empty)ArtifactListResponse
404not_found (execution_request or execution_attempt)RunnerV1ErrorEnvelope

GET /api/executions/{request_id}/attempts/{attempt_number}/artifacts/{artifact_id}/content

Download a verified artifact's raw content

ParamInTypeRequiredDescription
request_idpathstringyesExecution request ID (opaque)
attempt_numberpathintegeryes1-based attempt number within the execution request
artifact_idpathstringyesArtifact ID, scoped to the attempt that reported it (opaque)
StatusMeaningSchema
200The artifact's raw bytes. Content-Type is the artifact's declared media_type, or application/octet-stream when none was declared.string
401unauthorized — no authenticated operator principalRunnerV1ErrorEnvelope
404not_found (details.artifact_id) — no artifact manifest matches this (request_id, attempt_number, artifact_id) tripleRunnerV1ErrorEnvelope
409conflict (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 bytesRunnerV1ErrorEnvelope

GET /api/executions/{request_id}/attempts/{attempt_number}/decisions

ParamInTypeRequiredDescription
request_idpathstringyesExecution request ID (opaque)
attempt_numberpathintegeryes1-based attempt number
StatusMeaningSchema
200Every decision raised against this attempt, oldest first (may be empty)DecisionListResponse
404not_found (execution_request or execution_attempt)RunnerV1ErrorEnvelope

GET /api/executions/{request_id}/attempts/{attempt_number}/events

ParamInTypeRequiredDescription
request_idpathstringyesExecution request ID (opaque)
attempt_numberpathintegeryes1-based attempt number
StatusMeaningSchema
200Every event this attempt has reported, oldest first (may be empty)EventListResponse
404not_found (execution_request or execution_attempt)RunnerV1ErrorEnvelope

POST /api/executions/{request_id}/attempts/{attempt_number}/review

ParamInTypeRequiredDescription
request_idpathstringyesExecution request ID (opaque)
attempt_numberpathintegeryes1-based attempt number

Request body: ReviewAttemptRequest

StatusMeaningSchema
200The recorded verdictAttemptReview
400invalid_request (verdict is not accepted or rejected, or a rejection has no reason)RunnerV1ErrorEnvelope
404not_found (execution_request or execution_attempt)RunnerV1ErrorEnvelope
409conflict (details.reason = already_reviewed)RunnerV1ErrorEnvelope

POST /api/executions/{request_id}/cancel

ParamInTypeRequiredDescription
request_idpathstringyesExecution request ID (opaque)
StatusMeaningSchema
200Cancelled at once when nobody holds the run; otherwise cancellation requested and not yet terminalCancellationRequestedResponse
404not_foundRunnerV1ErrorEnvelope
409conflict (already terminal)RunnerV1ErrorEnvelope

POST /api/executions/{request_id}/continue

POST /api/executions/{id}/continue: a new request that follows the same docket task id's

ParamInTypeRequiredDescription
request_idpathstringyesThe id of the run to continue
StatusMeaningSchema
200Continuation created or idempotently replayedContinueResponse
404not_found (the named run does not exist)RunnerV1ErrorEnvelope
409idempotency_conflictRunnerV1ErrorEnvelope
422unprocessable (never offered, or no tokens left)RunnerV1ErrorEnvelope

POST /api/executions/{request_id}/requeue

ParamInTypeRequiredDescription
request_idpathstringyesExecution request ID (opaque)

Request body: RecoveryConfirmation

StatusMeaningSchema
200Requeued (or replayed) after an audited recovery decisionRequeueResponse
409conflict / idempotency_conflict / invalid_transitionRunnerV1ErrorEnvelope

GET /api/runner-fleets

StatusMeaningSchema
200Every runner fleet, by nameFleetListResponse

POST /api/runner-fleets

Request body: CreateFleet

StatusMeaningSchema
200Fleet createdCreateFleetResponse
409conflict (name already exists)RunnerV1ErrorEnvelope

POST /api/runner-fleets/{fleet_id}/members

ParamInTypeRequiredDescription
fleet_idpathstringyesFleet ID (opaque)

Request body: AddFleetMember

StatusMeaningSchema
200Runner is now (or already was) a member of the fleetFleetMemberResponse
404not_found (fleet or runner does not exist)RunnerV1ErrorEnvelope

DELETE /api/runner-fleets/{fleet_id}/members/{runner_id}

ParamInTypeRequiredDescription
fleet_idpathstringyesFleet ID (opaque)
runner_idpathstringyesRunner ID (opaque)
StatusMeaningSchema
200Runner removed from the fleetFleetMemberResponse
404not_found (runner was not a member of this fleet)RunnerV1ErrorEnvelope

GET /api/runners

the read path for agent_runners

ParamInTypeRequiredDescription
fleet_idpath['string', 'null']yesOptional roster filter — a runner is included only if it is a
StatusMeaningSchema
200Every enrolled runner (optionally filtered to one fleet's roster)RunnerListResponse

POST /api/runners/enrollment

Creates a pending runner and stores only a SHA-256 enrollment-token hash.

Request body: CreatePendingRunner

StatusMeaningSchema
200Pending runner created; the raw enrollment token is returned exactly onceCreatePendingRunnerResponse
400invalid_requestRunnerV1ErrorEnvelope
409conflict (name already exists)RunnerV1ErrorEnvelope

POST /api/runners/{runner_id}/enrollment-tokens/{token_id}/revoke

ParamInTypeRequiredDescription
runner_idpathstringyesRunner ID (opaque)
token_idpathstringyesEnrollment token ID (opaque)
StatusMeaningSchema
200Token revokedRevokeEnrollmentTokenResponse
404not_foundRunnerV1ErrorEnvelope
409conflict (already consumed)RunnerV1ErrorEnvelope

POST /api/runners/{runner_id}/revoke

ParamInTypeRequiredDescription
runner_idpathstringyesRunner ID (opaque)
StatusMeaningSchema
200Runner revokedRevokeRunnerResponse
404not_foundRunnerV1ErrorEnvelope

Runner Protocol V1

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.

POST /api/runner/v1/activity

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)

StatusMeaningSchema
200Activity recorded; a repeated report changes nothing—
400invalid_requestRunnerV1ErrorEnvelope
401unauthorizedRunnerV1ErrorEnvelope
403forbidden / runner_revokedRunnerV1ErrorEnvelope
404not_foundRunnerV1ErrorEnvelope
409conflict / idempotency_conflict / invalid_transition / stale_leaseRunnerV1ErrorEnvelope

POST /api/runner/v1/attempts/{attempt_id}/accept

Report the attempt entering preparing

ParamInTypeRequiredDescription
attempt_idpathstringyesAttempt ID, issued at claim time (opaque)
StatusMeaningSchema
200Transition accepted or replayed—
400invalid_requestRunnerV1ErrorEnvelope
401unauthorizedRunnerV1ErrorEnvelope
403forbidden / runner_revokedRunnerV1ErrorEnvelope
404not_foundRunnerV1ErrorEnvelope
409conflict / idempotency_conflict / invalid_transition / stale_leaseRunnerV1ErrorEnvelope

POST /api/runner/v1/attempts/{attempt_id}/artifacts

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")

ParamInTypeRequiredDescription
attempt_idpathstringyesAttempt ID, issued at claim time (opaque)
StatusMeaningSchema
200Manifest accepted; per-artifact upload URLs issued—
400invalid_requestRunnerV1ErrorEnvelope
401unauthorizedRunnerV1ErrorEnvelope
403forbidden / runner_revokedRunnerV1ErrorEnvelope
404not_foundRunnerV1ErrorEnvelope
409conflict / idempotency_conflict / invalid_transition / stale_leaseRunnerV1ErrorEnvelope

PUT /api/runner/v1/attempts/{attempt_id}/artifacts/{artifact_id}/content

Upload one manifested artifact's verified raw content

ParamInTypeRequiredDescription
attempt_idpathstringyesAttempt ID, issued at claim time (opaque)
artifact_idpathstringyesArtifact ID from this attempt's prior manifest submission (POST .../artifacts, opaque)
x-tack-fencing-tokenheaderstringyesThe 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).
StatusMeaningSchema
200Content verified and committed: {protocol_version, attempt_id, artifact_id, state: "content_verified", size_bytes, sha256}—
400invalid_request (Content-Type mismatch, or the upload stream ended early)RunnerV1ErrorEnvelope
401unauthorizedRunnerV1ErrorEnvelope
403forbidden / runner_revokedRunnerV1ErrorEnvelope
409conflict (content already recorded and is immutable; or the attempt is not currently running/waiting_decision) / artifact_checksum_mismatch / stale_leaseRunnerV1ErrorEnvelope
413payload_too_large (artifact_content_bytes_max)RunnerV1ErrorEnvelope

POST /api/runner/v1/attempts/{attempt_id}/cancellation-observation

Report the observed effect of a requested cancellation

ParamInTypeRequiredDescription
attempt_idpathstringyesAttempt ID, issued at claim time (opaque)
StatusMeaningSchema
200Cancellation observation committed or replayed—
400invalid_requestRunnerV1ErrorEnvelope
401unauthorizedRunnerV1ErrorEnvelope
403forbidden / runner_revokedRunnerV1ErrorEnvelope
404not_foundRunnerV1ErrorEnvelope
409conflict / idempotency_conflict / invalid_transition / stale_leaseRunnerV1ErrorEnvelope

POST /api/runner/v1/attempts/{attempt_id}/completion

Report the attempt's terminal outcome

ParamInTypeRequiredDescription
attempt_idpathstringyesAttempt ID, issued at claim time (opaque)
StatusMeaningSchema
200Completion committed or replayed—
400invalid_requestRunnerV1ErrorEnvelope
401unauthorizedRunnerV1ErrorEnvelope
403forbidden / runner_revokedRunnerV1ErrorEnvelope
404not_foundRunnerV1ErrorEnvelope
409conflict / idempotency_conflict / invalid_transition / stale_leaseRunnerV1ErrorEnvelope

POST /api/runner/v1/attempts/{attempt_id}/decisions

Create a decision for later out-of-band operator resolution

ParamInTypeRequiredDescription
attempt_idpathstringyesAttempt ID, issued at claim time (opaque)
StatusMeaningSchema
200Decision recorded—
400invalid_requestRunnerV1ErrorEnvelope
401unauthorizedRunnerV1ErrorEnvelope
403forbidden / runner_revokedRunnerV1ErrorEnvelope
404not_foundRunnerV1ErrorEnvelope
409conflict / idempotency_conflict / invalid_transition / stale_leaseRunnerV1ErrorEnvelope

POST /api/runner/v1/attempts/{attempt_id}/decisions/answered-elsewhere

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)

ParamInTypeRequiredDescription
attempt_idpathstringyesAttempt ID, issued at claim time (opaque)
StatusMeaningSchema
200Decision closed as answered_elsewhere, or reported as another road had already settled it—
400invalid_requestRunnerV1ErrorEnvelope
401unauthorizedRunnerV1ErrorEnvelope
403forbidden / runner_revokedRunnerV1ErrorEnvelope
404not_foundRunnerV1ErrorEnvelope
409conflict / idempotency_conflict / invalid_transition / stale_leaseRunnerV1ErrorEnvelope

POST /api/runner/v1/attempts/{attempt_id}/decisions/poll

Poll for decision resolutions since a given timestamp

ParamInTypeRequiredDescription
attempt_idpathstringyesAttempt ID, issued at claim time (opaque)
StatusMeaningSchema
200Resolved decisions since after, plus the new next_after cursor—
400invalid_requestRunnerV1ErrorEnvelope
401unauthorizedRunnerV1ErrorEnvelope
403forbidden / runner_revokedRunnerV1ErrorEnvelope
404not_foundRunnerV1ErrorEnvelope
409conflict / idempotency_conflict / invalid_transition / stale_leaseRunnerV1ErrorEnvelope

POST /api/runner/v1/attempts/{attempt_id}/events

Append a fenced, checkpointed batch of execution events

ParamInTypeRequiredDescription
attempt_idpathstringyesAttempt ID, issued at claim time (opaque)
StatusMeaningSchema
200Batch committed (accepted/duplicate event ids, committed checkpoint)—
400invalid_requestRunnerV1ErrorEnvelope
401unauthorizedRunnerV1ErrorEnvelope
403forbidden / runner_revokedRunnerV1ErrorEnvelope
404not_foundRunnerV1ErrorEnvelope
409conflict / idempotency_conflict / invalid_transition / stale_leaseRunnerV1ErrorEnvelope

POST /api/runner/v1/attempts/{attempt_id}/recovery-observation

Report a post-restart recovery observation for an attempt (additive v1 operation; exact path fixed by protocol.json)

ParamInTypeRequiredDescription
attempt_idpathstringyesAttempt ID, issued at claim time (opaque)
StatusMeaningSchema
200Recovery observation committed or replayed; server-authoritative disposition returned—
400invalid_requestRunnerV1ErrorEnvelope
401unauthorizedRunnerV1ErrorEnvelope
403forbidden / runner_revokedRunnerV1ErrorEnvelope
404not_foundRunnerV1ErrorEnvelope
409conflict / idempotency_conflict / invalid_transition / stale_leaseRunnerV1ErrorEnvelope

POST /api/runner/v1/attempts/{attempt_id}/start

Report the attempt entering running

ParamInTypeRequiredDescription
attempt_idpathstringyesAttempt ID, issued at claim time (opaque)
StatusMeaningSchema
200Transition accepted or replayed—
400invalid_requestRunnerV1ErrorEnvelope
401unauthorizedRunnerV1ErrorEnvelope
403forbidden / runner_revokedRunnerV1ErrorEnvelope
404not_foundRunnerV1ErrorEnvelope
409conflict / idempotency_conflict / invalid_transition / stale_leaseRunnerV1ErrorEnvelope

POST /api/runner/v1/claim

Claim the next eligible execution request for this runner or its fleet

StatusMeaningSchema
200A fenced lease and the immutable request snapshot, or no_eligible_work—
400invalid_requestRunnerV1ErrorEnvelope
401unauthorizedRunnerV1ErrorEnvelope
403forbidden / runner_revokedRunnerV1ErrorEnvelope
404not_foundRunnerV1ErrorEnvelope
409conflict / idempotency_conflict / invalid_transition / stale_leaseRunnerV1ErrorEnvelope

POST /api/runner/v1/enroll

Exchange a single-use enrollment token for a runner identity and bearer credential

StatusMeaningSchema
200Runner enrolled; the raw bearer credential is returned exactly once—
400invalid_requestRunnerV1ErrorEnvelope
401unauthorizedRunnerV1ErrorEnvelope
403forbidden / runner_revokedRunnerV1ErrorEnvelope
404not_foundRunnerV1ErrorEnvelope
409conflict / idempotency_conflict / invalid_transition / stale_leaseRunnerV1ErrorEnvelope

POST /api/runner/v1/heartbeat

Report liveness, capacity, and active-attempt state in one fenced batch

StatusMeaningSchema
200Renewed lease facts per reported attempt—
400invalid_requestRunnerV1ErrorEnvelope
401unauthorizedRunnerV1ErrorEnvelope
403forbidden / runner_revokedRunnerV1ErrorEnvelope
404not_foundRunnerV1ErrorEnvelope
409conflict / idempotency_conflict / invalid_transition / stale_leaseRunnerV1ErrorEnvelope

POST /api/runner/v1/operations/poll

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)

StatusMeaningSchema
200The operations waiting for the runner; empty when none—
400invalid_requestRunnerV1ErrorEnvelope
401unauthorizedRunnerV1ErrorEnvelope
403forbidden / runner_revokedRunnerV1ErrorEnvelope
404not_foundRunnerV1ErrorEnvelope
409conflict / idempotency_conflict / invalid_transition / stale_leaseRunnerV1ErrorEnvelope

POST /api/runner/v1/operations/{operation_id}/result

Tell the board how an operation ended, to the request that waits for it (additive v1 operation; exact path fixed by protocol.json)

ParamInTypeRequiredDescription
operation_idpathstringyesOperation ID, issued when the board hands the operation out (opaque)
StatusMeaningSchema
200Result handed to the waiting request; 404 when nothing waits—
400invalid_requestRunnerV1ErrorEnvelope
401unauthorizedRunnerV1ErrorEnvelope
403forbidden / runner_revokedRunnerV1ErrorEnvelope
404not_foundRunnerV1ErrorEnvelope
409conflict / idempotency_conflict / invalid_transition / stale_leaseRunnerV1ErrorEnvelope

POST /api/runner/v1/refresh

Refresh reported capabilities and optionally rotate the runner's bearer credential

StatusMeaningSchema
200Capabilities accepted; a rotated credential, if requested, is returned exactly once—
400invalid_requestRunnerV1ErrorEnvelope
401unauthorizedRunnerV1ErrorEnvelope
403forbidden / runner_revokedRunnerV1ErrorEnvelope
404not_foundRunnerV1ErrorEnvelope
409conflict / idempotency_conflict / invalid_transition / stale_leaseRunnerV1ErrorEnvelope

Item Types

GET /api/projects/{id}/types

ParamInTypeRequiredDescription
idpathstringyesProject ID
StatusMeaningSchema
200The project's types in display order, each with how many items use itItemTypeUse[]
404Project not foundErrorEnvelope

POST /api/projects/{id}/types

ParamInTypeRequiredDescription
idpathstringyesProject ID

Request body: CreateItemType

StatusMeaningSchema
200The type, last in order and never the defaultItemTypeDef
400The key or name is not valid, or the key is usedErrorEnvelope
404Project not foundErrorEnvelope

DELETE /api/projects/{id}/types/{key}

ParamInTypeRequiredDescription
idpathstringyesProject ID
keypathstringyesThe type's key
merge_intoquerystringnoThe type the items of the deleted one move to; required while items use it.
StatusMeaningSchema
204The type is deleted and its items moved to merge_into—
400The default work type, or a merge into another level, cannot be doneErrorEnvelope
404Project or type not foundErrorEnvelope
409Items use the type and merge_into is not given (type_in_use)ErrorEnvelope

PATCH /api/projects/{id}/types/{key}

ParamInTypeRequiredDescription
idpathstringyesProject ID
keypathstringyesThe type's key

Request body: UpdateItemType

StatusMeaningSchema
200The type after the changeItemTypeDef
400The change breaks a rule of the catalogErrorEnvelope
404Project or type not foundErrorEnvelope
409The level cannot change while items use the type (type_in_use)ErrorEnvelope

Local Runner

GET /api/local-runner

the persisted preference, the live runtime state. Only mounted on a

StatusMeaningSchema
200Embedded-runner preference and runtime state—

PUT /api/local-runner

save the preference and start/stop the embedded runner to match,

Request body: UpdateLocalRunner

StatusMeaningSchema
204Preference saved and the runtime reconciled to match—

POST /api/local-runner/check-folder

what is at path; writes nothing.

Request body: FolderPath

StatusMeaningSchema
200Whether the path exists, is a directory, and its git factsFolderCheck
400The path is not absolute—
409The embedded runner is not configured—

POST /api/local-runner/init-folder

creates path and runs git init. An existing

Request body: FolderPath

StatusMeaningSchema
200Directory created and initialised as a git repository—
400The path is not absolute—
409The path exists and is not an empty directory, or the embedded runner is not configured—

POST /api/local-runner/test-run

runs the harness once on this machine from an empty

Request body: TestRun

StatusMeaningSchema
200The execution request that was queued—
409The embedded runner is not configured, not running or not enrolled—