audit-logs
The bearer token can be obtained by creating a ServiceAccount.
Cursor for pagination. Pass next_cursor from previous response.
Maximum number of items to return. Greater than 0, less than 1000.
25Filter logs from this timestamp (inclusive).
Filter logs until this timestamp (exclusive).
Filter by principal name.
Filter by operation ID (e.g., createUser).
Sort order by timestamp. Defaults to descending (most recent first).
descPossible values: List of audit log records.
Paginated list of audit logs using cursor-based pagination.
Opaque cursor for fetching the next page. Absent if no more results.
Error object.
GET /api/v1/audit-logs HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"id": "text",
"timestamp": "2026-01-01T00:00:00.000Z",
"principal": "text",
"delegation_info": {
"oauth2_authorization_id": "text",
"app_name": "text",
"app_display_name": "text"
},
"operation_id": "text",
"resource_lrn": "text",
"request": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"response": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
],
"next_cursor": "text"
}The bearer token can be obtained by creating a ServiceAccount.
Delete logs with timestamp before this value (exclusive).
Audit logs deleted successfully.
No content
Error object.
DELETE /api/v1/audit-logs?before=2026-01-01T00%3A00%3A00.000Z HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated
Was this helpful?

