Artifacts
Get Artifact
Retrieve an artifact by session ID or execution ID.
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
Usesession_id to retrieve artifacts from chat completion responses.
Get Artifact by Execution ID
Useexecution_id to retrieve artifacts from agent execution responses.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Session ID for the artifacts
Execution ID for the artifacts
Object ID to retrieve a single artifact
Workspace filename to retrieve a single artifact
Maximum number of items to return when listing
Required range:
1 <= x <= 1000Number of items to skip when listing
Required range:
x >= 0Response
Successful Response