Passalong Take API

The Take API from Passalong — 1 operation(s) for take.

GitHub OpenAPI

Operations 1

POST /v1/take Say you are doing it, and get it: work by id, or the next one waiting #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/passalong-dev:passalong-dev-take-api"
All apis
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.

Get an API 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 Specification

passalong-dev-take-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Passalong Take 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: Take
paths:
  /v1/take:
    post:
      operationId: take
      summary: 'Say you are doing it, and get it: work by id, or the next one waiting'
      description: 'While you hold it nobody else can take it. You may hold several: taking what you hold resumes it. When somebody else has it the 409 names them in `holder`: tell the user rather than doing the work twice. With no id, the next ready work for `repo`, or `work: null` and `say` when nothing is waiting.'
      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.
                id:
                  type: string
                  description: The work to take. Leave out for the next one.
                repo:
                  type: string
                  description: owner/repo you are in; omit for no repo.
                host:
                  type: string
                worktree:
                  type: string
                any:
                  type: boolean
                  description: Work for another repo. Only when asked to.
      responses:
        '200':
          description: What you now hold, with its markdown, or null, and what to call next.
          content:
            application/json:
              schema:
                allOf:
                - type: object
                  properties:
                    work:
                      oneOf:
                      - type: object
                        properties:
                          id:
                            type: string
                          title:
                            type: string
                          markdown:
                            type: string
                          resumed:
                            type: boolean
                          lease_until:
                            type: string
                            format: date-time
                      - type: 'null'
                - $ref: '#/components/schemas/Next'
        '400':
          description: No `agent`, or work taken from outside the repo it is for.
        '404':
          description: No such work that you can see.
        '409':
          description: Somebody has it here (`holder` says who), you already hold something else, or it is a draft, blocked or done.
      tags:
      - Take
components:
  schemas:
    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.