Cloudflare R2 · Schema

R2 R2 Object

Metadata for an R2 object.

Object StorageCloud StorageS3 CompatibleEgress-FreeBucketsDeveloper PlatformCloudflare

Properties

Name Type Description
custom_metadata object Custom metadata key-value pairs associated with the object.
etag string The entity tag for the object. In JSON list/get responses this is the raw hex digest (without surrounding quotes). The HTTP `ETag` response header on Get Object follows RFC 7232 and IS wrapped in surr
http_metadata object
key string The object key (name).
last_modified string The date and time the object was last modified.
size integer The size of the object in bytes.
ssec boolean Whether the object is encrypted with a customer-supplied encryption key.
storage_class object
View JSON Schema on GitHub

JSON Schema

cloudflare-r2-object.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cloudflare-r2/main/json-schema/cloudflare-r2-object.json",
  "title": "R2 R2 Object",
  "description": "Metadata for an R2 object.",
  "properties": {
    "custom_metadata": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Custom metadata key-value pairs associated with the object.",
      "example": {},
      "type": "object"
    },
    "etag": {
      "description": "The entity tag for the object. In JSON list/get responses this is the raw\nhex digest (without surrounding quotes). The HTTP `ETag` response header on\nGet Object follows RFC 7232 and IS wrapped in surrounding double-quotes.\n",
      "example": "d41d8cd98f00b204e9800998ecf8427e",
      "type": "string"
    },
    "http_metadata": {
      "$ref": "#/components/schemas/r2_r2_object_http_metadata"
    },
    "key": {
      "description": "The object key (name).",
      "example": "path/to/my-object.txt",
      "type": "string"
    },
    "last_modified": {
      "description": "The date and time the object was last modified.",
      "example": "2024-01-15T10:30:00Z",
      "format": "date-time",
      "type": "string"
    },
    "size": {
      "description": "The size of the object in bytes.",
      "example": 1048576.0,
      "type": "integer"
    },
    "ssec": {
      "description": "Whether the object is encrypted with a customer-supplied encryption key.",
      "example": false,
      "type": "boolean"
    },
    "storage_class": {
      "$ref": "#/components/schemas/r2_storage_class"
    }
  },
  "type": "object"
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/cloudflare-r2-object"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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