SWIRLS_
ReferenceSDKClient

Audit

SDK reference for audit — Audit log and compliance queries.

Audit log and compliance queries.

listByOrg

List audit events for an organization

GET

Usage:

const result = await swirls.client.audit.listByOrg({
  orgId: '...',
  limit: 1,
})

Input:

ParameterTypeRequiredDescription
orgIdstringYes
limitnumberYes
cursorstringNo

Output:

FieldTypeDescription
dataobject[]
nextCursorstring

listByActor

List audit events for a specific actor

GET

Usage:

const result = await swirls.client.audit.listByActor({
  actorId: '...',
  limit: 1,
})

Input:

ParameterTypeRequiredDescription
actorIdstringYes
limitnumberYes
cursorstringNo

Output:

FieldTypeDescription
dataobject[]
nextCursorstring

On this page