Audit Logs API
Retrieve audit logs for key user, team, and authentication events
Start of time range to filter events (inclusive), in ISO 8601 format.
Example: 2025-01-01T00:00:00Z
End of time range to filter events (exclusive), in ISO 8601 format.
Example: 2025-01-31T23:59:59Z
Filter by a specific event type.
Common values might include:
team_member.addedteam_member.removedteam_member.updatedrole.assignedrole.revoked
Filter by the unique ID of the actor who triggered the event.
Filter by the email address of the actor who triggered the event.
Filter by the type of resource affected by the event.
For example: team, user, role, organization.
Filter by the unique ID of the resource affected by the event.
Sort order for results by timestamp.
asc- ascending (oldest first)desc- descending (newest first, default)
descPossible values: Maximum number of events to return in a single page.
Used together with offset for offset-based pagination.
Examples:
/api/v1/organization/audit-logs?limit=50&offset=0/api/v1/organization/audit-logs?limit=50&offset=50
50Number of items to skip before starting to collect the result set.
Used together with limit for offset-based pagination.
Examples:
- First page:
/api/v1/organization/audit-logs?limit=50&offset=0 - Second page:
/api/v1/organization/audit-logs?limit=50&offset=50
0Output format of the response.
json(default) — returns a JSON body.csv— returns a CSV file download.
Example:
/api/v1/organization/audit-logs?format=csv
jsonPossible values: A paginated list of audit log events, in JSON or CSV format.
Paginated audit log results.
Total number of items matching the filter (may be approximate).
1234Maximum number of items returned in this page.
50Offset used for this page.
0Invalid request parameters.
Authentication failed or missing credentials.
The client is authenticated but not authorized to view audit logs.
Too many requests (rate limit exceeded).
Internal server error.
Last updated
Was this helpful?
