Playground

Playground

AuditEvent

/api/v1/audit-events

A security/audit log line.

listgetlog

Schema

FieldTypeNotes
id*uuidServer-assigned ULID with type prefix (e.g. per_…).
tenant_id*stringTenant scope — auto-stamped from the caller's JWT.
app_idstringApp scope. Stamped ONLY when the caller's JWT was minted for a specific Application (integration API keys). Absent for human-user sessions. Filters reads when present.
created_at*date-timeServer stamp.
updated_at*date-timeServer stamp; updated on every patch.
created_byuuidPerson id from the caller's JWT (sub).
updated_byuuidPerson id from the last writer's JWT (sub).
sourcestringProvenance tag — defaults to 'edm'.
source_typeenumfrontend | backend | server | system | apiWhere the write originated. Defaults to 'api'.
is_deletedbooleanSoft-delete flag. Excluded from default list queries.
deleted_atdate-timeStamped when soft-deleted; null otherwise.
deleted_byuuidPerson id who soft-deleted; null otherwise.
schema_versionnumberDocument schema version. Bumped on incompatible writes.
sequence_idnumberMonotonic per-tenant sequence number. Used to detect gaps in the chain.
actor_typestringClassification of the actor that performed the action.
actor_idstringIdentifier of the actor — a userId or service account ID.
impersonated_user_idstringSet when an admin or impersonator acts on behalf of another user.
actionstringDot-separated action name describing the operation performed (e.g. 'accounts.create', 'policy.activate', 'evidence.export').
resource_typestringEDM entity type of the affected resource (e.g. 'Person', 'SoftwareLicense').
resource_idstringIdentifier of the affected resource.
outcomestringResult of the action.
reasonstringReason for a denial or error outcome.
beforejsonSnapshot of the resource state before the mutation. Automatically populated for EDM operations.
afterjsonSnapshot of the resource state after the mutation. Automatically populated for EDM operations.
changesjsonComputed diff of changed fields between before and after snapshots.
ipstringSource IP address of the originating request.
user_agentstringUser-Agent string of the originating HTTP client.
request_idstringCorrelation ID for distributed tracing across services.
policy_decision_idsjsonIdentifiers of Rego policy decisions that gated this action.
previous_hashstringSHA-256 hash of the previous AuditEvent in the tenant chain. Read-only; populated by the platform.
record_hashstringHMAC-SHA-256 of this record using the CORESDK_AUDIT_HMAC_KEY. Read-only; populated by the platform.
worm_refstringMinIO Object Lock URL once this event has been flushed to the WORM archive. Read-only; null until archived.
tsdate-timeISO 8601 UTC timestamp of when the event occurred.

API

Loading manifest…