Retrieve metadata for a single immutable artifact version.
Endpoint
GET /agents/sessions/{session_id}/artifacts/{artifact_id}
Returns metadata for the specified artifact. A successful call returns 200 and does not return file content.
Path parameters
| Field | Required | Type | Description |
|---|---|---|---|
session_id | Yes | string | Session that owns the artifact |
artifact_id | Yes | string | Artifact version ID from the list response, not a file_id or snapshot ID |
Request example
Response example
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Artifact version ID, not a file_id |
object | string | Artifact object type, fixed as agent.session.artifact |
session_id | string | Owning session |
environment_id | string | Source environment |
turn_id | string | Source turn |
path | string | Full sandbox path when the artifact was generated |
size_bytes | integer | File size in bytes |
created_at | integer | Creation time, Unix seconds |
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 errors can use a different structure.