Skip to main content
GET
/
api
/
audit
/
v1
/
logs
List audit log events
curl --request GET \
  --url https://app.trelica.com/api/audit/v1/logs
{
  "next": "https://acme.example.com/api/audit/v1/logs?after=eyJpZCI6NTQyMTR9&limit=100",
  "results": [
    {
      "id": 54214,
      "published": "2020-12-22T09:09:01Z",
      "eventType": "employee_login_success",
      "client": {
        "ipAddress": "142.214.38.15"
      },
      "target": [
        {
          "id": "2dad1a642e744168c26b981ebfc1383f",
          "type": "User",
          "displayName": "John Doe",
          "alternateId": "john.doe@example.com"
        }
      ],
      "details": {
        "method": "password"
      }
    }
  ]
}

Query Parameters

filter
string

A SCIM-style filter expression restricting the items returned. See the Filtering section of the introduction for the operators and syntax; the filterable fields are listed per resource.

Filterable fields

  • string: actor.alternateId, actor.detail, actor.displayName, actor.id, actor.type, client.ipAddress, details, eventType, target.alternateId, target.displayName, target.id, target.type
  • number: id, uuid
  • date: published

Filter examples

  • eventType eq "employee_login_success" — Successful login events
  • eventType sw "integration_" — All integration-related events
  • actor.alternateId eq "john.doe@example.com" — Events performed by this user
  • target.type eq "CustomerApp" — Events whose target is an application
  • client.ipAddress eq "142.214.38.15" — Events originating from this IP address
  • published ge "2024-01-01" — Events published on or after 1 Jan 2024
q
string

Free-text search across the resource's displayable fields.

since
string<date-time>

Only return items modified at or after this ISO-8601 timestamp.

until
string<date-time>

Only return items modified at or before this ISO-8601 timestamp.

after
string

Opaque pagination cursor supplied by SaaS Manager via the link response header and the next field.

limit
integer
default:100

Maximum number of items to return per page (default 100, maximum 1000).

Required range: 1 <= x <= 1000

Response

OK

next
string

A cursor URL for the next page of results. Unlike the rest of the SaaS Manager API (which returns no value once paging is complete), the audit log is an append-only stream: this URL always points at where to resume, so keep following it to receive new events as they are written. The same URL is also returned in the link response header with rel="next".

results
object[]

The audit log events for this page, oldest first (or newest first when sortOrder is DESCENDING).