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:
| Parameter | Type | Required | Description |
|---|---|---|---|
orgId | string | Yes | |
limit | number | Yes | |
cursor | string | No |
Output:
| Field | Type | Description |
|---|---|---|
data | object[] | |
nextCursor | string |
listByActor
List audit events for a specific actor
GET
Usage:
const result = await swirls.client.audit.listByActor({
actorId: '...',
limit: 1,
})Input:
| Parameter | Type | Required | Description |
|---|---|---|---|
actorId | string | Yes | |
limit | number | Yes | |
cursor | string | No |
Output:
| Field | Type | Description |
|---|---|---|
data | object[] | |
nextCursor | string |