v7

latestOpenAPI 3.0.1raw.githubusercontent.com2026-08-01426118.4 KB
Admin

Count trust-level audit logs for users

Returns the number of trust-level audit log entries for each requested user ID. Users with no audit logs are included with a count of 0. Up to 1000 user IDs are honored.

post/api/admin/v1/audit_logs/counts

Request body

user_idsinteger[] required

Array of user IDs (up to 1000). Required; a blank or non-array value returns 422.

Example request

{
  "user_ids": [
    42
  ]
}

Response

successful

countsobject

Map of user ID (as string) to audit log count.

Example response

{
  "counts": {
    "42": 3,
    "43": 0
  }
}