launchdarkly Experiments API

Create and manage experiments to measure the impact of feature flag variations on metrics.

Business capability
A/B Test Execution BC-4280.50

Operations 10

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/projects/{projectKey}/environments/{environmentKey}/experiments Get experiments #
POST /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments Create experiment #
GET /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey} Get experiment #
PATCH /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey} Patch experiment #
POST /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey}/iterations Create iteration #
GET /api/v2/projects/{projectKey}/experimentation-settings Get experimentation settings #
PUT /api/v2/projects/{projectKey}/experimentation-settings Update experimentation settings #
GET /api/v2/projects/{projectKey}/experiments Get experiments any environment #
GET /projects/{projectKey}/environments/{environmentKey}/experiments List experiments in an environment · List experiments #
Ask an LLM
“What experiments are running in this project's production environment?”
“Can I page through experiments in an environment?”
Tell an agent
List experiments in project {projectKey}, environment {environmentKey}.
Show {limit} experiments in {projectKey}/{environmentKey}.
POST /projects/{projectKey}/environments/{environmentKey}/experiments Create an experiment · Create an experiment #
Ask an LLM
“How do I set up a new experiment in LaunchDarkly?”
“Can I assign a maintainer when creating an experiment?”
Tell an agent
Create experiment {name} with key {key} in {projectKey}/{environmentKey}.
Start a new experiment {key} named {name} in {projectKey}/{environmentKey}, maintained by {maintainerId}.

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-experiments-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-experiments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Launchdarkly Experiments API
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  version: '1.0'
  description: 'Operations tagged Experiments 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 (79 KB total) ---
# Full source: https://artifacts.apis.io/launchdarkly/openapi/launchdarkly-experiments-api-openapi.yml