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 |
listExecutionLogs
List execution logs for a graph execution
GET
Usage:
const result = await swirls.client.audit.listExecutionLogs({
graphExecutionId: '...',
limit: 1,
})Input:
| Parameter | Type | Required | Description |
|---|---|---|---|
graphExecutionId | string | Yes | |
nodeExecutionId | string | No | |
limit | number | Yes | |
cursor | string | No |
Output:
| Field | Type | Description |
|---|---|---|
data | object[] | |
nextCursor | string |
listExecutionLogsByOrg
List execution logs for an organization
GET
Usage:
const result = await swirls.client.audit.listExecutionLogsByOrg({
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 |
listExecutionLogsByActor
List execution logs for a personal account user
GET
Usage:
const result = await swirls.client.audit.listExecutionLogsByActor({
userId: '...',
limit: 1,
})Input:
| Parameter | Type | Required | Description |
|---|---|---|---|
userId | string | Yes | |
limit | number | Yes | |
cursor | string | No |
Output:
| Field | Type | Description |
|---|---|---|
data | object[] | |
nextCursor | string |