Audit log

Get audit log entry counts

POST
/api/v2/auditlog/counts

Returns aggregate counts of audit log entries per time bucket. Used for dashboard overlays that show flag targeting changes.

Authorization

ApiKey read, write
Authorization<token>

In: header

Scope: read, write

Query Parameters

before?integer

A timestamp filter, expressed as a Unix epoch time in milliseconds. Defaults to now.

Formatint64
after*integer

A timestamp filter, expressed as a Unix epoch time in milliseconds. Required.

Formatint64
buckets?integer

Number of time buckets to divide the range into. Default 50, max 500.

Formatint64
member?string

A member ID that lets you filter counts to changes made by that member. Repeat the parameter to filter by multiple members.

Formatstring
token?string

An access token ID that lets you filter counts to changes made by that token. Repeat the parameter to filter by multiple tokens.

Formatstring

Request Body

application/json

[index: integer]?

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v2/auditlog/counts?after=0" \  -H "Content-Type: application/json" \  -d '[    {      "effect": "allow"    }  ]'
{  "buckets": [    {      "timestamp": 0,      "count": 0    }  ],  "totalCount": 0,  "bucketIntervalMs": 0}