launchdarkly Flag Triggers API
Create triggers that allow external services to toggle feature flags via unique webhook URLs.
Create triggers that allow external services to toggle feature flags via unique webhook URLs.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/launchdarkly-flag-triggers-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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: 3.2.0
info:
title: LaunchDarkly REST Flag Triggers API
description: The LaunchDarkly REST API provides programmatic access to the full LaunchDarkly feature management platform. Developers can create, update, and manage feature flags, targeting rules, user segments, projects, environments, and team members. The API also supports scheduled flag changes, release pipelines, experimentation, approval workflows, and webhook integrations. Authentication is handled via personal or service access tokens, and the API follows a versioned scheme with the current default version being 20240415.
version: '20240415'
contact:
name: LaunchDarkly Support
url: https://support.launchdarkly.com
termsOfService: https://launchdarkly.com/policies/terms-of-service
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: https://app.launchdarkly.com/api/v2
description: LaunchDarkly Production API
security:
- bearerAuth: []
tags:
- name: Flag Triggers
description: Create triggers that allow external services to toggle feature flags via unique webhook URLs.
paths:
/flags/{projectKey}/{flagKey}/triggers/{environmentKey}:
get:
operationId: listFlagTriggers
summary: List flag triggers
description: Returns a list of all triggers for the specified feature flag in the given environment.
tags:
- Flag Triggers
parameters:
- $ref: '#/components/parameters/ProjectKey'
- $ref: '#/components/parameters/FlagKey'
- $ref: '#/components/parameters/EnvironmentKey'
responses:
'200':
description: Successful response containing a list of flag triggers.
content:
application/json:
schema:
$ref: '#/components/schemas/FlagTriggers'
'401':
description: Unauthorized. Invalid or missing access token.
'404':
description: Flag or environment not found.
post:
operationId: createFlagTrigger
summary: Create a flag trigger
description: Creates a new trigger for the specified feature flag that generates a unique URL for external services to toggle the flag.
tags:
- Flag Triggers
parameters:
- $ref: '#/components/parameters/ProjectKey'
- $ref: '#/components/parameters/FlagKey'
- $ref: '#/components/parameters/EnvironmentKey'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/FlagTriggerBody'
responses:
'201':
description: Flag trigger created successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/FlagTrigger'
'400':
description: Invalid request body.
'401':
description: Unauthorized. Invalid or missing access token.
components:
schemas:
FlagTrigger:
type: object
description: A trigger that provides a unique URL for external services to toggle a feature flag.
properties:
_id:
type: string
description: The unique identifier of this trigger.
_version:
type: integer
description: The version number of this trigger.
triggerUrl:
type: string
format: uri
description: The unique URL for triggering flag changes.
enabled:
type: boolean
description: Whether this trigger is enabled.
instructions:
type: array
description: The instructions executed when the trigger fires.
items:
type: object
properties:
kind:
type: string
description: The type of instruction to execute.
enum:
- turnFlagOn
- turnFlagOff
_links:
$ref: '#/components/schemas/Links'
Links:
type: object
description: HATEOAS links for navigating related resources.
properties:
self:
type: object
description: A link to this resource.
properties:
href:
type: string
description: The URL of this resource.
type:
type: string
description: The media type.
additionalProperties:
type: object
properties:
href:
type: string
description: The URL of the linked resource.
type:
type: string
description: The media type.
FlagTriggerBody:
type: object
description: The request body for creating a new flag trigger.
required:
- instructions
properties:
comment:
type: string
description: An optional comment describing the trigger.
instructions:
type: array
description: The instructions to execute when the trigger fires.
items:
type: object
properties:
kind:
type: string
description: The type of instruction.
enum:
- turnFlagOn
- turnFlagOff
FlagTriggers:
type: object
description: A collection of flag triggers.
properties:
items:
type: array
description: The list of flag triggers.
items:
$ref: '#/components/schemas/FlagTrigger'
_links:
$ref: '#/components/schemas/Links'
parameters:
FlagKey:
name: flagKey
in: path
required: true
description: The feature flag key identifying a specific flag.
schema:
type: string
pattern: ^[a-z0-9]([a-z0-9._-])*$
EnvironmentKey:
name: environmentKey
in: path
required: true
description: The environment key identifying a specific environment.
schema:
type: string
pattern: ^[a-z0-9]([a-z0-9-])*$
ProjectKey:
name: projectKey
in: path
required: true
description: The project key identifying a LaunchDarkly project.
schema:
type: string
pattern: ^[a-z0-9]([a-z0-9-])*$
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: LaunchDarkly API access token. Create personal or service tokens in the LaunchDarkly dashboard under Account Settings.
externalDocs:
description: LaunchDarkly API Documentation
url: https://apidocs.launchdarkly.com/