Skip to main content
GET
Retrieve the raw content of an artifact using either a session_id (for chat completions) or an execution_id (for agent executions), along with the object_id from the response. Artifacts are binary objects generated during agent interactions, such as images, videos, audio files, and documents.
For a comprehensive guide on working with artifacts, including usage patterns and examples, see the Artifacts Guide.

Query Parameters

Either session_id or execution_id must be provided, but not both. Use session_id for artifacts from chat completions and execution_id for artifacts from agent executions.

Object Reference Format

Object references follow the format: <type_prefix>_<6-digit-hex-string> (e.g., img_a1b2c3). The Python SDK provides convenience methods that automatically convert artifacts to the appropriate Python types.

Response

Returns the raw binary content of the artifact with the appropriate content type based on the artifact type.

Get Artifact by Session ID

Use session_id to retrieve artifacts from chat completion responses.

Get Artifact by Execution ID

Use execution_id to retrieve artifacts from agent execution responses.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

session_id
string | null

Session ID for the artifacts

execution_id
string | null

Execution ID for the artifacts

object_id
string | null

Object ID to retrieve a single artifact

filename
string | null

Workspace filename to retrieve a single artifact

limit
integer
default:100

Maximum number of items to return when listing

Required range: 1 <= x <= 1000
offset
integer
default:0

Number of items to skip when listing

Required range: x >= 0

Response

Successful Response