Downloads a file from a vault. Returns the actual file content as a binary stream with appropriate headers for file download. Useful for retrieving contracts, depositions, case files, and other legal documents stored in your vault.
cURL
curl --request GET \ --url https://api.case.dev/vault/{id}/objects/{objectId}/download \ --header 'Authorization: Bearer <token>'
"<string>"
API key starting with sk_case_
sk_case_
Vault ID
Object ID within the vault
File downloaded successfully
The response is of type file.
file
Was this page helpful?