Download OpenAPI specification:Download
OpenAPI specification for audit export and search endpoints.
The Audit API provides:
/audit/search requires admin/compliance roleExports all audit events for the authenticated user with optional filtering by action and time range.
| from | string <date-time> Start timestamp (inclusive) in ISO 8601 format |
| to | string <date-time> End timestamp (inclusive) in ISO 8601 format |
| action | string Filter by action type |
{- "user_id": "user_123",
- "export_date": "2025-12-03T10:00:00Z",
- "events": [
- {
- "id": "evt_abc123",
- "timestamp": "2025-12-03T09:00:00Z",
- "action": "auth_started",
- "purpose": "login",
- "decision": "granted",
- "reason": "user_initiated"
}
], - "total": 1
}Searches audit events with optional filters for compliance and investigation workflows. Requires admin/compliance authorization.
| user_id | string Filter by user ID |
| action | Array of strings Filter by action type (repeat for multiple values) |
| purpose | string Filter by purpose |
| decision | string Filter by decision outcome |
| from | string <date-time> Start timestamp (inclusive) in ISO 8601 format |
| to | string <date-time> End timestamp (inclusive) in ISO 8601 format |
{- "results": [
- {
- "id": "evt_def456",
- "timestamp": "2025-12-03T09:05:00Z",
- "user_id": "user_123",
- "action": "consent_granted",
- "purpose": "registry_check",
- "decision": "granted",
- "reason": "user_initiated"
}
], - "total": 1,
- "took_ms": 12
}