Skip to main content
GET
Retrieve an artifact

Authorizations

Authorization
string
header
required

A gbr_pat_ access token. Scopes are recorded on the token when it is minted.

Response

Retrieve one artifact's metadata.

An immutable copy of a file a turn published. Survives the sandbox being paused or reclaimed.

object
string
required

Always artifact. Names the shape, so a value can be identified without knowing which call returned it.

Allowed value: "artifact"
id
string
required

Ours. Use it to fetch the bytes.

session_id
string
required

The session that produced it.

turn_id
string
required

The turn that published it.

path
string
required

Where it was in the workspace when it was published.

size_bytes
integer
required

Of the stored copy.

content_type
string

Guessed from the path. application/octet-stream when unrecognised.

created_at
integer

Unix milliseconds, when it was published.