List Activity Logs
Lists the Activity Logs of the organisation, the newest first, one page at a time: the sign-ins of the administrators (also the refused sign-ins and the locked accounts), the calls that change data (each method except GET; a request that changes nothing, such as Create SSE ticket, has no entry), the webhooks that the platform sends and the changes of the status of each webhook (pause, resume, disable and enable), and the changes that a platform admin makes to the organisation (OrgUpdates entries). An entry holds no e-mail address: userName is the display name of the actor at the time of the read.
The list has the entries of the organisation and of its sandbox organisations. Each entry gives its tenant (tenantType, and sandboxOrgId and sandboxOrgName for a sandbox organisation) and its actor (actor): the API key of a call made with an API key, the administrator, the organisation (or the sandbox organisation) of a webhook, or the system. A name in the response is a display name, never an identifier. An older entry can have no tenantType: the platform did not record the tenant of each older call.
Use logType to keep only some types, tenant to keep the entries of one tenant, apiKeyId to keep the calls of one API key, and offset and limit to page through the list. The filters work together. auditLogsStats counts the entries of each type with the tenant and apiKeyId filters, whatever logType and the page.
No operation deletes an entry: the platform deletes the entries after the retention period of the installation (30 days by default). An API key with the older scope audit can also call this operation.
Authorizations
AuthorizationstringheaderrequiredYour API key with the prefix
ApiKey:ApiKey <your-api-key>. Get an API key.Scope:
audit-logs:read
Query parameters
offsetintegerNumber of records to skip for pagination. A negative or unreadable value falls back to
0.At least 0.
Default:
0limitintegerMaximum number of records to return per page.
Default:
10logType stringType of the entries: 1 Security, 2 API calls, 3 OrgUpdates, 4 UserUpdates, 5 Webhooks. Repeat the parameter, or separate the types with commas, for more than one type. The service ignores a value that is not a whole number of 1 or more. Without a usable value, the response has the entries of each type.
Example:
"1,3"tenantstringTenant of the entries:
mainfor the entries of the organisation itself,sandboxfor the entries of all its sandbox organisations, or thesandboxOrgIdof one sandbox organisation of the organisation (also of a deleted one). An entry without a known tenant (an older entry withouttenantType) matches no value. Without the parameter, the response has the entries of each tenant. Another value gives400.Example:
"main"apiKey Id stringIdentifier of an API key: only the entries made with this key. Without the parameter, the response has the entries of each actor.
Example:
"6af0a1b2c3d4e5f6a7b8c9d0"
Response
The entries on the page, the pagination data and the number of entries of each type.
logsobject[]The entries on this page, the newest first.
paginationobjectThe position of the page in the list.
auditLogs Stats objectThe number of entries of the organisation for each type, with the
tenantandapiKeyIdfilters (not only the page, and for each type whateverlogType). All0when the service cannot count them.