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

KeyDatatypeRequiredDescription
limitstringMax number of results that should be returned
next_pagestringCursor that indicates where the next page of results should start.
starting_onstringRFC 3339 timestamp of the earliest audit log to return. Cannot be used with 'next_page'.
ending_beforestringRFC 3339 timestamp (exclusive). Cannot be used with 'next_page'.
sortstringSort order by timestamp, e.g. date_asc or date_desc. Defaults to date_asc.
resource_idstringOptional parameter that can be used to filter which audit logs are returned. If you specify resource_id, you must also specify resource_type.
resource_typestringOptional parameter that can be used to filter which audit logs are returned. If you specify resource_type, you must also specify resource_id.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;data&quot;:[{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;timestamp&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;actor&quot;:{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;email&quot;:&quot;\u003cstring\u003e&quot;},&quot;resource_type&quot;:&quot;\u003cstring\u003e&quot;,&quot;resource_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;action&quot;:&quot;\u003cstring\u003e&quot;,&quot;status&quot;:&quot;success&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;},{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;timestamp&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;actor&quot;:{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;email&quot;:&quot;\u003cstring\u003e&quot;},&quot;resource_type&quot;:&quot;\u003cstring\u003e&quot;,&quot;resource_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;action&quot;:&quot;\u003cstring\u003e&quot;,&quot;status&quot;:&quot;success&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;}],&quot;next_page&quot;:&quot;\u003cstring\u003e&quot;}