Skip to main content
Version: 2.0

Get session artifact raw bytes

GET 

/v2/agents/:agent_key/sessions/:session_key/artifacts/:artifact_id/content

Returns the raw bytes of an artifact. Unlike getSessionArtifact, which returns a JSON wrapper with base64-encoded data, this endpoint returns the file content as the response body. The response uses the artifact's own Content-Type. Use this endpoint to dereference an artifact URL as a binary download, for example with A2A FilePart.fileWithUri.

Request

Responses

The artifact bytes. Content-Type is the artifact's stored MIME type; a Content-Disposition header is set when an original filename is known.