How do I download a file from a bucket?
curl -OJ "https://api.codebuckets.clatterlabs.xyz/v1/buckets/BUCKET_ID/objects/OBJECT_ID/content" \
-H "Authorization: Bearer $CLATTER_API_KEY" \
-H "X-Clatter-Account: $CLATTER_ACCOUNT_ID"
- Returns the original bytes, decrypted, with
Content-Disposition: attachmentandContent-Length. - Needs
buckets:read. - Works for objects up to 1 GB. Bigger files answer
413 use_chunks; download them chunk by chunk. - Costs 1 token per request plus 1 per MiB.
In the Console, open the bucket's files and download from there.
Learn more#
Related articles
Still need help?
Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.
Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyzFor deleting your whole account or the data of one service.