Download one file from an agent's disk

Streams a file's bytes — text or binary, any size the account can hold — with its own content type for known extensions and application/octet-stream otherwise. This is the route a file link in an agent's reply resolves to. The disk is served directly, so an idle agent's files are downloadable with no running pod.

get/v1/agents/{agentID}/files/download

Request

  • Base URL: https://api.plori.ai
  • URL: https://api.plori.ai/v1/agents/{agentID}/files/download
  • Auth: HTTP bearer

Path parameters

agentIDstring uuid required

Query parameters

pathstring required

The file's path in the Workspace files, rooted at the Workspace root.

Response

The file's bytes. Content-Disposition is always an attachment, and X-File-Size carries the size the disk reported before the stream started.

Changes

No recorded changes to this operation across all 1 revision of this API.