Download File
Redirect (307) to a short-lived download URL for a ready file. The URL is valid for 5 minutes; request a new one each time. Send the API key only to the Hatz API, not to the download URL: with curl, read the redirect with -w '%{redirect_url}' and download it without the key, rather than using -L with the header.
Path Parameters
- Type: stringfile
_uuid requiredFile ID
Query Parameters
- Type: stringdisposition
attachment(default) to download, orinlineto display in a browser. Types that are unsafe to display are always sent as attachments.
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for get/files/{file_uuid} /content
curl 'https://ai.hatz.ai/v1/files/{file_uuid}/content?disposition=attachment' \
--header 'X-API-Key: YOUR_SECRET_TOKEN'
No Body