These routes serve the work views. Every route here is on the people socket. A route that names a task, run or session answers 404 when the person cannot see it.
| Method |
Path |
What it does |
POST |
/v1/tasks |
Starts a task, or saves a draft when the body has draft: true. The body holds title, instructions, agentId, repoIds or a single repoId, and optionally conversationId, messageId, projectId and attachmentIds. A draft takes no attachments. |
GET |
/v1/tasks/ready |
Lists what is ready to start and what is held, among the team’s shared tasks. |
POST |
/v1/tasks/<id>/done |
Marks a task done. |
POST |
/v1/tasks/<id>/reopen |
Reopens a done task. |
POST |
/v1/tasks/<id>/hold |
Pauses a task on purpose, with the kind of wait, the reason and until when. |
POST |
/v1/tasks/<id>/unhold |
Lifts a hold. |
POST |
/v1/tasks/<id>/priority |
Sets a task’s priority. |
POST |
/v1/tasks/<id>/blockers |
Blocks a task on another of the team’s tasks. |
POST |
/v1/tasks/<id>/blockers/<blocker id>/remove |
Removes a blocker. |
POST |
/v1/tasks/<id>/pull-requests |
Pushes the task’s branches and opens a pull request for each repo with commits. |
POST |
/v1/tasks/<id>/edit |
Edits a draft task. |
POST |
/v1/tasks/<id>/start |
Starts a draft task. |
POST |
/v1/tasks/<id>/discard |
Discards a draft task. |
POST |
/v1/sessions/<id>/messages |
Posts a message to a task’s session. The body holds text and attachmentIds. |
| Method |
Path |
What it does |
POST |
/v1/tasks/attempts |
Starts a task whose attempts each wait for a coding computer. |
GET |
/v1/tasks/<id>/attempts |
Lists a task’s attempts with their lines and totals. |
POST |
/v1/tasks/<id>/attempts/<number>/pick |
Picks an attempt. |
POST |
/v1/tasks/<id>/attempts/<number>/discard |
Discards an attempt. |
POST |
/v1/tasks/<id>/attempts/<number>/restart |
Restarts a discarded or failed attempt as a new attempt, numbered next, and answers its n. Answers 409 for a picked or open attempt, one restarted already, or a task at its 8. |
GET |
/v1/coding |
Reads the team’s pool of coding computers. |
| Method |
Path |
What it does |
POST |
/v1/projects |
Creates a project. |
POST |
/v1/projects/<id>/repos |
Adds a repo to a project. |
POST |
/v1/projects/<id>/delete |
Deletes a project, for an admin or the person who made it. Answers { "already": true } when it was deleted before. |
POST |
/v1/repo-requests/<id>/retry |
Tries again a request to make a repo on GitHub. |
GET |
/v1/repos |
Lists every repo of the team with what its forge says is open on it. |
GET |
/v1/pulls/repos |
Answers the text an agent’s list_repos tool reads, in answer. |
GET |
/v1/pulls |
Answers the text an agent’s list_pull_requests tool reads, in answer, for every repo or the one repo names. |
GET |
/v1/pulls/<n> |
Answers the text an agent’s read_pull_request tool reads, in answer, for the pull request repo and its number name, with file and from as the tool takes them. |
GET |
/v1/github |
Reads whether GitHub is set up and the person’s own sign-in. Never a token. |
POST |
/v1/github/sign-in |
Starts GitHub’s device flow. The answer holds the code the person enters on GitHub. |
POST |
/v1/github/sign-out |
Signs the person out of GitHub. |
POST |
/v1/github/token |
Saves the team’s fine-grained personal access token. Admins only. |
| Method |
Path |
What it does |
POST |
/v1/artifacts/<id>/comments |
Adds a comment to a document. Answers commentId. |
POST |
/v1/comments/<id>/resolve |
Resolves a comment. |
GET |
/v1/artifacts/<id>/versions/<number>/diff |
Reads what changed in a document from the version before. The number is 2 or more. |
GET |
/v1/artifacts/<id>/versions/<number>/image |
Serves a stored image version. |
GET |
/v1/artifacts/<id>/versions/<number>/file |
Serves a stored PDF, audio, video or Office file version. Office files download. |
GET |
/v1/artifacts/<id>/versions/<number>/page |
Serves a text version whose path ends in .html or .htm as a sandboxed page. |
| Method |
Path |
What it does |
POST |
/v1/pipelines/<id>/runs |
Starts a run by hand. The body holds repoId, title and optionally body. Answers runId. Answers 409 while the pipeline has no approved version. |
GET |
/v1/pipeline-versions |
Answers the text an agent’s list_pipeline_versions tool reads, in answer: each pipeline’s current version, who approved it, and the version that waits, for every pipeline or the one pipeline names. |
POST |
/v1/pipeline-versions/approve |
Approves the version on the pipeline’s default branch, for a team admin or the pipeline’s shepherd, and makes it current. The body holds pipeline and version, 8 to 40 characters of its git sha. Answers the pipeline, the version, who approved it and already, true when it was approved and current before. |
POST |
/v1/pipeline-versions/replay |
Replays a version that waits for approval against the pipeline’s current version and its latest finished runs, at once, for a team admin or the pipeline’s shepherd, which approving it needs. The body holds pipeline and version, as for approving. Answers the pipeline, the version, the replay and already, true when it was replayed against the current version before. |
POST |
/v1/runs/<id>/pause |
Pauses a run, with an optional note. |
POST |
/v1/runs/<id>/resume |
Resumes a paused run. |
POST |
/v1/runs/<id>/cancel |
Cancels a run. |
POST |
/v1/hunks/<id>/decision |
Keeps or turns down one hunk of a coach proposal at its gate. decision is accept, or reject with a reason. |
GET |
/v1/obligations |
Lists the promises made outside Agents that are still open, due soonest first. |
POST |
/v1/obligations/<id>/waive |
Lets a promise go, by name, with a reason. |
A stored version never changes, so the three version routes answer with cache-control: private, max-age=31536000, immutable and x-content-type-options: nosniff. The served media types are PNG, JPEG, WebP and GIF images, PDF, MP4 and WebM video, MP3, WAV and WebM audio, and Word, Excel and PowerPoint files.