Take the build packet of a Build Ready bundle, and record the handoff (REQ-136).
const url = 'https://example.com/api/v1/docs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/handoff';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"acknowledged":true,"label":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/docs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/handoff \ --header 'Content-Type: application/json' \ --data '{ "acknowledged": true, "label": "example" }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”The ID of one spec doc.
Request Body
Section titled “Request Body”object
Take the packet although the verdict is not Build Ready, or is stale. The handoff records the verdict it was taken at.
What the builder calls this work, such as a repo, a branch, or a ticket.
Examplegenerated
{ "acknowledged": true, "label": "example"}Responses
Section titled “ Responses ”The build packet.
What a coding agent needs to build one bundle (REQ-136).
object
The bundle slug.
The path of the main doc inside files.
The main doc and its assets.
object
The path in the bundle.
The file text, or base64 when encoding is base64.
The issues, pages, and code this doc links to (DEC-021). Speccy fetches no content for them.
object
The target as the doc writes it, such as github:acme/app#internal/pay.
For a code target, the commit the last review run read.
The main doc of each bundle this one links to.
object
The path the packet writes it at, such as links/payments-prd.md.
object
The line that defines the ID.
object
The answer the readers agreed on. Absent when they diverged, or when nobody could answer.
The re-entry prompt, as markdown. The agent owns it after the handoff.
Example
{ "files": [ { "encoding": "text" } ], "questions": [ { "result": "agree" } ]}default
Section titled “default”An error.
RFC 9457 problem details with a stable code.
object
A stable machine-readable error code.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": "example"}