For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Sign inTry it free
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
  • Get started
    • Overview
    • Onboarding
    • Get started
    • Launch Insights
    • LaunchDarkly architecture
    • LaunchDarkly vocabulary
  • AgentControl
    • AgentControl
    • Manage AgentControl
  • Feature flags
    • Create flags
    • Target with flags
    • Flag templates
    • Manage flags
    • Code references
    • Contexts
    • Segments
  • Releases
    • Releasing features with LaunchDarkly
    • Release policies
    • Percentage rollouts
    • Progressive rollouts
    • Guarded rollouts
    • Feature monitoring
    • Release pipelines
    • Engineering insights
    • Release management tools
    • Applications and app versions
    • Change history
    • Restoring previous flag versions
  • Observability
    • Observability
    • Session replay
    • Error monitoring
    • Logs
    • Traces
    • Observability metrics
    • Product analytics events
    • LLM observability
    • Alerts
    • Dashboards
    • Service map
    • Vega for auto-remediation
    • Observability MCP server
    • Search specification
    • Observability settings
    • Observability integrations
  • Experimentation
    • Experimentation
    • Experiment metric types
    • Experiment configuration
    • Managing experiments
    • Analyzing experiments
    • Multi-armed bandits
    • Holdouts
  • Metrics and events
    • Metrics in LaunchDarkly
    • Creating metrics
    • Metric groups
    • Events
    • Autogenerated metrics
  • Warehouse native
    • Warehouse native metrics
    • Setting up external warehouses
    • Creating experiments using warehouse native metrics
  • Infrastructure
    • Connect apps and services to LaunchDarkly
      • Custom properties
      • OAuth applications
      • Webhooks
      • The LaunchDarkly API
    • LaunchDarkly in China and Pakistan
    • LaunchDarkly in the European Union (EU)
    • LaunchDarkly in federal environments
    • Public IP list
  • Your account
    • Projects
    • Views
    • Environments
    • Tags
    • Teams
    • Members
    • Roles
    • Account security
    • Feature previews
    • Billing and usage
    • Changelog
Sign inTry it free
LogoLogo
On this page
  • Overview
  • Prerequisites
  • Access the LaunchDarkly API
  • Access the API documentation
InfrastructureConnect apps and services to LaunchDarkly

The LaunchDarkly API

Was this page helpful?
Previous

LaunchDarkly in China and Pakistan

Next
Built with

Overview

This topic explains how to authenticate to the LaunchDarkly API and access LaunchDarkly’s API documentation.

Every LaunchDarkly feature begins as an API endpoint. You can use the LaunchDarkly API to perform any action that’s available in the LaunchDarkly product itself.

For example, with the LaunchDarkly REST API you can perform the following:

  • Create, update, and search for account members, teams, projects, environments, and feature flags
  • Toggle feature flags
  • Query data about contexts that have evaluated feature flags in your application
  • Build custom integrations
  • Export raw data to destinations outside of LaunchDarkly

The LaunchDarkly REST API is not designed to evaluate feature flags from within your application. For that, you should use the LaunchDarkly SDKs. To learn more about the differences between these offerings, read Comparing LaunchDarkly’s REST API and SDK.

Prerequisites

To access the REST API, you must have the following prerequisites:

  • An API access token, which you can generate in LaunchDarkly’s Authorization page. Depending on your use case, you may prefer a personal access token or a service token. To learn more, read API access tokens.

Access the LaunchDarkly API

To access the LaunchDarkly API, you have several options:

  • Explore the available REST endpoints in our API docs.
  • Download our OpenAPI specification to use in an API-based tool, such as Postman or Insomnia.
  • Visit our collection of client libraries on GitHub. We auto-generate client libraries in several common languages based on our OpenAPI specification. To learn more, read OpenAPI and client libraries.

To authenticate to the LaunchDarkly API, add an Authorization header with your access token to your requests. While we recommend accessing the API using a request header, you can also perform API calls from the browser when you’re logged in to LaunchDarkly. To learn more, read the Authentication section of the API documentation.

Access the API documentation

To get started using our API, read the tutorial Using the LaunchDarkly REST API. To learn more, read the API documentation.