Skip to main content
Activity Logs

List Activity Logs

GET/v4/audit/platform/admin/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

  • Authorizationstringheaderrequired

    Your API key with the prefix ApiKey: ApiKey <your-api-key>. Get an API key.

    Scope:audit-logs:read

Query parameters

  • offsetinteger

    Number of records to skip for pagination. A negative or unreadable value falls back to 0.

    At least 0.

    Default:0

  • limitinteger

    Maximum number of records to return per page.

    Default:10

  • logTypestring

    Type 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"

  • tenantstring

    Tenant of the entries: main for the entries of the organisation itself, sandbox for the entries of all its sandbox organisations, or the sandboxOrgId of one sandbox organisation of the organisation (also of a deleted one). An entry without a known tenant (an older entry without tenantType) matches no value. Without the parameter, the response has the entries of each tenant. Another value gives 400.

    Example:"main"

  • apiKeyIdstring

    Identifier 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

application/json

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.

  • paginationobject

    The position of the page in the list.

  • auditLogsStatsobject

    The number of entries of the organisation for each type, with the tenant and apiKeyId filters (not only the page, and for each type whatever logType). All 0 when the service cannot count them.