The slice of the spec one work item builds, at the version it was pushed from.
const url = 'https://example.com/api/v1/work-items?ref=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/work-items?ref=example'Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”The work item’s Speccy URL, its tracker issue URL or key, or bundle/item.
Responses
Section titled “ Responses ”The work item packet.
The slice of the spec one work item builds. A builder reads it.
object
object
Bundle/item, which get_work_item takes.
The section the item is anchored on, when the doc has no trace IDs.
object
The slug of the linked spec doc the quote comes from. Absent for this doc.
The agreed build answers for the item’s trace IDs and sections.
object
object
The tracker’s ID for the person or the agent.
object
The tracker’s ID for the person or the agent.
What a newer doc version changed in this item.
object
False when the item changed after the readers read it.
object
The doc version the issue was pushed from.
The doc version the item was pushed from, or the breakdown’s version for an unpushed item.
The doc has a newer version than the pinned one. Ask the author before building from it.
The verdict at the handoff.
The doc text at the pinned version.
object
The path the packet writes it at, such as links/payments-prd.md.
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.
Example
{ "item": { "assignee": { "kind": "person" }, "effective_assignee": { "kind": "person" }, "issue": { "tracker": "linear" } }}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"}