Audit logs endpoint

Audit logs documentation

This endpoint is only available through lokalise.ClientV1. It is not supported by the standard lokalise.Client.

Initialize the client as follows:

import lokalise

client = lokalise.ClientV1("YOUR_API_TOKEN")

Fetch audit logs

audit_logs(self[, params=None])
Parameters:

params (dict) – (optional) Pagination and filtering parameters.

Returns:

Collection of audit log events.

Example:

audit_logs = client.audit_logs({
  "limit": 100,
  "event_type": "project.deleted",
})

audit_logs.items[0].metadata["event_code"]  # => "project.deleted"
audit_logs.has_more # => True
audit_logs.next_cursor # => "some cursor"
audit_logs.has_next_cursor() # => True
audit_logs.is_last_page() # => False

To fetch the next set of results, pass next_cursor as the cursor parameter:

next_audit_logs = client.audit_logs({
  "limit": 100,
  "cursor": audit_logs.next_cursor,
})