Skip to content
Maua.Culturewire

Cloudflare R2

S3-compatible object storage

Developer toolsCatalog2 tools · 0 triggers

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

    1. In the Cloudflare dashboard open “R2 Object Storage” → “Manage R2 API Tokens” → “Create API token”.
    2. Choose the permissions (object read, or read and write) and the buckets.
    3. Copy the “Access Key ID”, the “Secret Access Key” and the account ID (it appears in the S3 URL: https://<ID>.r2.cloudflarestorage.com).

    Get credentials (opens in a new tab)

Tools (2)

  • Cloudflare R2 API requestCLOUDFLARER2_SEND_REQUEST

    Authenticated 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
    NameTypeDescription
    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
  • BucketsCLOUDFLARER2_LIST_BUCKETS

    List the R2 buckets (name and creation date).

    Required scopes

    No scopes required

    Input

    No input parameters.