Skip to content

Where a page's data comes from

GET
/v1/artifacts/{id}/sources
curl --request GET \
--url https://shareout.site/v1/artifacts/example/sources \
--header 'Authorization: Bearer <token>'

The data sources of the page’s live version — what the viewer’s Data pill shows. Open to anyone who can view the page, through the page’s own gate (everyone else gets 404); anonymous callers are rate-limited. Editors get access: full, others a summary; scoped is true when a row policy limits what this caller sees.

id
required
string

Artifact ID (e.g. art_abc123).

page
string

A page path of a multi-page site; default the entry page.

version
string

Another version’s id (editors only, else 403 FORBIDDEN).

{ artifact_id, version: { id?, number, page }, access: full | summary, scoped, sources: [...] }

Access denied

Media typeapplication/json
object
success
required
boolean
error
required

Human-readable message.

string
code
required

Machine-readable error code.

string
request_id

Correlation id (also the X-Request-Id header). Quote it in support tickets.

string
reason

Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.

string
hint

What to do next, in plain words.

string
suggestion
string
param

The request field at fault.

string
docs

Doc page for this error.

string
redirect_url
string
support

Present on 5xx — how to reach a human.

object
how
string
include
Array<string>

Example

{
"success": false,
"support": {
"how": "POST /v1/support/tickets",
"include": [
"request_id"
]
}
}

NOT_FOUND, VERSION_NOT_FOUND (no published version) or PAGE_NOT_FOUND (no page with that path).

Media typeapplication/json
object
success
required
boolean
error
required

Human-readable message.

string
code
required

Machine-readable error code.

string
request_id

Correlation id (also the X-Request-Id header). Quote it in support tickets.

string
reason

Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.

string
hint

What to do next, in plain words.

string
suggestion
string
param

The request field at fault.

string
docs

Doc page for this error.

string
redirect_url
string
support

Present on 5xx — how to reach a human.

object
how
string
include
Array<string>

Example

{
"success": false,
"support": {
"how": "POST /v1/support/tickets",
"include": [
"request_id"
]
}
}