Say you are doing it, and get it: work by id, or the next one waiting.

Changed on

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.

post/v1/take

Request

  • Base URL
    https://passalong.dev
  • URL
    https://passalong.dev/v1/take
  • Auth
    HTTP bearer

Request body

agentstring required

A name for you, the same on every call. A local agent's is in its worktree's .passalong/agent.json.

idstring

The work to take. Leave out for the next one.

repostring

owner/repo you are in; omit for no repo.

hoststring
worktreestring
anyboolean

Work for another repo. Only when asked to.

Response

What you now hold, with its markdown — or null — and what to call next.

saystring

Changes

    • warning

      removed the optional property / from the response with the status

    • info

      added the optional property / to the response with the status