A lifecycle rule deleted an object
Start a workflow when R2 automatically removes an object under a lifecycle rule. Use the bucket and key to record which file expired.
Cloud storage
Manage buckets and objects, create signed links, and start workflows from R2 object events.
Start a workflow
Choose what starts your automation.
Start a workflow when R2 automatically removes an object under a lifecycle rule. Use the bucket and key to record which file expired.
Start a workflow when R2 assembles the uploaded parts into a complete object. Use its bucket and key to process the finished file.
Start a workflow when R2 creates a copy in the selected bucket. Use the new object’s key to track or process the copy.
Start a workflow when an explicit delete operation removes an object from the selected bucket. Use its key to update a file index or notify its owner.
Start a workflow when a file is written to the selected bucket in a single upload. Use the object key to find the new or updated file.
Then take action
Choose what your workflow does in Cloudflare R2.
Group sampled R2 requests to compare storage operations over a selected period.
Group sampled requests to the R2 Data Catalog’s Iceberg interface to understand how tables are being accessed.
Group sampled query requests to see when and how R2 SQL is being used.
Group sampled storage measurements to see how the amount of data in R2 changes over time.
Compare sampled measurements for maintenance work such as compacting tables and expiring snapshots.
Register a hostname through the older R2 interface. Its existing access setting determines whether it can serve files.
List stored files and their metadata. Use a key prefix to narrow the results to a folder or group of objects.
Find buckets in the selected account and jurisdiction and page through the results.
Discard uploaded parts and end an unfinished upload through the S3-compatible interface.
Choose whether R2 initially writes object data near the uploading client.
Enable or disable public access through the bucket’s managed development domain.
Choose the storage class R2 should use for future uploads to this bucket.
Look up a bucket job by ID to see its current status and progress.
Look up the configuration and status of a custom hostname attached to the bucket.
Send a metadata-only request to find out whether the bucket is reachable with the selected credentials.
Read storage metrics across the account’s buckets for a high-level usage report.
Read the bucket’s server-side encryption configuration through the S3-compatible interface.
See whether R2 accepts writes near the uploading client for this bucket.
Inspect the Sippy configuration that tells R2 where to fetch objects missing from the bucket.
See whether the bucket is publicly reachable through Cloudflare’s managed development domain.
Start with a published template and adapt it to your work.
Sign a CSR for a configured origin hostname and save the signed PEM in R2 under its serial number.
Capture the published WordPress permalink and save its rendered Markdown and desktop screenshot together in an R2 bucket.
Save a dated BIND zone file in a private R2 bucket.
Record the object key from an R2 upload in KV and let your release channel know which file arrived.
Export a selected prefix with binary values, metadata and absolute expiry times.
Export database schema and data as SQL and save a dated copy in the selected R2 bucket.
Save each message body as a JSON file in the chosen R2 bucket, with a distinct object key for each queue and message.
When a video arrives in a selected R2 bucket, create a temporary download URL and submit it to Stream for encoding.
Create a review card with a one-hour signed download link.
Post a daily report of object counts and bytes in one selected R2 bucket, grouped by storage class.
Send a bucket, object key and Dropbox path to copy the original bytes.
When an R2 multipart upload finishes, archive the assembled file in Dropbox within the FastHook file transfer limit.
Send the bucket, object key and deletion time to your operations channel.
Record the destination bucket, new object key and original key for each R2 copy.
Connect Cloudflare R2 Enter your account ID and an API token that can list buckets. Grant the permissions required for each management action.
Connect S3-compatible storage For S3 actions and signed links, enter an R2 access key ID and secret access key. Select the jurisdiction of your bucket.
Receive object events Send bucket notifications to a dedicated Cloudflare Queue. Forward each message body to the FastHook callback with the shared secret in the x-r2-notification-secret header.