Harness Feature Flags API

APIs to create and manage Feature Flags

Operations 8

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 /cf/admin/features List feature flags in a project · Returns all Feature Flags for the project #
Ask an LLM
“What feature flags exist in my Harness project?”
“Can I list only the flags that are enabled in one environment?”
Tell an agent
List all feature flags in project {project} of org {org}.
Show flags in project {project} whose status is {status} in environment {environment}.
POST /cf/admin/features Create a feature flag · Creates a Feature Flag #
Ask an LLM
“How do I create a new boolean feature flag with on and off variations?”
“Can I make a permanent flag rather than a temporary one?”
Tell an agent
Create a {kind} feature flag {name} with identifier {identifier} in project {project}.
Add flag {identifier} serving {defaultOnVariation} when on and {defaultOffVariation} when off.
DELETE /cf/admin/features/{identifier} Delete a feature flag · Delete a Feature Flag #
Ask an LLM
“Can I permanently delete a feature flag that's no longer used?”
“Is there a force option to delete a flag other flags depend on?”
Tell an agent destructive · confirm first
Delete feature flag {identifier} from project {project}.
Force delete flag {identifier} with commit message {commitMsg}.
GET /cf/admin/features/{identifier} Get a feature flag · Returns a Feature Flag #
Ask an LLM
“What variations and default values does a specific feature flag have?”
“Is one flag turned on in a given environment?”
Tell an agent
Show feature flag {identifier} in project {project}.
Get the state of flag {identifier} in environment {environment}.
PATCH /cf/admin/features/{identifier} Turn a feature flag on or off or change its rules · Updates a Feature Flag #
Ask an LLM
“How do I turn a feature flag on in production?”
“Can I schedule a flag change to happen at a later time?”
Tell an agent
Turn flag {identifier} on in environment {environment}.
Apply the instructions {instructions} to flag {identifier} with comment {comment}.
PUT /cf/admin/features/{identifier} Replace a feature flag's definition · Updates a Feature Flag #
Ask an LLM
“Can I rewrite a flag's name, description and variations in one full update?”
“How do I change the default on and off variations of an existing flag?”
Tell an agent
Replace the definition of flag {identifier} with name {name} and variations {variations}.
Set the default on variation of flag {identifier} to {defaultOnVariation}.
GET /cf/admin/features/{identifier}/dependants List flags that depend on a feature flag · Return a list of dependant flags #
Ask an LLM
“Which other flags use this flag as a prerequisite?”
“Will anything break if I remove a flag that others depend on?”
Tell an agent
List the flags that depend on flag {identifier}.
Show dependants of feature flag {identifier} in project {project}.
POST /cf/admin/features/{identifier}/restore Restore an archived feature flag · Restore a Feature Flag #
Ask an LLM
“Can I bring back a feature flag that was archived?”
“Is it possible to undo archiving a flag?”
Tell an agent
Restore archived feature flag {identifier}.
Unarchive flag {identifier} in project {project} with commit message {commitMsg}.

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/harness:harness-feature-flags-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

harness-feature-flags-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Harness Feature Flags API
  version: '1.0'
  description: The Harness Software Delivery Platform uses OpenAPI Specification v3.0.
  contact:
    name: API Support
    email: contact@harness.io
    url: https://harness.io/
  x-logo:
    url: https://mma.prnewswire.com/media/779232/Harnes_logo_horizontal.jpg?p=facebook
    altText: Harness
  termsOfService: https://harness.io/terms-of-use/
servers:
- url: https://app.harness.io
  description: Harness host URL
- url: https://{vanity}
  description: Vanity URL
  variables:
    vanity:
      default: app.harness.io
security:
- x-api-key: []
tags:


# --- truncated at 32 KB (53 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/openapi/harness-feature-flags-api-openapi.yml