added
New ability to read audit logs via the API
June 26th, 2025
🏷️ API version:
2025-07
Enterprise account admins can now query the account's audit logs through the new audit_logs
object. The paginated results can be filtered by user, start/end date, event types, and IP address.
query {
audit_logs(user_id: 1234567890, events: ["login", "logout"], limit: 100) {
logs {
timestamp
event
user_agent
user {
id
name
email
}
ip_address
}
pagination {
has_more_pages
next_page_number
}
}
}