Cloudflare R2 · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Cloudflare R2 Cloudflare R2 Object API

6 actions 6 updates phrasing extends openapi/cloudflare-r2-r2-object-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Cloudflare R2's API. It is a proposal applied on top of the contract, not a document Cloudflare R2 publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 6

$.info
$.paths['/accounts/{account_id}/r2/buckets/{bucket_name}/objects'].get
$.paths['/accounts/{account_id}/r2/buckets/{bucket_name}/objects'].delete
$.paths['/accounts/{account_id}/r2/buckets/{bucket_name}/objects/{object_key}'].get
$.paths['/accounts/{account_id}/r2/buckets/{bucket_name}/objects/{object_key}'].put
$.paths['/accounts/{account_id}/r2/buckets/{bucket_name}/objects/{object_key}'].delete

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for Cloudflare R2 Cloudflare R2 Object API
  version: 1.0.0
extends: openapi/cloudflare-r2-r2-object-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-17'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 5
- target: $.paths['/accounts/{account_id}/r2/buckets/{bucket_name}/objects'].get
  update:
    x-apievangelist-phrasing:
      intent: List objects in an R2 bucket
      effect: read
      questions:
      - Which files are stored in my R2 bucket?
      - Can I list only the objects whose keys start with a prefix?
      instructions:
      - text: List the objects in bucket {bucket_name} on account {account_id}.
        slots:
          bucket_name: path.bucket_name
          account_id: path.account_id
      - text: List objects in {bucket_name} on account {account_id} whose keys start with {prefix}.
        slots:
          bucket_name: path.bucket_name
          account_id: path.account_id
          prefix: query.prefix
      method: generated
      generated: '2026-11-17'
- target: $.paths['/accounts/{account_id}/r2/buckets/{bucket_name}/objects'].delete
  update:
    x-apievangelist-phrasing:
      intent: Bulk delete R2 objects by key list or prefix
      effect: destructive
      questions:
      - How do I delete many objects from an R2 bucket in one request?
      - Can I wipe every object under a key prefix in a bucket with one call?
      - What happens when I delete by prefix instead of sending a list of keys?
      instructions:
      - text: Bulk delete the listed objects from bucket {bucket_name} on account {account_id}.
        slots:
          bucket_name: path.bucket_name
          account_id: path.account_id
      - text: Start a prefix-delete job removing everything under {prefix} in bucket {bucket_name} on account {account_id}.
        slots:
          prefix: query.prefix
          bucket_name: path.bucket_name
          account_id: path.account_id
      - text: Bulk delete objects from bucket {bucket_name} in account {account_id} within jurisdiction {jurisdiction}.
        slots:
          bucket_name: path.bucket_name
          account_id: path.account_id
          jurisdiction: header.cf-r2-jurisdiction
      method: generated
      generated: '2026-11-17'
- target: $.paths['/accounts/{account_id}/r2/buckets/{bucket_name}/objects/{object_key}'].get
  update:
    x-apievangelist-phrasing:
      intent: Download an object from an R2 bucket
      effect: read
      questions:
      - How do I download a file from my R2 bucket?
      - Can I fetch an R2 object only if it changed since a given date?
      instructions:
      - text: Get object {object_key} from bucket {bucket_name} on account {account_id}.
        slots:
          object_key: path.object_key
          bucket_name: path.bucket_name
          account_id: path.account_id
      - text: Download {object_key} in {bucket_name} on account {account_id}.
        slots:
          object_key: path.object_key
          bucket_name: path.bucket_name
          account_id: path.account_id
      method: generated
      generated: '2026-11-17'
- target: $.paths['/accounts/{account_id}/r2/buckets/{bucket_name}/objects/{object_key}'].put
  update:
    x-apievangelist-phrasing:
      intent: Upload an object to an R2 bucket
      effect: write
      questions:
      - How do I upload a file to an R2 bucket?
      - What is the maximum size of an object I can upload this way?
      instructions:
      - text: Upload {object_key} to bucket {bucket_name} on account {account_id}.
        slots:
          object_key: path.object_key
          bucket_name: path.bucket_name
          account_id: path.account_id
      - text: Put {object_key} in {bucket_name} on account {account_id} with storage class {storage_class}.
        slots:
          object_key: path.object_key
          bucket_name: path.bucket_name
          account_id: path.account_id
          storage_class: header.cf-r2-storage-class
      method: generated
      generated: '2026-11-17'
- target: $.paths['/accounts/{account_id}/r2/buckets/{bucket_name}/objects/{object_key}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete one object from an R2 bucket
      effect: destructive
      questions:
      - How do I delete a single file from an R2 bucket?
      - Can I remove one object by its key?
      instructions:
      - text: Delete object {object_key} from bucket {bucket_name} on account {account_id}.
        slots:
          object_key: path.object_key
          bucket_name: path.bucket_name
          account_id: path.account_id
      - text: Remove {object_key} in {bucket_name} on account {account_id}.
        slots:
          object_key: path.object_key
          bucket_name: path.bucket_name
          account_id: path.account_id
      method: generated
      generated: '2026-11-17'

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/cloudflare-r2-r2-object-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.