Retrieve an artifact by session ID or execution ID.
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
object_id | string | Yes | Object ID for the artifact (format: <type>_<6-hex-chars>, e.g., img_a1b2c3) |
session_id | string | No | Session ID from chat completions (mutually exclusive with execution_id) |
execution_id | string | No | Execution ID from agent executions (mutually exclusive with session_id) |
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.<type_prefix>_<6-digit-hex-string> (e.g., img_a1b2c3).
| Artifact Type | Prefix | Reference Type | Python Return Type |
|---|---|---|---|
| Image | img_ | ImageRef | PIL.Image.Image |
| Video | vid_ | VideoRef | Path (mp4) |
| Audio | aud_ | AudioRef | Path (mp3) |
| Document | doc_ | DocumentRef | Path (pdf) |
| Reconstruction | recon_ | ReconRef | Path (spz) |
| URL | url_ | UrlRef | Path (any of the above) |
| Array | arr_ | ArrayRef | np.ndarray |
session_id to retrieve artifacts from chat completion responses.
execution_id to retrieve artifacts from agent execution responses.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Object ID for the artifact
Session ID for the artifact
Execution ID for the artifact
Successful Response