Get audit logs
GET {{baseUrl}}/auditLogs?limit=<integer>&next_page=<string>&starting_on=<dateTime>&ending_before=<dateTime>&sort=date_asc&resource_id=<string>&resource_type=<string>
Retrieves a range of audit logs. If no further audit logs are currently available, the data array will be empty. As new audit logs are created, subsequent requests using the same next_page value will be in the returned data array, ensuring a continuous and uninterrupted reading of audit logs.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
limit | string | Max number of results that should be returned | |
next_page | string | Cursor that indicates where the next page of results should start. | |
starting_on | string | RFC 3339 timestamp of the earliest audit log to return. Cannot be used with 'next_page'. | |
ending_before | string | RFC 3339 timestamp (exclusive). Cannot be used with 'next_page'. | |
sort | string | Sort order by timestamp, e.g. date_asc or date_desc. Defaults to date_asc. | |
resource_id | string | Optional parameter that can be used to filter which audit logs are returned. If you specify resource_id, you must also specify resource_type. | |
resource_type | string | Optional parameter that can be used to filter which audit logs are returned. If you specify resource_type, you must also specify resource_id. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"data":[{"id":"\u003cstring\u003e","timestamp":"\u003cdateTime\u003e","actor":{"id":"\u003cstring\u003e","name":"\u003cstring\u003e","email":"\u003cstring\u003e"},"resource_type":"\u003cstring\u003e","resource_id":"\u003cstring\u003e","action":"\u003cstring\u003e","status":"success","description":"\u003cstring\u003e"},{"id":"\u003cstring\u003e","timestamp":"\u003cdateTime\u003e","actor":{"id":"\u003cstring\u003e","name":"\u003cstring\u003e","email":"\u003cstring\u003e"},"resource_type":"\u003cstring\u003e","resource_id":"\u003cstring\u003e","action":"\u003cstring\u003e","status":"success","description":"\u003cstring\u003e"}],"next_page":"\u003cstring\u003e"}