Audit
Navixy Repository API is a work in progress. This documentation is published for preview purposes only and doesn't reflect a stable release. Structure, field names, and behaviors are subject to change.
Audit trail for tracking changes and access to system resources.
Queries
auditEvents
Lists audit events for an organization.
auditEvents(
organizationId: ID!
filter: AuditEventFilter
first: Int
after: String
last: Int
before: String
orderBy: AuditEventOrder = { field: OCCURRED_AT, direction: DESC }
): AuditEventConnection!Arguments
organizationId
ID!
The organization to retrieve audit events for.
filter
AuditEventFilter
Filtering options for the returned audit events.
orderBy
AuditEventOrder
The ordering options for the returned audit events.
Input types:
AuditEventFilter
Filtering options for audit events.
actorIds
[ID!]
Filter by actors (OR within field).
aggregateTypes
[Code!]
Filter by entity types (OR within field).
aggregateIds
[ID!]
Filter by specific entity IDs (OR within field).
traceId
String
Filter by trace ID.
from
DateTime
Return events that occurred after this timestamp.
to
DateTime
Return events that occurred before this timestamp.
Output types:
AuditEventConnection
PageInfo (entity)
Information about the current page in a paginated connection.
hasNextPage
Boolean!
Whether more items exist after the current page.
hasPreviousPage
Boolean!
Whether more items exist before the current page.
startCursor
String
The cursor pointing to the first item in the current page.
endCursor
String
The cursor pointing to the last item in the current page.
entityHistory
Retrieves the change history for any entity.
Arguments
entityId
ID!
The ID of the entity to retrieve history for.
filter
AuditEventFilter
Filtering options for the returned audit events.
orderBy
AuditEventOrder
The ordering options for the returned audit events.
Input types:
AuditEventFilter
Filtering options for audit events.
actorIds
[ID!]
Filter by actors (OR within field).
aggregateTypes
[Code!]
Filter by entity types (OR within field).
aggregateIds
[ID!]
Filter by specific entity IDs (OR within field).
traceId
String
Filter by trace ID.
from
DateTime
Return events that occurred after this timestamp.
to
DateTime
Return events that occurred before this timestamp.
Output types:
AuditEventConnection
PageInfo (entity)
Information about the current page in a paginated connection.
hasNextPage
Boolean!
Whether more items exist after the current page.
hasPreviousPage
Boolean!
Whether more items exist before the current page.
startCursor
String
The cursor pointing to the first item in the current page.
endCursor
String
The cursor pointing to the last item in the current page.
Objects
AuditEvent
An audit log entry recording an event that occurred in the system.
Implements: Node
id
ID!
A globally unique identifier. This ID is opaque and should not be parsed by clients.
ipAddress
String
The client IP address.
userAgent
String
The client User-Agent string.
traceId
String
The distributed tracing ID (32 hex characters) for log correlation.
aggregateType
Code
The type of entity affected.
aggregateId
ID
The ID of the affected entity.
eventData
JSON
The event payload with details such as changed fields.
occurredAt
DateTime!
The date and time when the event occurred.
Inputs
AuditEventFilter
Filtering options for audit events.
actorIds
[ID!]
Filter by actors (OR within field).
aggregateTypes
[Code!]
Filter by entity types (OR within field).
aggregateIds
[ID!]
Filter by specific entity IDs (OR within field).
traceId
String
Filter by trace ID.
from
DateTime
Return events that occurred after this timestamp.
to
DateTime
Return events that occurred before this timestamp.
AuditEventOrder
Ordering options for audit events.
Enums
SourceType
The source type identifying the origin of an API request.
WEB
Request originated from a web browser application.
MOBILE
Request originated from a mobile application (iOS/Android).
API
Request made directly via the API.
INTERNAL
Request generated by an internal system process.
INTEGRATION
Request made by an external integration.
AuditEventType
The type of event recorded in the audit log.
LOGIN
A user successfully authenticated.
LOGOUT
A user ended their session.
FAILED_LOGIN
An authentication attempt failed.
PASSWORD_RESET
A password reset was initiated.
SESSION_EXPIRED
A session was terminated due to inactivity.
CREATED
A new entity was created.
UPDATED
An existing entity was modified.
DELETED
An entity was deleted.
RESTORED
A soft-deleted entity was restored.
ROLE_ASSIGNED
A role was assigned to an actor.
ROLE_REVOKED
A role was removed from an actor.
PERMISSION_GRANTED
A permission was granted to a role.
PERMISSION_REVOKED
A permission was removed from a role.
LINKED
Two entities were linked together.
UNLINKED
A link between entities was removed.
ATTACHED
An entity was added to a group.
DETACHED
An entity was removed from a group.
AuditEventOrderField
Fields available for ordering audit events.
OCCURRED_AT
Order by occurrence date.
Pagination types
AuditEventConnection
A paginated list of AuditEvent items.
Implements: Connection
AuditEventEdge
An edge in the AuditEvent connection.
Implements: Edge
cursor
String!
An opaque cursor for this edge.
Last updated
Was this helpful?