Skip to main content

Dexwize Audit Service

Durable, per-tenant, hash-chained audit log (ADR-0008). Every request needs a bearer token with a tenant context. Writes are service-to-service only (audit_writer workload role, AuditWrite permission; no human role holds it). Reads need AuditRead and always return the caller's own tenant chain.

Version 1.0.0. Download the OpenAPI specification.

Authentication: bearer.

Operations​

MethodPathSummary
GET/v1/audit/anchorsDaily chain-head anchors for export to WORM storage
GET/v1/audit/eventsRead the caller tenant's chain, oldest first, paged by sequence
POST/v1/audit/eventsAppend an event to the caller tenant's chain (services only)
GET/v1/audit/exportSIEM export of the caller tenant's events (JSON lines or CEF)
GET/v1/audit/jit-sessionsJust-in-time operator sessions recorded on the caller tenant (newest first)
GET/v1/audit/jit-sessions/{grantId}Timeline of one JIT grant on the caller tenant
GET/v1/audit/platform/tenants/{tenantId}/jit-sessions/{grantId}Operator console view of one grant timeline (platform session without JIT only)
GET/v1/audit/verifyVerify the caller tenant's hash chain

GET /v1/audit/anchors​

Daily chain-head anchors for export to WORM storage

ParameterInTypeRequiredDescription
fromquerystringnoDefaults to 30 days ago
toquerystringnoDefaults to today
StatusDescriptionBody
200Anchors in the rangeAuditAnchor[]
403Caller lacks AuditRead

GET /v1/audit/events​

Read the caller tenant's chain, oldest first, paged by sequence

ParameterInTypeRequiredDescription
afterSequencequeryintegerno
limitqueryintegerno
StatusDescriptionBody
200One page of eventsAuditPage
401Missing or invalid token
403Caller lacks AuditRead

POST /v1/audit/events​

Append an event to the caller tenant's chain (services only)

ParameterInTypeRequiredDescription
Idempotency-KeyheaderstringnoUUID; a retried append with the same key returns the original event with 200.

Request body: AuditEntry (JSON).

StatusDescriptionBody
200Already appended under this idempotency keyAuditEvent
201AppendedAuditEvent
400Validation problem (field lengths, idempotency key)
401Missing or invalid token
403Caller lacks AuditWrite

GET /v1/audit/export​

SIEM export of the caller tenant's events (JSON lines or CEF)

ParameterInTypeRequiredDescription
formatquerystringno
afterSequencequeryintegerno
limitqueryintegerno
StatusDescriptionBody
200One event per line
400Unknown format
403Caller lacks AuditRead

GET /v1/audit/jit-sessions​

Just-in-time operator sessions recorded on the caller tenant (newest first)

StatusDescriptionBody
200One summary per grantJitSessionSummary[]
403Caller lacks AuditRead

GET /v1/audit/jit-sessions/{grantId}​

Timeline of one JIT grant on the caller tenant

ParameterInTypeRequiredDescription
grantIdpathstringyes
StatusDescriptionBody
200Calls in order (method, route template, status, duration, request id; no bodies)JitSessionTimeline
403Caller lacks AuditRead
404No calls recorded for this grant on this tenant

GET /v1/audit/platform/tenants/{tenantId}/jit-sessions/{grantId}​

Operator console view of one grant timeline (platform session without JIT only)

ParameterInTypeRequiredDescription
tenantIdpathstringyes
grantIdpathstringyes
StatusDescriptionBody
200Calls in orderJitSessionTimeline
403Caller lacks PlatformOperate or holds a JIT token
404No calls recorded

GET /v1/audit/verify​

Verify the caller tenant's hash chain

StatusDescriptionBody
200Verification resultVerifyResult
403Caller lacks AuditRead