Download the raw binary content of an immutable artifact version.
Endpoint
GET /agents/sessions/{session_id}/artifacts/{artifact_id}/content
Downloads the raw content of the specified artifact. A successful call returns 200 and a binary stream.
Path parameterssession_idstring (required)Session that owns the artifactartifact_id string (required)Artifact version ID from the list responseNo request body. Accept: application/octet-stream can be sent. | Request example |
Response example
Content-Type set to application/octet-stream and includes an attachment filename. Common response headers:
| Header | Description |
|---|---|
Content-Type | application/octet-stream |
Content-Length | File size in bytes |
Content-Disposition | attachment and the filename |
Cache-Control | private, no-store |
Error codes
| HTTP status | Error type / code | Solution |
|---|---|---|
404 | not_found_error / not_found_error | Use an artifact ID that exists and has not been deleted in the current workspace |
{"error":{"type","code","message","param"}}. Gateway or routing errors can use a different structure. Keep the HTTP status, response headers, x-request-id, and artifact ID for troubleshooting.