The LaunchDarkly Developer Hub

Welcome to the LaunchDarkly developer hub. You'll find comprehensive guides and documentation to help you start working with LaunchDarkly as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

Authentication

All API resources are authenticated with API keys or session cookies. Other authentication mechanisms (e.g. basic auth), are not supported.

Keep your API keys private

API keys should never be exposed in untrusted contexts. Never put your API key in client-side JavaScript, or embed it in a mobile application (LaunchDarkly has special mobile keys that you can embed in mobile apps). If you accidentally expose your API key, you can reset it from your Account Settings page.

Via request header

The preferred way to authenticate with the API is by adding an Authorization header containing your API key to your requests:

Authorization: api_key [[app:key]]

You can find your API key on your Account Settings page.

Via session cookie

For testing purposes, you can make API calls directly from your web browser. If you're logged in to the application, the API will use your existing session to authenticate calls.