Skip to main content
GET
/
api
/
v2
/
usage
/
events
/
{type}
Get events usage
curl --request GET \
  --url https://app.launchdarkly.com/api/v2/usage/events/{type} \
  --header 'Authorization: <api-key>'
{
  "_links": {},
  "metadata": [
    {}
  ],
  "series": [
    {
      "0": 11,
      "1": 15,
      "time": 1677888000000
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Path Parameters

type
string<string>
required

The type of event to retrieve. Must be either received or published.

Query Parameters

from
string<string>

The series of data returned starts from this timestamp. Defaults to 24 hours ago.

to
string<string>

The series of data returned ends at this timestamp. Defaults to the current time.

Response

Usage response

The location and content type of related resources

metadata
object[]
required

Metadata about each series

series
object[]
required

An array of data points with timestamps. Each element of the array is an object with a 'time' field, whose value is the timestamp, and one or more key fields. If there are multiple key fields, they are labeled '0', '1', and so on, and are explained in the metadata.

Example:
[{ "0": 11, "1": 15, "time": 1677888000000 }]