R2 Bucket

Lists all R2 buckets on your account.

get/r2/buckets

Request

  • Base URL: /cdn-cgi/local/explorer/api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /cdn-cgi/local/explorer/api/r2/buckets
  • Auth: none declared

Response

List Buckets response.

messagesstring[] required
successtrue required

Whether the API call was successful.

result_infoR2ResultInfo

Example response

{
  "result": {
    "buckets": [
      {
        "name": "example-bucket"
      }
    ]
  }
}

Changes