List the comment threads of a shared artifact (commenter and editor links).
const url = 'https://example.com/api/shares/example/comments';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/shares/example/commentsList the comment threads of a shared artifact (commenter and editor links).
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The share token
Query Parameters
Section titled “Query Parameters”The version to anchor on (default: the current one).
open (default) | resolved | all.
Page size, default 100, at most 200.
The previous page’s next_cursor (or a thread’s replies_next_cursor).
A root comment id: page that thread’s replies instead of the roots.
Responses
Section titled “Responses”The threads (commenter and editor)
GET /api/artifacts/documents/{id}/comments.
object
The counts of a document’s threads.
object
Open threads with no place on the version being viewed.
Pass as cursor for the next page of roots; null on the last page (#1624 S08).
A root comment with its replies.
object
None when the root has no anchor row on this version (written on a later one).
object
origin | exact | fuzzy | region_carry | page | none.
Where a comment points. The JSON field names are snake_case; they mirror the W3C
model’s refinedBy / conformsTo.
A quote of the text: exact with up to 64 characters of context either side.
object
A region in percent: of an image, or (with a region reference) of one element of a
design or page version: xywh=percent:x,y,w,h.
object
The legacy design-artboard name; a design write carries both through the
expand window, a page write only region_id, and a legacy-only write resolves
to the canonical name.
The canonical element id (a design artboard or a page data-sc-region).
A whole slide of a deck version.
object
An element of the running app on a live document: its route, the element, the
fractional position inside that element’s box, the viewport and theme it was seen
at, and the app role the reviewer was signed in as. Validated against its
document’s allowed origins by validate_live_element, never by the version gate.
object
The element an anchor names in the running app.
object
A fractional position inside the element’s box (0..1 on both axes).
object
The route an anchor sits on: an allowed origin plus a path pattern (never a query, fragment or concrete id).
object
The app role the reviewer is signed in as, and where the value came from.
object
Where the app role came from: the app showed it, or the reviewer declared it.
The theme the reviewer saw the app in.
The viewport the reviewer saw the app at.
object
anchored | orphaned.
One comment.
object
user | guest | agent.
The agent task the thread was delivered to, when it was (the root only).
not_applicable | held | awaiting_forward | pending | delivered | followup_*.
#1527 — the live.evidence/v1 attachment, when the comment carries one.
object
One console entry.
object
The console levels kept as evidence (a log or info line is not a defect signal).
One failed request, scrubbed to origin, method, path and status.
object
The HTTP status; 0 when no response arrived.
A masked screenshot: the artifact name and its size.
object
Always true on a stored evidence; a false value is refused.
One trail step: the action and the accessible target it happened on.
object
One step of the input trail; a typed value never has a field to live in.
True for a password / one-time-code field; those never carry a value either way.
The author is not a workspace member (a share recipient).
The viewer wrote this comment (they may delete it).
user | guest | agent — who resolved the thread (a reporter’s resolve is the
lifecycle’s confirmation).
The original anchor (None = page-level, and always on a reply).
A quote of the text: exact with up to 64 characters of context either side.
object
A region in percent: of an image, or (with a region reference) of one element of a
design or page version: xywh=percent:x,y,w,h.
object
The legacy design-artboard name; a design write carries both through the
expand window, a page write only region_id, and a legacy-only write resolves
to the canonical name.
The canonical element id (a design artboard or a page data-sc-region).
A whole slide of a deck version.
object
An element of the running app on a live document: its route, the element, the
fractional position inside that element’s box, the viewport and theme it was seen
at, and the app role the reviewer was signed in as. Validated against its
document’s allowed origins by validate_live_element, never by the version gate.
object
The element an anchor names in the running app.
object
A fractional position inside the element’s box (0..1 on both axes).
object
The route an anchor sits on: an allowed origin plus a path pattern (never a query, fragment or concrete id).
object
The app role the reviewer is signed in as, and where the value came from.
object
Where the app role came from: the app showed it, or the reviewer declared it.
The theme the reviewer saw the app in.
The viewport the reviewer saw the app at.
object
open | resolved (a root’s; a reply carries its root’s).
The version the comment was written on.
Pass with thread as cursor for this thread’s next replies; null when
replies holds them all (#1624 S08).
One comment.
object
user | guest | agent.
The agent task the thread was delivered to, when it was (the root only).
not_applicable | held | awaiting_forward | pending | delivered | followup_*.
#1527 — the live.evidence/v1 attachment, when the comment carries one.
object
One console entry.
object
The console levels kept as evidence (a log or info line is not a defect signal).
One failed request, scrubbed to origin, method, path and status.
object
The HTTP status; 0 when no response arrived.
A masked screenshot: the artifact name and its size.
object
Always true on a stored evidence; a false value is refused.
One trail step: the action and the accessible target it happened on.
object
One step of the input trail; a typed value never has a field to live in.
True for a password / one-time-code field; those never carry a value either way.
The author is not a workspace member (a share recipient).
The viewer wrote this comment (they may delete it).
user | guest | agent — who resolved the thread (a reporter’s resolve is the
lifecycle’s confirmation).
The original anchor (None = page-level, and always on a reply).
A quote of the text: exact with up to 64 characters of context either side.
object
A region in percent: of an image, or (with a region reference) of one element of a
design or page version: xywh=percent:x,y,w,h.
object
The legacy design-artboard name; a design write carries both through the
expand window, a page write only region_id, and a legacy-only write resolves
to the canonical name.
The canonical element id (a design artboard or a page data-sc-region).
A whole slide of a deck version.
object
An element of the running app on a live document: its route, the element, the
fractional position inside that element’s box, the viewport and theme it was seen
at, and the app role the reviewer was signed in as. Validated against its
document’s allowed origins by validate_live_element, never by the version gate.
object
The element an anchor names in the running app.
object
A fractional position inside the element’s box (0..1 on both axes).
object
The route an anchor sits on: an allowed origin plus a path pattern (never a query, fragment or concrete id).
object
The app role the reviewer is signed in as, and where the value came from.
object
Where the app role came from: the app showed it, or the reviewer declared it.
The theme the reviewer saw the app in.
The viewport the reviewer saw the app at.
object
open | resolved (a root’s; a reply carries its root’s).
The version the comment was written on.
Example
{ "threads": [ { "anchor": { "selector": { "type": "TextQuoteSelector" } }, "replies": [ { "evidence": { "console": [ { "level": "error" } ], "trail": [ { "action": "click" } ] }, "selector": { "type": "TextQuoteSelector" } } ], "root": { "evidence": { "console": [ { "level": "error" } ], "trail": [ { "action": "click" } ] }, "selector": { "type": "TextQuoteSelector" } } } ]}A viewer share
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}Unknown, revoked, expired or not for this person
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}