{
  "opencollection": "1.0.0",
  "info": {
    "name": "Cloudflare KV API",
    "version": "4.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Namespaces",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Cloudflare List Kv Namespaces",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cloudflare.com/client/v4/accounts/:account_id/storage/kv/namespaces",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Cloudflare account."
              },
              {
                "name": "page",
                "value": "10",
                "type": "query",
                "description": "Page number of results."
              },
              {
                "name": "per_page",
                "value": "10",
                "type": "query",
                "description": "Number of results per page."
              }
            ]
          },
          "docs": "Returns a paginated list of all KV namespaces for the account."
        },
        {
          "info": {
            "name": "Cloudflare Create Kv Namespace",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.cloudflare.com/client/v4/accounts/:account_id/storage/kv/namespaces",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Cloudflare account."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new KV namespace for the account."
        },
        {
          "info": {
            "name": "Cloudflare Get Kv Namespace",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cloudflare.com/client/v4/accounts/:account_id/storage/kv/namespaces/:namespace_id",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Cloudflare account."
              },
              {
                "name": "namespace_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the KV namespace."
              }
            ]
          },
          "docs": "Retrieve details of a specific KV namespace."
        },
        {
          "info": {
            "name": "Cloudflare Rename Kv Namespace",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.cloudflare.com/client/v4/accounts/:account_id/storage/kv/namespaces/:namespace_id",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Cloudflare account."
              },
              {
                "name": "namespace_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the KV namespace."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Rename a KV namespace."
        },
        {
          "info": {
            "name": "Cloudflare Delete Kv Namespace",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.cloudflare.com/client/v4/accounts/:account_id/storage/kv/namespaces/:namespace_id",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Cloudflare account."
              },
              {
                "name": "namespace_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the KV namespace."
              }
            ]
          },
          "docs": "Delete a KV namespace and all its key-value pairs."
        }
      ]
    },
    {
      "info": {
        "name": "Keys",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Cloudflare List Keys",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cloudflare.com/client/v4/accounts/:account_id/storage/kv/namespaces/:namespace_id/keys",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Cloudflare account."
              },
              {
                "name": "namespace_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the KV namespace."
              },
              {
                "name": "cursor",
                "value": "example_value",
                "type": "query",
                "description": "Cursor for pagination."
              },
              {
                "name": "limit",
                "value": "10",
                "type": "query",
                "description": "Maximum number of keys to return."
              },
              {
                "name": "prefix",
                "value": "example_value",
                "type": "query",
                "description": "Filter keys by prefix."
              }
            ]
          },
          "docs": "List keys stored in a KV namespace with cursor-based pagination."
        }
      ]
    },
    {
      "info": {
        "name": "Key-Value Pairs",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Cloudflare Read Key-value Pair",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cloudflare.com/client/v4/accounts/:account_id/storage/kv/namespaces/:namespace_id/values/:key_name",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Cloudflare account."
              },
              {
                "name": "namespace_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the KV namespace."
              },
              {
                "name": "key_name",
                "value": "",
                "type": "path",
                "description": "The key name. Use URL-encoding for special characters such as colon, exclamation mark, and percent."
              }
            ]
          },
          "docs": "Read the value of a specific key from the namespace."
        },
        {
          "info": {
            "name": "Cloudflare Write Key-value Pair",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.cloudflare.com/client/v4/accounts/:account_id/storage/kv/namespaces/:namespace_id/values/:key_name",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Cloudflare account."
              },
              {
                "name": "namespace_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the KV namespace."
              },
              {
                "name": "key_name",
                "value": "",
                "type": "path",
                "description": "The key name. Use URL-encoding for special characters such as colon, exclamation mark, and percent."
              },
              {
                "name": "expiration",
                "value": "10",
                "type": "query",
                "description": "Unix timestamp for when the key should expire."
              },
              {
                "name": "expiration_ttl",
                "value": "10",
                "type": "query",
                "description": "Seconds until the key expires."
              }
            ]
          },
          "docs": "Write a value for a specific key in the namespace. Optionally set expiration and metadata."
        },
        {
          "info": {
            "name": "Cloudflare Delete Key-value Pair",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.cloudflare.com/client/v4/accounts/:account_id/storage/kv/namespaces/:namespace_id/values/:key_name",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Cloudflare account."
              },
              {
                "name": "namespace_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the KV namespace."
              },
              {
                "name": "key_name",
                "value": "",
                "type": "path",
                "description": "The key name. Use URL-encoding for special characters such as colon, exclamation mark, and percent."
              }
            ]
          },
          "docs": "Delete a key-value pair from the namespace."
        }
      ]
    },
    {
      "info": {
        "name": "Metadata",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Cloudflare Read Key Metadata",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cloudflare.com/client/v4/accounts/:account_id/storage/kv/namespaces/:namespace_id/metadata/:key_name",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Cloudflare account."
              },
              {
                "name": "namespace_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the KV namespace."
              },
              {
                "name": "key_name",
                "value": "",
                "type": "path",
                "description": "The key name. Use URL-encoding for special characters such as colon, exclamation mark, and percent."
              }
            ]
          },
          "docs": "Retrieve metadata associated with a specific key."
        }
      ]
    },
    {
      "info": {
        "name": "Bulk Operations",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Cloudflare Write Multiple Key-value Pairs",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.cloudflare.com/client/v4/accounts/:account_id/storage/kv/namespaces/:namespace_id/bulk",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Cloudflare account."
              },
              {
                "name": "namespace_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the KV namespace."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Write multiple key-value pairs in a single request. Supports up to 10,000 pairs per request."
        },
        {
          "info": {
            "name": "Cloudflare Delete Multiple Key-value Pairs",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.cloudflare.com/client/v4/accounts/:account_id/storage/kv/namespaces/:namespace_id/bulk/delete",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Cloudflare account."
              },
              {
                "name": "namespace_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the KV namespace."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Delete multiple key-value pairs in a single request."
        },
        {
          "info": {
            "name": "Cloudflare Get Multiple Key-value Pairs",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.cloudflare.com/client/v4/accounts/:account_id/storage/kv/namespaces/:namespace_id/bulk/get",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Cloudflare account."
              },
              {
                "name": "namespace_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the KV namespace."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Retrieve multiple key-value pairs in a single request."
        }
      ]
    }
  ],
  "bundled": true
}