Cloudflare Secrets Store API

The Cloudflare Secrets Store API enables developers to securely encrypt and store sensitive information as secrets that are reusable across a Cloudflare account. It provides endpoints for managing stores and secrets, with integration into Workers and AI Gateway for runtime access.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Configuration & Secrets Management BC-4210.60

Operations 12

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /accounts/{account_id}/secrets_store/quota View secret usage in a store · View secret usage #
Ask an LLM
“How many secrets are used in my Secrets Store account?”
“What is the current secret usage quota for a store?”
Tell an agent
Show secret usage for account {account_id}.
Check how many secrets account {account_id} is using.
GET /accounts/{account_id}/secrets_store/stores List stores in an account · List account stores #
Ask an LLM
“Which secret stores exist in my account?”
“Can I list all Secrets Store stores in an account?”
Tell an agent
List all stores in account {account_id}.
Show the first {per_page} stores in account {account_id}.
POST /accounts/{account_id}/secrets_store/stores Create a secret store · Create a store #
Ask an LLM
“How do I create a new Secrets Store in my account?”
“Can I name a new secret store when I create it?”
Tell an agent
Create a store named {name} in account {account_id}.
Add a new Secrets Store called {name} to account {account_id}.
DELETE /accounts/{account_id}/secrets_store/stores/{store_id} Delete a secret store · Delete a store #
Ask an LLM
“How do I delete a Secrets Store?”
“Can I force-delete a store that still has secrets?”
Tell an agent destructive · confirm first
Delete store {store_id} from account {account_id}.
Force-delete Secrets Store {store_id} in account {account_id} with force {force}.
GET /accounts/{account_id}/secrets_store/stores/{store_id} Get a secret store · Get a store by ID #
Ask an LLM
“What are the details of one Secrets Store?”
“Can I look up a store by its ID?”
Tell an agent
Show store {store_id} in account {account_id}.
Get the details of Secrets Store {store_id} for account {account_id}.
DELETE /accounts/{account_id}/secrets_store/stores/{store_id}/secrets Delete several secrets from a store · Delete secrets #
Ask an LLM
“How do I delete multiple secrets from a Secrets Store at once?”
“Can I remove several secret IDs from a store in one call?”
Tell an agent destructive · confirm first
Delete secrets {ids} from store {store_id} in account {account_id}.
Remove secret IDs {ids} from Secrets Store {store_id} for account {account_id}.
GET /accounts/{account_id}/secrets_store/stores/{store_id}/secrets List secrets in a store · List store secrets #
Ask an LLM
“Which secrets are stored in a Secrets Store?”
“Can I search secrets by name or comment?”
Tell an agent
List secrets in store {store_id} of account {account_id}.
Search secrets in store {store_id} for {search}.
POST /accounts/{account_id}/secrets_store/stores/{store_id}/secrets Create a secret in a store · Create a secret #
Ask an LLM
“How do I add a secret to a Secrets Store?”
“What is the maximum size of a secret value?”
Tell an agent
Create a secret in store {store_id} of account {account_id}.
Add a new secret to Secrets Store {store_id} for account {account_id}.
DELETE /accounts/{account_id}/secrets_store/stores/{store_id}/secrets/{secret_id} Delete a secret from a store · Delete a secret #
Ask an LLM
“How do I delete one secret from a Secrets Store?”
“Can I remove a single secret by its ID?”
Tell an agent destructive · confirm first
Delete secret {secret_id} from store {store_id} in account {account_id}.
Remove Secrets Store secret {secret_id} for account {account_id}.
GET /accounts/{account_id}/secrets_store/stores/{store_id}/secrets/{secret_id} Get details of a single secret · Get a secret by ID #
Ask an LLM
“How do I read the details of a single secret from the secrets store?”
“Can I look up one secret by its ID?”
Tell an agent
Get secret {secret_id} from store {store_id} in account {account_id}.
Show the details of the secret with ID {secret_id} in store {store_id} for account {account_id}.
PATCH /accounts/{account_id}/secrets_store/stores/{store_id}/secrets/{secret_id} Update a secret's comment or scopes · Patch a secret #
Ask an LLM
“How do I change the comment or scopes on a secret?”
“Can I rotate a secret's scopes without changing its value?”
Tell an agent
Set the comment on secret {secret_id} in store {store_id} of account {account_id} to {comment}.
Change the scopes of secret {secret_id} in store {store_id} for account {account_id} to {scopes}.
POST /accounts/{account_id}/secrets_store/stores/{store_id}/secrets/{secret_id}/duplicate Duplicate a secret in a store · Duplicate Secret #
Ask an LLM
“How do I make a copy of a secret with the same value?”
“Can I duplicate a secret into a store under a new name?”
Tell an agent
Duplicate secret {secret_id} in store {store_id} of account {account_id} as {name} with scopes {scopes}.
Copy Secrets Store secret {secret_id} into store {store_id} for account {account_id} named {name}, scopes {scopes}.

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/cloudflare:cloudflare-secrets-store-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

cloudflare-secrets-store-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Welcome to Cloudflare's API documentation site.
  license:
    name: BSD-3-Clause
    url: https://opensource.org/licenses/BSD-3-Clause
  title: Cloudflare Secrets Store API
  version: 4.0.0
servers:
- description: Client API
  url: https://api.cloudflare.com/client/v4
security:
- api_email: []
  api_key: []
- api_token: []
- user_service_key: []
tags:


# --- truncated at 32 KB (77 KB total) ---
# Full source: https://artifacts.apis.io/cloudflare/openapi/cloudflare-secrets-store-api-openapi.yml