Skip to content

Get artifact files

GET
/v1/artifacts/{id}/files
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.

id
required
string

Artifact ID (e.g. art_abc123).

version
string

Version number or ID. Defaults to the latest.

Files for the version

Media type application/json
object
artifact_id
string
version_id
string
files
Array<object>
object
path
required
string
content
required
string
mime
string
encoding
string
Allowed values: utf8 base64
size_bytes
integer
Example
{
"files": [
{
"encoding": "utf8"
}
]
}

Resource not found

Media type application/json
object
success
required
boolean
error
required

Human-readable message.

string
code
required

Machine-readable error code.

string
Example
{
"success": false
}