Clatter LabsHelp Center

How do I download one file from my code without the whole zip?

How-toUpdated

If the file is in the bucket's code tree (unpacked from a zip, up to 2 MB per file):

curl "$CB/v1/buckets/BUCKET_ID/files/src/index.ts?download=1" \
  -H "Authorization: Bearer $CLATTER_API_KEY" -H "X-Clatter-Account: $CLATTER_ACCOUNT_ID" -o index.ts

URL-encode each path segment. Without download=1 you get JSON with the content and a detected language. Files bigger than 2 MB stay in the zip; download the zip to get them.

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.xyz
For deleting your whole account or the data of one service.