Cloudflare R2 · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Cloudflare R2 S3-Compatible Objects API

7 actions 7 updates phrasing extends openapi/cloudflare-r2-objects-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 7

$.info
$.paths['/{bucket}'].get
$.paths['/{bucket}/{key}'].get
$.paths['/{bucket}/{key}'].put
$.paths['/{bucket}/{key}'].delete
$.paths['/{bucket}/{key}'].head
$.paths['/{bucket}?delete'].post

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 S3-Compatible Objects API
  version: 1.0.0
extends: openapi/cloudflare-r2-objects-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: 6
- target: $.paths['/{bucket}'].get
  update:
    x-apievangelist-phrasing:
      intent: List objects in a bucket
      effect: read
      questions:
      - How do I see every file in an R2 bucket?
      - Can I list only the objects whose keys start with a prefix?
      instructions:
      - text: List objects in bucket {bucket}.
        slots:
          bucket: path.bucket
      - text: List objects in {bucket} whose keys start with {prefix}, up to {max-keys}.
        slots:
          bucket: path.bucket
          prefix: query.prefix
          max-keys: query.max-keys
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{bucket}/{key}'].get
  update:
    x-apievangelist-phrasing:
      intent: Download an object
      effect: read
      questions:
      - How do I download a file from an R2 bucket?
      - Can I fetch only part of an object with a byte range?
      - Is it possible to download an object only if its ETag matches?
      instructions:
      - text: Download object {key} from bucket {bucket}.
        slots:
          key: path.key
          bucket: path.bucket
      - text: Get the first {range} bytes of {key} in {bucket}.
        slots:
          range: header.Range
          key: path.key
          bucket: path.bucket
      - text: Download {key} from {bucket} only if its ETag is {etag}.
        slots:
          key: path.key
          bucket: path.bucket
          etag: header.If-Match
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{bucket}/{key}'].put
  update:
    x-apievangelist-phrasing:
      intent: Upload an object
      effect: write
      questions:
      - How do I upload a file to an R2 bucket?
      - Can I set the content type and metadata when uploading an object?
      - Is it possible to copy an object server-side instead of uploading it?
      instructions:
      - text: Upload {key} to bucket {bucket}.
        slots:
          key: path.key
          bucket: path.bucket
      - text: Upload {key} to {bucket} with content type {content_type} and metadata {metadata}.
        slots:
          key: path.key
          bucket: path.bucket
          content_type: header.Content-Type
          metadata: header.x-amz-meta-*
      - text: Copy the object at {copy_source} into {bucket} as {key}.
        slots:
          copy_source: header.x-amz-copy-source
          bucket: path.bucket
          key: path.key
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{bucket}/{key}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete one object
      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 {key} from bucket {bucket}.
        slots:
          key: path.key
          bucket: path.bucket
      - text: Remove the single file {key} in {bucket}.
        slots:
          key: path.key
          bucket: path.bucket
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{bucket}/{key}'].head
  update:
    x-apievangelist-phrasing:
      intent: Get an object's metadata
      effect: read
      questions:
      - How do I check an object's size and last-modified date without downloading it?
      - Can I read an object's metadata only?
      instructions:
      - text: Show the metadata of object {key} in {bucket}.
        slots:
          key: path.key
          bucket: path.bucket
      - text: Check when {key} in {bucket} was last modified.
        slots:
          key: path.key
          bucket: path.bucket
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{bucket}?delete'].post
  update:
    x-apievangelist-phrasing:
      intent: Delete many objects at once
      effect: destructive
      questions:
      - How do I delete up to 1000 objects from a bucket in one request?
      - Can I remove several files from a bucket without listing them first?
      instructions:
      - text: 'Delete these objects from {bucket}: {objects}.'
        slots:
          bucket: path.bucket
          objects: requestBody.Object
      - text: Remove {objects} from {bucket} in a single request.
        slots:
          objects: requestBody.Object
          bucket: path.bucket
      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-objects-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.