Required permission
Account > Admin > AuditLogs > Read
Query parameters
cursor
stringThe cursor returned from the previous page of results, used to request the next page.min length24max length24per_page
integerThe number of results to return. When `includeSpec` is true, the default and maximum are 20.min1max100includeSpec
booleanInclude decrypted before and after resource specifications. This can expose secret values and requires audit log specification access.after
stringInclude events created at or after this ISO-8601 timestamp.before
stringInclude events created at or before this ISO-8601 timestamp.event
stringStored audit event name. Repeat `event` to select up to 50 distinct event names.min length1max length256apiTokenUid
stringStored API token UID.min length24max length24sourceWorkloadUid
stringStored source workload UID.min length24max length24teamUid
stringStored child team UID. This filter is available only for organization scope.min length24max length24projectUid
stringStored project UID.min length24max length24resourceType
stringStored resource type.min length1max length256resourceUid
stringStored resource UID.min length24max length24resourceId
stringStored resource ID. This filter requires `resourceType`.min length1max length256
Response body
- {object}Response object.
data
{object} requiredResult data.auditLogs
[array] requiredAudit events in newest-first cursor order.- {object}Public audit log list item.
uid
string requiredAudit event UID.min length24max length24event
stringStored audit event name when available.createdAt
string requiredTime when the audit event was created.updatedAt
string requiredTime when the audit event was last updated.operationCompletedAt
stringTime when the audited operation completed.origin
stringStored audit event origin.trigger
stringStored audit event trigger.pending
boolean requiredWhether the audited operation is pending.success
booleanWhether the audited operation succeeded.finalizationStatus
stringCompleteness of audit event finalization.one ofpending, complete, incompletestateCapture
{object}Completeness of the stored before and after state.before
stringone ofpending, complete, incomplete, skipped, notCapturedafter
stringone ofpending, complete, incomplete, skipped, notCapturedcaller
{object}Stored caller identifiers. Values are not resolved from live identity records.uid
string requiredStored root caller UID.min length24max length24apiToken
{object}Stored API token snapshot for the request.uid
string requiredStored API token UID.min length24max length24scope
{object} requiredStored scope of the audit event.entityUid
stringStored entity UID.min length24max length24entityType
stringStored entity type.organizationUid
stringStored organization UID.min length24max length24projectUid
stringStored project UID.min length24max length24sourceWorkloadUid
stringStored source workload UID.min length24max length24sourceWorkloadType
stringStored source workload type.resources
[array] requiredDeduplicated stored resource references without specifications.- {object}Stored resource reference. Resource specifications are not returned.
uid
string requiredPermanent identifier for the resource. Unlike `id`, it never changes and is never reused.min length24max length24id
stringStored resource ID.type
stringStored resource type.before
[array]Stored resource states before the event. Returned only when `includeSpec` is true.- {object}Stored resource state with its decrypted specification when available.
uid
string requiredPermanent identifier for the resource. Unlike `id`, it never changes and is never reused.min length24max length24id
stringStored resource ID.type
stringStored resource type.spec
{object}Stored decrypted resource specification.specSanitization
stringProtection that the audit store applied to the specification.one ofschema_encrypted, secrets_excludedspecSanitizationVersion
integerStored specification protection version.min1after
[array]Stored resource states after the event. Returned only when `includeSpec` is true.- {object}Stored resource state with its decrypted specification when available.
uid
string requiredPermanent identifier for the resource. Unlike `id`, it never changes and is never reused.min length24max length24id
stringStored resource ID.type
stringStored resource type.spec
{object}Stored decrypted resource specification.specSanitization
stringProtection that the audit store applied to the specification.one ofschema_encrypted, secrets_excludedspecSanitizationVersion
integerStored specification protection version.min1parentUids
[array] requiredStored parent audit event UIDs.- stringmin length24max length24
pagination
{object} requiredData about the endpoint pagination.hasNextPage
boolean requiredIs there another page of results available?cursor
stringThe cursor to access the next page of results.count
number requiredThe number of results returned by this request.
GET /v1/audit-logs
GET /v1/teams/{teamId}/audit-logs
Example response
200 OK
JSON
{
"data": {
"auditLogs": [
{
"resources": [
{
"uid": "68f0aa1b9c4e2d7f11a3b402"
}
],
"before": [
{
"uid": "68f0aa1b9c4e2d7f11a3b402"
}
],
"after": [
{
"uid": "68f0aa1b9c4e2d7f11a3b402"
}
]
}
]
},
"pagination": {
"hasNextPage": false,
"count": 1
}
}