Cloudflare Flags API

The Flags API from Cloudflare — 2 operation(s) for flags.

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
Feature Flag Management BC-4210.50

Operations 5

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}/flagship/apps/{app_id}/flags List Flagship flags · List flags #
Ask an LLM
“Which flags are defined in my Flagship app?”
“Can I page through Flagship flags with a cursor?”
Tell an agent
List flags in Flagship app {app_id} on account {account_id}.
Show {limit} flags from {app_id} on account {account_id} after cursor {cursor}.
POST /accounts/{account_id}/flagship/apps/{app_id}/flags Create a Flagship flag · Create flag #
Ask an LLM
“How do I create a new feature flag in Flagship?”
“Why does creating a flag with a key that already exists fail?”
Tell an agent
Create flag {key} in Flagship app {app_id} on account {account_id} with default {default_variation} and rules {rules}.
Add Flagship flag {key} to {app_id} on account {account_id}, enabled {enabled}, variations {variations}, description {description}.
DELETE /accounts/{account_id}/flagship/apps/{app_id}/flags/{flag_key} Delete a Flagship flag · Delete flag #
Ask an LLM
“How do I permanently delete a Flagship flag?”
“What happens to flag evaluations after a Flagship flag is deleted?”
Tell an agent destructive · confirm first
Delete flag {flag_key} from Flagship app {app_id} on account {account_id}.
Permanently remove Flagship flag {flag_key} in {app_id} for account {account_id}.
GET /accounts/{account_id}/flagship/apps/{app_id}/flags/{flag_key} Get a Flagship flag · Get flag #
Ask an LLM
“What rules and variations does a specific Flagship flag have?”
“Can I see the full definition of one flag?”
Tell an agent
Get flag {flag_key} in Flagship app {app_id} on account {account_id}.
Show the full Flagship flag {flag_key} definition for {app_id} on {account_id}.
PUT /accounts/{account_id}/flagship/apps/{app_id}/flags/{flag_key} Replace a Flagship flag · Update flag #
Ask an LLM
“How do I change the rules or variations of an existing Flagship flag?”
“Can I rename a Flagship flag by updating its key?”
Tell an agent
Replace flag {flag_key} in Flagship app {app_id} on account {account_id} with default {default_variation} and rules {rules}.
Update Flagship flag {flag_key} on {app_id} in account {account_id} to variations {variations}, enabled {enabled}.

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-flags-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-flags-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 Flags 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 (127 KB total) ---
# Full source: https://artifacts.apis.io/cloudflare/openapi/cloudflare-flags-api-openapi.yml