Data Export is an add-on feature
Data Export is available as an add-on for customers on an Enterprise plan. To learn more, read about our pricing. To upgrade your plan, contact Sales.
Data Export provides a real-time export of raw analytics data, including feature flag requests, analytics events, custom events, and more.
Data Export destinations are locations that receive exported data. The Data Export destinations API allows you to configure destinations so that your data can be exported.
To learn more, read Data Export.
Get a list of Data Export destinations configured across all projects and environments.
Destination collection response
Invalid access token
Forbidden
Rate limited
curl -i -X GET \ https://app.launchdarkly.com/api/v2/destinations \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "_links": {
- "self": {
- "href": "/api/v2/destinations",
- "type": "application/json"
}
}, - "items": [
- {
- "_id": "610addeadbeefaa86ec9a7d4",
- "_links": {
- "parent": {
- "href": "/api/v2/destinations",
- "type": "application/json"
}, - "self": {
- "href": "/api/v2/destinations/my-project/my-environment/610addeadbeefaa86ec9a7d4",
- "type": "application/json"
}
}, - "name": "string",
- "kind": "google-pubsub",
- "version": 1,
- "config": "{\"project\":\"test-prod\",\"topic\":\"ld-pubsub-test-192301\"}",
- "on": true,
- "_access": {
- "denied": [
- {
- "action": "string",
- "reason": {
- "resources": [
- null
], - "notResources": [
- null
], - "actions": [
- null
], - "notActions": [
- null
], - "effect": "string",
- "role_name": "string"
}
}
], - "allowed": [
- {
- "action": "string",
- "reason": {
- "resources": [
- null
], - "notResources": [
- null
], - "actions": [
- null
], - "notActions": [
- null
], - "effect": "string",
- "role_name": "string"
}
}
]
}
}
]
}
Create a new destination. The config
body parameter represents the configuration parameters required for a destination type.
Destination response
Invalid request
Invalid access token
Forbidden
Status conflict
Rate limited
{- "config": {
- "project": "test-prod",
- "topic": "ld-pubsub-test-192301"
}, - "kind": "google-pubsub"
}
{- "_id": "610addeadbeefaa86ec9a7d4",
- "_links": {
- "parent": {
- "href": "/api/v2/destinations",
- "type": "application/json"
}, - "self": {
- "href": "/api/v2/destinations/my-project/my-environment/610addeadbeefaa86ec9a7d4",
- "type": "application/json"
}
}, - "name": "string",
- "kind": "google-pubsub",
- "version": 1,
- "config": "{\"project\":\"test-prod\",\"topic\":\"ld-pubsub-test-192301\"}",
- "on": true,
- "_access": {
- "denied": [
- {
- "action": "string",
- "reason": {
- "resources": [
- "string"
], - "notResources": [
- "string"
], - "actions": [
- "string"
], - "notActions": [
- "string"
], - "effect": "string",
- "role_name": "string"
}
}
], - "allowed": [
- {
- "action": "string",
- "reason": {
- "resources": [
- "string"
], - "notResources": [
- "string"
], - "actions": [
- "string"
], - "notActions": [
- "string"
], - "effect": "string",
- "role_name": "string"
}
}
]
}
}
Get a single Data Export destination by ID.
Destination response
Invalid access token
Forbidden
Invalid resource identifier
Rate limited
curl -i -X GET \ 'https://app.launchdarkly.com/api/v2/destinations/{projectKey}/{environmentKey}/{id}' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "_id": "610addeadbeefaa86ec9a7d4",
- "_links": {
- "parent": {
- "href": "/api/v2/destinations",
- "type": "application/json"
}, - "self": {
- "href": "/api/v2/destinations/my-project/my-environment/610addeadbeefaa86ec9a7d4",
- "type": "application/json"
}
}, - "name": "string",
- "kind": "google-pubsub",
- "version": 1,
- "config": "{\"project\":\"test-prod\",\"topic\":\"ld-pubsub-test-192301\"}",
- "on": true,
- "_access": {
- "denied": [
- {
- "action": "string",
- "reason": {
- "resources": [
- "string"
], - "notResources": [
- "string"
], - "actions": [
- "string"
], - "notActions": [
- "string"
], - "effect": "string",
- "role_name": "string"
}
}
], - "allowed": [
- {
- "action": "string",
- "reason": {
- "resources": [
- "string"
], - "notResources": [
- "string"
], - "actions": [
- "string"
], - "notActions": [
- "string"
], - "effect": "string",
- "role_name": "string"
}
}
]
}
}
Update a Data Export destination. This requires a JSON Patch representation of the modified destination.
Destination response
Invalid request
Invalid access token
Forbidden
Invalid resource identifier
Status conflict
Rate limited
[- {
- "op": "replace",
- "path": "/config/topic",
- "value": "ld-pubsub-test-192302"
}
]
{- "_id": "610addeadbeefaa86ec9a7d4",
- "_links": {
- "parent": {
- "href": "/api/v2/destinations",
- "type": "application/json"
}, - "self": {
- "href": "/api/v2/destinations/my-project/my-environment/610addeadbeefaa86ec9a7d4",
- "type": "application/json"
}
}, - "name": "string",
- "kind": "google-pubsub",
- "version": 1,
- "config": "{\"project\":\"test-prod\",\"topic\":\"ld-pubsub-test-192301\"}",
- "on": true,
- "_access": {
- "denied": [
- {
- "action": "string",
- "reason": {
- "resources": [
- "string"
], - "notResources": [
- "string"
], - "actions": [
- "string"
], - "notActions": [
- "string"
], - "effect": "string",
- "role_name": "string"
}
}
], - "allowed": [
- {
- "action": "string",
- "reason": {
- "resources": [
- "string"
], - "notResources": [
- "string"
], - "actions": [
- "string"
], - "notActions": [
- "string"
], - "effect": "string",
- "role_name": "string"
}
}
]
}
}
Delete a Data Export destination by ID.
Destination response
Invalid access token
Forbidden
Invalid resource identifier
Rate limited
curl -i -X DELETE \ 'https://app.launchdarkly.com/api/v2/destinations/{projectKey}/{environmentKey}/{id}' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "code": "unauthorized",
- "message": "invalid key"
}