Download a file from the session's workspace [read]
Changed onReturns the raw file bytes as an attachment. Limited to 1 MB. Binary files are supported. Content-Type is inferred from the file extension. Returns 400 not_a_file for directories, 413 file_too_large when over the cap, 403 path_escape for symlink escapes, 409 session_parked when the pod is not running.
get/sessions/{id}/workspace/files/content
Request
- Base URLhttps://api.agentsky.dev/v1
- URLhttps://api.agentsky.dev/v1/sessions/{id}/workspace/files/content
- AuthHTTP bearer
Path parameters
idstring required
The session id
Query parameters
pathstring required
Relative or absolute path to the file under workspace root
Response
File contents
Changes
- info
endpoint added
- info