launchdarkly Metrics API

Define and manage metrics used to measure experiment outcomes and feature flag impact.

Business capability
Product Telemetry & Experimentation Management BC-4280

Operations 7

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/metrics/{projectKey} List metrics #
POST /api/v2/metrics/{projectKey} Create metric #
GET /api/v2/metrics/{projectKey}/{metricKey} Get metric #
PATCH /api/v2/metrics/{projectKey}/{metricKey} Update metric #
DELETE /api/v2/metrics/{projectKey}/{metricKey} Delete metric #
GET /metrics/{projectKey} List a project's metrics · List metrics #
Ask an LLM
“What metrics are defined in this project?”
“How can I see which metrics are available for experiments?”
Tell an agent
List metrics in project {projectKey}.
Show every metric defined in {projectKey}.
POST /metrics/{projectKey} Create a metric for experiments · Create a metric #
Ask an LLM
“How do I create a click metric to measure an experiment?”
“Can I track page views on specific URLs as a metric?”
Tell an agent
Create metric {name} with key {key} of kind {kind} in {projectKey}.
Add a {kind} metric {key} named {name} in {projectKey} on selector {selector}.

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