> ## Documentation Index
> Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# LaunchDarkly REST API

> The LaunchDarkly REST API lets you build custom integrations, automate your workflow, and manage your feature flags and other LaunchDarkly resources programmatically.

> For the complete documentation index, see [llms.txt](/llms.txt). For the full documentation snapshot, see [llms-full.txt](/llms-full.txt).

The LaunchDarkly REST API lets you build custom integrations, automate your workflow, and manage your feature flags and other LaunchDarkly resources programmatically.

## Base URL

All API requests use the following base URL:

```
https://app.launchdarkly.com/api/v2
```

## Authentication

All REST API resources are authenticated with either personal or service access tokens, or session cookies. Other authentication mechanisms are not supported. You can manage personal access tokens on your [**Authorization**](https://app.launchdarkly.com/settings/authorization) page in the LaunchDarkly UI.

LaunchDarkly also has SDK keys, mobile keys, and client-side IDs that are used by the SDKs to authenticate to LaunchDarkly. These are not used for the REST API.

## Versioning

REST API resources are versioned via a header. Set the `LD-API-Version` header to the desired API version. If you don't set this header, the API uses the latest version.

## Rate limiting

The REST API applies rate limits on a per-access-token basis. The limit is 403 requests per access token per ten seconds.

## Representations

All resources expect and return JSON response bodies. Error responses also send a JSON body.

<CardGroup cols={3}>
  <Card title="Feature Flags" icon="flag" href="/api-reference/feature-flags/list-feature-flags">
    Create, update, and manage feature flags
  </Card>

  <Card title="Environments" icon="server" href="/api-reference/environments/list-environments">
    Manage environments within projects
  </Card>

  <Card title="Projects" icon="folder" href="/api-reference/projects/list-projects">
    Configure and manage projects
  </Card>

  <Card title="Segments" icon="users" href="/api-reference/segments/list-segments">
    Create and manage user segments
  </Card>

  <Card title="Access Tokens" icon="key" href="/api-reference/access-tokens/list-access-tokens">
    Manage API access tokens
  </Card>

  <Card title="Experiments" icon="flask-vial" href="/api-reference/experiments/get-experiments">
    Create and manage experiments
  </Card>
</CardGroup>

## Open

API specification

The raw OpenAPI specification for the LaunchDarkly REST API is available in the following formats:

* [OpenAPI JSON](https://app.launchdarkly.com/api/v2/openapi.json)
* [OpenAPI YAML](https://launchdarkly.com/openapi.yaml)
