Cloudflare R2 Storage icon

Cloudflare R2 Storage

Interact with Cloudflare R2 object storage. Upload, download, manage files and buckets. Supports batch operations, multipart uploads, and can be used as a tool by AI Agents.

Bucket → Create

AI-generated

Summary

Create a new R2 bucket

Inputs

  • bucketName (required) — The name of the R2 bucket. Must be unique across all of Cloudflare R2.
  • location — Optional location hint for the bucket (e.g., Automatic, ENAM, WNAM, EEUR, APAC).

Output shape

bucket object returned by Cloudflare R2

The response contains the created bucket details; success is indicated by a non‑error result.

Examples

Example 1: Create a bucket with an explicit location

bucketName: my-r2-bucket, location: Europe (EEUR)

Example 2: Create a bucket with automatic location

bucketName: my-r2-bucket, location: Automatic

Discussion