launchdarkly Feature Flags API

Create, update, and manage feature flags and their targeting rules across projects and environments.

Business capability
Feature Flag Management BC-4210.50

Operations 19

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 /api/v2/flag-status/{projectKey}/{featureFlagKey} Get flag status across environments #
GET /api/v2/flag-statuses/{projectKey}/{environmentKey} List feature flag statuses #
GET /api/v2/flag-statuses/{projectKey}/{environmentKey}/{featureFlagKey} Get feature flag status #
GET /api/v2/flags/{projectKey} List feature flags #
POST /api/v2/flags/{projectKey} Create a feature flag #
GET /api/v2/flags/{projectKey}/{featureFlagKey} Get feature flag #
PATCH /api/v2/flags/{projectKey}/{featureFlagKey} Update feature flag #
DELETE /api/v2/flags/{projectKey}/{featureFlagKey} Delete feature flag #
POST /api/v2/flags/{projectKey}/{featureFlagKey}/copy Copy feature flag #
GET /api/v2/flags/{projectKey}/{featureFlagKey}/expiring-targets/{environmentKey} Get expiring context targets for feature flag #
PATCH /api/v2/flags/{projectKey}/{featureFlagKey}/expiring-targets/{environmentKey} Update expiring context targets on feature flag #
GET /api/v2/flags/{projectKey}/{featureFlagKey}/expiring-user-targets/{environmentKey} Get expiring user targets for feature flag #
PATCH /api/v2/flags/{projectKey}/{featureFlagKey}/expiring-user-targets/{environmentKey} Update expiring user targets on feature flag #
POST /api/v2/projects/{projectKey}/flags/{flagKey}/environments/{environmentKey}/migration-safety-issues Get migration safety issues #
GET /flags/{projectKey} List a project's feature flags · List feature flags #
Ask an LLM
“Which feature flags exist in this project?”
“Can I list only the flags that carry a certain tag?”
Tell an agent
List feature flags in project {projectKey}.
List flags in {projectKey} tagged {tag}.
POST /flags/{projectKey} Create a feature flag · Create a feature flag #
Ask an LLM
“How do I create a new feature flag with custom variations?”
“Can I mark a new flag as temporary when I create it?”
Tell an agent
Create flag {name} with key {key} in project {projectKey}.
Create a temporary flag {key} named {name} in {projectKey} with variations {variations}.
GET /flags/{projectKey}/{flagKey} Get a feature flag and its targeting · Get a feature flag #
Ask an LLM
“How do I see a flag's targeting rules in each environment?”
“What is the current configuration of a single flag?”
Tell an agent
Get flag {flagKey} in project {projectKey}.
Show the targeting for {flagKey} in {projectKey}, environment {env} only.
PATCH /flags/{projectKey}/{flagKey} Update a flag's targeting or settings · Update a feature flag #
Ask an LLM
“How do I turn a flag on or change its targeting rules?”
“Can I add a prerequisite to an existing flag?”
Tell an agent
Update flag {flagKey} in {projectKey} with patch {patch}.
Apply {patch} to flag {flagKey} in {projectKey} and note {comment}.
DELETE /flags/{projectKey}/{flagKey} Delete a feature flag · Delete a feature flag #
Ask an LLM
“How do I permanently delete a flag we no longer use?”
“Does deleting a flag also remove its targeting in every environment?”
Tell an agent destructive · confirm first
Delete flag {flagKey} from project {projectKey}.
Permanently remove feature flag {flagKey} in {projectKey}.

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/launchdarkly:launchdarkly-feature-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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

launchdarkly-feature-flags-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Launchdarkly Feature flags API
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  version: '1.0'
  description: 'Operations tagged Feature flags across 2 of this provider''s published API definitions: launchdarkly-openapi.json, launchdarkly-rest-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://app.launchdarkly.com
  description: ' Default'
- url: https://app.launchdarkly.us
  description: ' Federal'
- url: https://app.launchdarkly.com/api/v2
  description: LaunchDarkly Production API
tags:


# --- truncated at 32 KB (136 KB total) ---
# Full source: https://artifacts.apis.io/launchdarkly/openapi/launchdarkly-feature-flags-api-openapi.yml