Actions17
- Bucket Actions
- Object Actions
- Batch Operations Actions
Object → Download
AI-generatedSummary
Downloads a file from an R2 bucket.
Inputs
- bucketName (required) — The name of the R2 bucket to operate on.
- objectKey (required) — The key (path/filename) of the object in the bucket.
Output shape
A JSON object containing a success flag, object metadata, and binary download details.
The response includes success status, metadata, and a binary payload with data, MIME type, filename, and size; may include additional fields depending on the operation.
Examples
Example 1: Download a CSV report
Bucket Name: my-bucket; Object Key: reports/report-2024.csv