v5

latestOpenAPI 3.0.3Apache 2.0raw.githubusercontent.com2026-02-283466592.5 MB
Audit log

Get audit log entry counts

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

post/api/v2/auditlog/counts

Query parameters

beforeinteger

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

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

afterinteger required

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

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

bucketsinteger

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

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

Request body

resourcesstring[]

Resource specifier strings

notResourcesstring[]

Targeted resources are the resources NOT in this list. The <code>resources</code> field must be empty to use this field.

actionsActionSpecifier[]

Actions to perform on a resource

notActionsActionSpecifier[]

Targeted actions are the actions NOT in this list. The <code>actions</code> field must be empty to use this field.

effect'allow' | 'deny' required

Whether this statement should allow or deny actions on the resources.

Example request

[
  {
    "resources": [
      "proj/*:env/*:flag/*;testing-tag"
    ],
    "actions": [
      "*"
    ],
    "effect": "allow"
  }
]

Response

Audit log entry counts response

totalCountinteger required
bucketIntervalMsinteger required