Download media an agent delivered in the session [read]

Changed on

An image or file an agent posted in the session's transcript, which events carry as blob://assets/<asset_id>: the original bytes with their media type, as the web chat shows them. The asset must belong to the session's agent (or be the caller's own upload not yet adopted); anything else is 404.

get/sessions/{id}/assets/{asset_id}

Request

  • Base URL
    https://api.agentsky.dev/v1
  • URL
    https://api.agentsky.dev/v1/sessions/{id}/assets/{asset_id}
  • Auth
    HTTP bearer

Path parameters

idstring required

The session id

asset_idstring required

The id after blob://assets/

Response

The asset's bytes

Changes