Downloads a file from the sandbox workspace by path. Only available while the sandbox is running.
cURL
curl --request GET \ --url https://api.case.dev/agent/v1/chat/{id}/files/{filePath} \ --header 'Authorization: Bearer <token>'
"<string>"
API key starting with sk_case_
sk_case_
Chat session ID
File path relative to /workspace (e.g. "report.docx")
File contents
The response is of type file.
file
Was this page helpful?
Contact support