List audit logs
When neither from nor to is supplied, results default to the last 7 days (the audit log is append-only and an unbounded scan would hit the entire table). Pass an explicit from for older entries.
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /admin/v1/audit-logs
- Auth: HTTP bearer
Query parameters
Type of actor that performed an action
Filter by actor type
Filter by actor ID
Filter by action (e.g., "api_key.create")
Filter by resource type (e.g., "api_key")
Filter by resource ID
Filter by organization ID
Filter by project ID
Start of time range (inclusive)
End of time range (exclusive)
Maximum number of results to return
Cursor for pagination (cursor-based pagination)
Pagination direction (forward or backward). Only used with cursor.
Response
List of audit log entries (defaults to the last 7 days when no from/to range is given)
Example response
{
"pagination": {
"has_more": true,
"limit": 100,
"next_cursor": "MTczMzU4MDgwMDAwMDphYmMxMjM0NS02Nzg5LTAxMjMtNDU2Ny0wMTIzNDU2Nzg5YWI"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.