List audit logs
GET/v1/default/banks/{bank_id}/audit-logsList audit log entries for a bank, ordered by most recent first.
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 |
transport | string | null | No | Filter by transport (http, mcp, system) |
start_date | string | null | No | Filter from this ISO datetime (inclusive) |
end_date | string | null | No | Filter until this ISO datetime (exclusive) |
limit | integer | No | Max items to return |
offset | integer | No | Offset for pagination |
Example Request
bash
curl -X GET 'https://api.hindsight.vectorize.io/v1/default/banks/your-bank-id/audit-logs' \
-H 'Authorization: Bearer hsk_your_api_key'Responses
200 — Successful Response
json
{
"bank_id": "Bank Id",
"total": 0,
"limit": 0,
"offset": 0,
"items": [
{
"id": "Id",
"action": "Action",
"transport": "Transport",
"bank_id": "string",
"started_at": "string",
"ended_at": "string",
"duration_ms": 0,
"request": {},
"response": {},
"metadata": {}
}
]
}422 — Validation Error
json
{
"detail": [
{
"loc": [
null
],
"msg": "Message",
"type": "Error Type",
"input": null,
"ctx": {},
"url": "URL"
}
]
}