Account usage (beta)

Get events usage

GET
/api/v2/usage/events/{type}

Get time-series arrays of the number of times a flag is evaluated, broken down by the variation that resulted from that evaluation. The granularity of the data depends on the age of the data requested. If the requested range is within the past two hours, minutely data is returned. If it is within the last two days, hourly data is returned. Otherwise, daily data is returned.

Authorization

ApiKey read, write
Authorization<token>

In: header

Scope: read, write

Path Parameters

type*string

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

Formatstring

Query Parameters

from?string

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

Formatstring
to?string

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

Formatstring

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v2/usage/events/string"
{  "_links": {    "property1": null,    "property2": null  },  "metadata": [    {      "property1": null,      "property2": null    }  ],  "series": [    {      "0": 11,      "1": 15,      "time": 1677888000000    }  ]}