SDKClient

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: '...',
})

Input:

ParameterTypeRequiredDescription
orgIdstringYes
limitnumberNo
cursorstringNo

Output:

FieldTypeDescription
dataobject[]
nextCursorstring

listByActor

List audit events for a specific actor

GET

Usage:

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

Input:

ParameterTypeRequiredDescription
actorIdstringYes
limitnumberNo
cursorstringNo

Output:

FieldTypeDescription
dataobject[]
nextCursorstring

listByApp

List audit events for one hosted app

GET

Usage:

const result = await swirls.client.audit.listByApp({
  orgId: '...',
  appId: '...',
})

Input:

ParameterTypeRequiredDescription
orgIdstringYes
appIdstringYes
fromstringNo
tostringNo
subjectsstring[]No
outcomes"success" | "failure" | "denied"[]No
limitnumberNo
cursorstringNo

Output:

FieldTypeDescription
dataobject[]
nextCursorstring

summarizeByApp

Count app-scoped sign-ins and workflow launches

GET

Usage:

const result = await swirls.client.audit.summarizeByApp({
  orgId: '...',
  appId: '...',
})

Input:

ParameterTypeRequiredDescription
orgIdstringYes
appIdstringYes
fromstringNo
tostringNo

Output:

FieldTypeDescription
signInsnumber
workflowLaunchesnumber

On this page