Audit log statistics
GET/v1/default/banks/{bank_id}/audit-logs/statsGet audit log counts grouped by time bucket for charting.
Authentication required — include an
Authorization: Bearer hsk_...header. See Authentication for details.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
bank_id | string | Yes |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
action | string | null | No | Filter by action type |
period | string | No | Time period: 1d, 7d, or 30d |
Example Request
bash
curl -X GET 'https://api.hindsight.vectorize.io/v1/default/banks/your-bank-id/audit-logs/stats' \
-H 'Authorization: Bearer hsk_your_api_key'Responses
200 — Successful Response
json
{
"bank_id": "Bank Id",
"period": "Period",
"trunc": "Trunc",
"start": "Start",
"buckets": [
{
"time": "Time",
"actions": {},
"total": 0
}
]
}422 — Validation Error
json
{
"detail": [
{
"loc": [
null
],
"msg": "Message",
"type": "Error Type",
"input": null,
"ctx": {},
"url": "URL"
}
]
}