Get audit events
Returns a list of audit events for an organization. Requires a personal access token with the organization:audit_events_read scope. The token owner must be an administrator of the organization.
/v1/organizations/{organizationId}/audit_eventsAuthorizationBearer token (holst_pat_...) · headerrequiredHolst personal access token sent in the Authorization header using the Bearer holst_pat_... format.
organizationIdstring<uuid>requiredID of the organization for which to return audit events.
actionTypesstring[]Audit action types to include. Separate multiple values with commas. All action types are returned when this parameter is omitted.
startTimestring<date-time>Earliest event time to include, in RFC 3339 format. The boundary is inclusive. When omitted, no lower time boundary is applied.
endTimestring<date-time>Latest event time to include, in RFC 3339 format. The boundary is inclusive and must not be earlier than startTime. When omitted, no upper time boundary is applied. For a stable finite export in ascending order, set endTime and keep it unchanged on every page.
pageSizeintegerMaximum number of events per page.
orderstringSort direction by occurredAt, then by id.
ascdesccursorstringPagination cursor from nextCursor in a previous response. The cursor is opaque, marks a position only, and does not preserve query parameters. Keep the same filters and sort order when retrieving the next page. Changing them can cause events to be skipped or repeated.
A page of organization audit events.
auditEventsAuditEvent[]requiredAudit events in the requested sort order.
Show propertiesHide properties
AuditEventidstringrequiredoccurredAtstring<date-time>requiredactionAuditEventActionrequiredShow propertiesHide properties
typestringrequiredExtensible identifier of the action.
detailsobjectrequiredAction-specific metadata whose fields depend on action.type.
actorAuditEventActorrequiredShow propertiesHide properties
typestringrequiredActor type: user, anonymous, system, or unknown.
idstringrequirednamestringemailstringcontextAuditEventContextrequiredShow propertiesHide properties
requestIdstringsessionIdstringrequestIpstringscopeAuditEventScoperequiredShow propertiesHide properties
organizationIdstringrequiredworkspaceIdstringworkspaceNamestringchannelIdstringentityAuditEventEntityrequiredShow propertiesHide properties
typestringEntity type: channel, workspace, organization, or user.
subtypestringidstringnamestringemailstringnextCursorstringCursor for retrieving the next page. Omitted when there are no more events.
The request is invalid.
errCodestringrequiredMachine-readable error code.
msgstringrequiredHuman-readable error message.
varsobject | nullrequiredStructured values associated with the error, or null.
Authentication credentials are missing or invalid.
errCodestringrequiredMachine-readable error code.
msgstringrequiredHuman-readable error message.
varsobject | nullrequiredStructured values associated with the error, or null.
The authenticated client does not have permission to perform the operation.
errCodestringrequiredMachine-readable error code.
msgstringrequiredHuman-readable error message.
varsobject | nullrequiredStructured values associated with the error, or null.
The authenticated user has exceeded the request rate limit.
errCodestringrequiredMachine-readable error code.
msgstringrequiredHuman-readable error message.
varsobject | nullrequiredStructured values associated with the error, or null.
An unexpected error occurred while processing the request.
errCodestringrequiredMachine-readable error code.
msgstringrequiredHuman-readable error message.
varsobject | nullrequiredStructured values associated with the error, or null.