Get artifact files
const url = 'https://shareout.site/v1/artifacts/example/files';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/files \ --header 'Authorization: Bearer <token>'Fetch all files for an artifact version. Requires viewer access or higher.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Artifact ID (e.g. art_abc123).
Query Parameters
Section titled “Query Parameters”Version number or ID. Defaults to the latest.
Responses
Section titled “Responses”Files for the version
object
object
Relative path with “/” between folders. No “..”, no leading “/”, no backslash, no empty or “.” segments (e.g. “a//b”, “./x”), no control characters, at most 512 characters. An unsafe path is rejected with 400 INVALID_PATH; the hint names it.
Example
{ "files": [ { "path": "img/logo@2x.png", "encoding": "utf8" } ]}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" ] }}