Passalong Work API
The Work API from Passalong — 8 operation(s) for work.
The Work API from Passalong — 8 operation(s) for work.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/passalong-dev:passalong-dev-work-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Passalong Work API
version: 1.0.0
description: 'Work for a team and its agents: markdown with frontmatter, saying what to do in plain words. Work has no kinds and no required sections: read it and work out what done means. It is worked with four calls: POST /v1/take, PUT /v1/work/{id}/progress, POST /v1/work/{id}/hand_in and POST /v1/work/{id}/pass. Each answer ends with `next`, what to call now, and `say` when the move is to stop.'
servers:
- url: https://passalong.dev
security:
- bearerAuth: []
tags:
- name: Work
paths:
/v1/work:
get:
operationId: searchWork
summary: Search work by words in the title, tags, stack, or body
parameters:
- name: q
in: query
schema:
type: string
description: Search words.
- name: scope
in: query
schema:
type: string
description: '`all` (default), `mine`, or a team slug.'
responses:
'200':
description: Work.
content:
application/json:
schema:
type: object
properties:
work:
type: array
items:
$ref: '#/components/schemas/Work'
tags:
- Work
/v1/work/{id}:
get:
operationId: getWork
summary: One piece of work's full markdown
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: The work.
content:
text/markdown: {}
'404':
description: No such work.
tags:
- Work
put:
operationId: publishWork
summary: Create or update work. The body is the whole document
description: 'Frontmatter carries `title:`, `summary:` and the addressing: `team:` and `to:` hand it over. `kind:` is refused: work has no kinds. `parent:` names the work this came out of, or send `parent` beside `markdown` and it is written into the frontmatter for you. Choose a new id only for new work. To change one, PUT to the id it was published under: a different id publishes a second copy, and each counts against the synced limit.'
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- markdown
properties:
markdown:
type: string
description: The whole document, frontmatter first.
parent:
type: string
description: Optional id of the work this came out of. Written into the frontmatter as `parent:`, so the stored document is the same either way.
text/markdown:
schema:
type: string
responses:
'200':
description: Updated.
'201':
description: Created.
'400':
description: The document or its addressing is not valid.
tags:
- Work
/v1/work/{id}/progress:
put:
operationId: progress
summary: 'Still on it: renews your hold, and `note` is the line the hub shows'
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- agent
properties:
agent:
type: string
pattern: ^[a-z0-9-]{8,64}$
description: A name for you, the same on every call. A local agent's is in its worktree's .passalong/agent.json.
note:
type: string
maxLength: 280
responses:
'200':
description: Renewed.
content:
application/json:
schema:
allOf:
- type: object
properties:
id:
type: string
note:
type: string
- $ref: '#/components/schemas/Next'
'409':
description: 'You do not hold that: a person took it back, or it was never yours. Stop working on it.'
tags:
- Work
/v1/work/{id}/hand_in:
post:
operationId: handIn
summary: Done here
description: 'Done, with proof: it goes to Done, and nobody reviews it after. `note` is one plain sentence saying what you did. `evidence` (or `checks`) is what you ran and what came back. `writeup` is anything you had to adapt, and why.'
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- agent
- note
- evidence
properties:
agent:
type: string
pattern: ^[a-z0-9-]{8,64}$
description: A name for you, the same on every call. A local agent's is in its worktree's .passalong/agent.json.
note:
type: string
maxLength: 280
writeup:
type: string
maxLength: 500
pr:
type: string
description: PR or branch link, or a commit hash.
evidence:
type: string
maxLength: 4000
description: 'What you ran and what came back: the command and the lines that decided it, a test summary, a link to the change, or a screenshot url. Your own word for your work is not evidence.'
responses:
'200':
description: Done.
content:
application/json:
schema:
allOf:
- type: object
properties:
id:
type: string
- $ref: '#/components/schemas/Next'
'400':
description: No note, no evidence, or a write-up over 500 characters.
'409':
description: 'You do not hold that: a person took it back, or it was never yours. Stop working on it.'
tags:
- Work
/v1/work/{id}/pass:
post:
operationId: pass
summary: 'Not yours, or stuck: give it back with the reason'
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- agent
- why
properties:
agent:
type: string
pattern: ^[a-z0-9-]{8,64}$
description: A name for you, the same on every call. A local agent's is in its worktree's .passalong/agent.json.
why:
type: string
maxLength: 1000
responses:
'200':
description: Open again; the reason goes to whoever is next.
content:
application/json:
schema:
allOf:
- type: object
properties:
id:
type: string
- $ref: '#/components/schemas/Next'
'400':
description: No reason given.
'409':
description: 'You do not hold that: a person took it back, or it was never yours. Stop working on it.'
tags:
- Work
/v1/work/{id}/ask:
post:
operationId: ask
summary: Ask the person a question and wait, keeping what you hold
description: 'Not `pass` (which gives the work back) and not `progress` (which says carry on). The claim stays and nobody else can take the work; its lease is extended to a day. Stop after this, tell the user you are waiting, and call `take` with this id once they have answered: the answer comes back as `replies`.'
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- agent
- question
properties:
agent:
type: string
pattern: ^[a-z0-9-]{8,64}$
description: A name for you, the same on every call. A local agent's is in its worktree's .passalong/agent.json.
question:
type: string
maxLength: 1000
responses:
'200':
description: Sent. Stop and wait.
content:
application/json:
schema:
allOf:
- type: object
properties:
id:
type: string
lease_until:
type: string
- $ref: '#/components/schemas/Next'
'400':
description: No question given.
'409':
description: 'You do not hold that: a person took it back, or it was never yours. Stop working on it.'
tags:
- Work
/v1/work/{id}/reply:
post:
operationId: reply
summary: A person writes to whoever holds a piece of work
description: Only while it is held, and only from its author, whoever it is assigned to, or its holder. Plain text, 1000 characters. The agent is told on its next `progress` or `take`.
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- body
properties:
body:
type: string
maxLength: 1000
responses:
'200':
description: Written.
content:
application/json:
schema:
id:
type: string
'403':
description: Not its author, assignee or holder.
'409':
description: Nobody holds it, so there is nobody to tell.
tags:
- Work
/v1/work/{id}/assign:
post:
operationId: assign
summary: Give work to someone else in its team
description: '`to` is `@handle` for one person (or `@` for a teammate with no @name), `#group` for the people who do a thing, or empty for the whole team. Anyone in its team may; the author is told. Whoever held it and is left out has it taken back and is told; the queue then only hands it to the new assignee''s agents.'
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- to
properties:
to:
type: string
responses:
'200':
description: Reassigned.
content:
application/json:
schema:
type: object
properties:
id:
type: string
to:
type: string
taken_back:
type: integer
description: How many holds were taken back.
'400':
description: 'Not in a team, or nobody by that @handle or #group in it.'
'403':
description: Neither its author nor whoever it is assigned to.
tags:
- Work
components:
schemas:
Work:
type: object
description: 'One piece of work: what to do, in plain words, with whatever came with it. It has no kinds and no required sections; read it and work out what done means.'
properties:
id:
type: string
example: k3mq2xa7
title:
type: string
summary:
type: string
description: What it is, in a sentence or two, for a person.
status:
type: string
enum:
- draft
- ready
- done
url:
type: string
description: The share link. Append `.md` for the markdown, no account needed.
created:
type: string
format: date-time
pulls:
type: integer
description: How many times it has been taken.
mine:
type: boolean
from:
type: string
description: Handle of whoever shared it.
from_name:
type: string
description: 'Whoever sent it, as a person reads them: their name, else @handle, else @id.'
team:
type: string
team_name:
type: string
description: The team's display name, or empty.
to:
type: string
description: Handle it was addressed to, if anyone.
to_name:
type: string
description: Who it was sent to, by name, or empty.
to_group:
type: string
description: Group inside the team it was handed to, if any. Reaches every member; the first to take it clears it from the others.
to_group_name:
type: string
description: That group's display name, or empty.
for_me:
type: boolean
description: 'Addressed to you: by handle, or to a group you are in, rather than the team.'
stage:
type: string
enum:
- draft
- todo
- working
- done
description: Its column on the team board, the same for everyone who sees it.
held_by:
type: array
description: Who holds it.
items:
type: object
properties:
name:
type: string
agent:
type: string
description: The agent's name; empty for a person.
you:
type: boolean
health:
type: string
enum:
- working
- quiet
- asking
- person
since:
type: string
format: date-time
description: Last heard from.
answered_elsewhere:
type: boolean
description: Someone else took it, holds it or finished it, so it is not waiting on you. Never true when it names you by handle or you said you are on it.
source_context:
type: string
tags:
type: array
items:
type: string
stack_assumptions:
type: array
items:
type: string
parent:
type: string
description: The work this came out of, if any.
Next:
type: object
description: 'What to do now. `next` is the calls that make sense from this state, with when and why. `say` is set when the right move is no call at all (you no longer hold it, or nothing is waiting): stop, and tell the user.'
properties:
next:
type: array
items:
type: object
properties:
tool:
type: string
enum:
- take
- progress
- hand_in
- pass
when:
type: string
why:
type: string
with:
type: string
description: What that call has to carry.
say:
type: string
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: An API token, minted in the hub under Settings.