LaunchDarkly REST API
launchdarkly · Developer Tools
Build custom integrations with the LaunchDarkly REST API
Authentication
Sample Requests
You can issue a GET request to the root resource to find all of the resource categories supported by the API.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/launchdarkly.com/5.3.0/"
import requests
response = requests.get(
"https://api.apis.guru/v2/specs/launchdarkly.com/5.3.0/",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/launchdarkly.com/5.3.0/'; const response = await fetch(url); const data = await response.json(); console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/launchdarkly.com/5.3.0/"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/launchdarkly.com/5.3.0/")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/launchdarkly.com/5.3.0/";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Get a list of all audit log entries. The query parameters allow you to restrict the returned results by date ranges, resource specifiers, or a full-text search query.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/launchdarkly.com/5.3.0/auditlog?q=test&spec=example&after=1&limit=10&before=1"
import requests
params = {
"q": "test",
"spec": "example",
"after": "1",
"limit": "10",
"before": "1"
}
response = requests.get(
"https://api.apis.guru/v2/specs/launchdarkly.com/5.3.0/auditlog",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/launchdarkly.com/5.3.0/auditlog');
url.searchParams.set('q', 'test');
url.searchParams.set('spec', 'example');
url.searchParams.set('after', '1');
url.searchParams.set('limit', '10');
url.searchParams.set('before', '1');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/launchdarkly.com/5.3.0/auditlog")
q := baseURL.Query()
q.Set("q", "test")
q.Set("spec", "example")
q.Set("after", "1")
q.Set("limit", "10")
q.Set("before", "1")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/launchdarkly.com/5.3.0/auditlog")
uri.query = URI.encode_www_form({
"q" => "test",
"spec" => "example",
"after" => "1",
"limit" => "10",
"before" => "1"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/launchdarkly.com/5.3.0/auditlog?" . http_build_query([
"q" => "test",
"spec" => "example",
"after" => "1",
"limit" => "10",
"before" => "1"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Returns a list of all data export destinations.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/launchdarkly.com/5.3.0/destinations"
import requests
response = requests.get(
"https://api.apis.guru/v2/specs/launchdarkly.com/5.3.0/destinations",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/launchdarkly.com/5.3.0/destinations'; const response = await fetch(url); const data = await response.json(); console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/launchdarkly.com/5.3.0/destinations"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/launchdarkly.com/5.3.0/destinations")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/launchdarkly.com/5.3.0/destinations";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with LaunchDarkly REST API?
LaunchDarkly REST API is a Developer Tools API. Developers commonly use developer tools APIs for:
- automating code review and quality checks
- integrating CI/CD pipelines and build systems
- managing feature flags and A/B tests
- monitoring errors and application performance
- generating and validating test data
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. LaunchDarkly REST API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide