Cloudflare R2
S3-compatible object storage
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
AWS access keys
Your users enter
- Cloudflare account IDRequiredSubdomain
- Access key IDRequired
- Secret access keySecretRequired
Where to find them
- In the Cloudflare dashboard open “R2 Object Storage” → “Manage R2 API Tokens” → “Create API token”.
- Choose the permissions (object read, or read and write) and the buckets.
- Copy the “Access Key ID”, the “Secret Access Key” and the account ID (it appears in the S3 URL: https://<ID>.r2.cloudflarestorage.com).
Tools (2)
Cloudflare R2 API request
CLOUDFLARER2_SEND_REQUESTAuthenticated call to the Cloudflare R2 API (https://{account}.r2.cloudflarestorage.com). Any endpoint of the API is allowed. S3 API: GET / (buckets), GET /{bucket}?list-type=2&prefix=… (objects), GET /{bucket}/{key} (download), PUT /{bucket}/{key} with body_base64 (upload). Buckets in the EU jurisdiction: https://{account}.eu.r2.cloudflarestorage.com.
Required scopes
No scopes required
Input
Cloudflare R2 API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically. aws_servicestringAWS signing name (e.g. ec2, logs, ses) when it cannot be deduced from the host name aws_regionstringAWS region (e.g. eu-west-1) when it cannot be deduced from the host name Buckets
CLOUDFLARER2_LIST_BUCKETSList the R2 buckets (name and creation date).
Required scopes
No scopes required
Input
No input parameters.

