/audit-logsAPI for searching audit logs. Limited to at most 30 day search, returns up to 100 records per page. Not recommended for bulk export.
Authorization
bearerAuth In: header
Query Parameters
Lower bound (inclusive) for the audit record timestamp.
date-timeUpper bound (exclusive) for the audit record timestamp.
date-timeFilter by authentication strategy.
Filter by service name.
Filter by HTTP method.
Filter out results by HTTP method.
items <= 10Free-text search over path, user ID, email, client IP, and status.
Additional user IDs to OR into free-text search.
items <= 100Maximum number of results to return.
1 <= value <= 100100Opaque page token from X-Next-Page-Token for the next page of older records.
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/audit-logs?start=2019-08-24T14%3A15%3A22Z&end=2019-08-24T14%3A15%3A22Z"[ { "timestamp": "2019-08-24T14:15:22Z", "auth_strategy": "string", "user_id": "string", "email": "string", "status": 0, "method": "string", "path": "string", "route": "string", "domain": "string", "duration_ms": 0, "client_ip": "string", "user_agent": "string" }]{ "code": "string", "message": "string", "details": [ { "code": "string", "message": "string" } ], "inner_error": { "code": "string", "message": "string" }}{ "code": "string", "message": "string", "details": [ { "code": "string", "message": "string" } ], "inner_error": { "code": "string", "message": "string" }}{ "code": "string", "message": "string", "details": [ { "code": "string", "message": "string" } ], "inner_error": { "code": "string", "message": "string" }}Rotate an API key POST
Rotate an API key. Issues a new key that copies the name and project of the rotated key, and schedules the rotated key to expire after a grace period so in-flight callers can swap over. The new plaintext key is returned once.
Download an audit-log export chunk GET
Download an organization's audit log records for a time range as a file, for archival, compliance, or offline analysis. For interactive browsing, use GET /audit-logs.