{ "opencollection": "1.0.0", "info": { "name": "Cloudflare / Accounts Buckets API", "version": "4.0.0" }, "items": [ { "info": { "name": "Buckets", "type": "folder" }, "items": [ { "info": { "name": "Cloudflare List R2 Buckets", "type": "http" }, "http": { "method": "GET", "url": "https://api.cloudflare.com/client/v4/accounts/:account_id/r2/buckets", "params": [ { "name": "account_id", "value": "", "type": "path", "description": "The unique identifier of the Cloudflare account." }, { "name": "name_contains", "value": "example_value", "type": "query", "description": "Filter buckets by name substring." }, { "name": "start_after", "value": "example_value", "type": "query", "description": "Bucket name to start listing after for pagination." }, { "name": "per_page", "value": "10", "type": "query", "description": "Number of buckets per page." }, { "name": "cursor", "value": "example_value", "type": "query", "description": "Cursor for pagination." } ] }, "docs": "Returns a list of all R2 buckets for the account." }, { "info": { "name": "Cloudflare Create R2 Bucket", "type": "http" }, "http": { "method": "POST", "url": "https://api.cloudflare.com/client/v4/accounts/:account_id/r2/buckets", "params": [ { "name": "account_id", "value": "", "type": "path", "description": "The unique identifier of the Cloudflare account." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Create a new R2 storage bucket. Bucket names must be globally unique and between 3 and 63 characters." }, { "info": { "name": "Cloudflare Get R2 Bucket", "type": "http" }, "http": { "method": "GET", "url": "https://api.cloudflare.com/client/v4/accounts/:account_id/r2/buckets/:bucket_name", "params": [ { "name": "account_id", "value": "", "type": "path", "description": "The unique identifier of the Cloudflare account." }, { "name": "bucket_name", "value": "", "type": "path", "description": "The name of the R2 bucket." } ] }, "docs": "Retrieve details of a specific R2 bucket." }, { "info": { "name": "Cloudflare Delete R2 Bucket", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.cloudflare.com/client/v4/accounts/:account_id/r2/buckets/:bucket_name", "params": [ { "name": "account_id", "value": "", "type": "path", "description": "The unique identifier of the Cloudflare account." }, { "name": "bucket_name", "value": "", "type": "path", "description": "The name of the R2 bucket." } ] }, "docs": "Delete an R2 bucket. The bucket must be empty before it can be deleted." } ] } ], "bundled": true }