List published versions
const url = 'https://shareout.site/v1/artifacts/example/versions';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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://shareout.site/v1/artifacts/example/versions \ --header 'Authorization: Bearer <token>'The 50 newest published versions, newest first, with who published each one, how (source), its change note (message / message_source), the size of its entrypoint, how many comment threads were written on it and who approved it. live_version_id is the version production serves. Viewer or above.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Artifact ID (e.g. art_abc123).
Responses
Section titled “Responses”Versions
object
object
How the version came to be; null on versions written before it was recorded.
Change note.
author when the publisher wrote it, ai when generated after publish (may appear a few seconds later).
Size of the entrypoint file.
Comment threads written while this version was live.
object
Example
{ "versions": [ { "source": "api", "message_source": "author" } ]}Access denied
object
Human-readable message.
Machine-readable error code.
Correlation id (also the X-Request-Id header). Quote it in support tickets.
Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.
What to do next, in plain words.
The request field at fault.
Doc page for this error.
Present on 5xx — how to reach a human.
object
Example
{ "success": false, "support": { "how": "POST /v1/support/tickets", "include": [ "request_id" ] }}Resource not found
object
Human-readable message.
Machine-readable error code.
Correlation id (also the X-Request-Id header). Quote it in support tickets.
Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.
What to do next, in plain words.
The request field at fault.
Doc page for this error.
Present on 5xx — how to reach a human.
object
Example
{ "success": false, "support": { "how": "POST /v1/support/tickets", "include": [ "request_id" ] }}