Skip to main content
GET
/
v2
/
audit-logs
List Audit Logs
curl --request GET \
  --url https://public.api.serval.com/v2/audit-logs \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "teamId": "<string>",
      "timestamp": "2023-11-07T05:31:56Z",
      "actor": {
        "system": {
          "displayName": "<string>"
        },
        "id": "<string>"
      },
      "context": {
        "ipAddress": "<string>",
        "userAgent": "<string>"
      },
      "eventType": {
        "accessDeprovisioned": {
          "accessRequest": {
            "id": "<string>"
          },
          "entitlement": {
            "id": "<string>",
            "displayName": "<string>"
          },
          "resource": {
            "id": "<string>",
            "displayName": "<string>"
          },
          "user": {
            "id": "<string>",
            "displayName": "<string>",
            "email": "<string>",
            "name": "<string>"
          },
          "reason": "<string>",
          "ticket": {
            "id": "<string>"
          }
        }
      }
    }
  ],
  "nextPageToken": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

pageToken
string
pageSize
integer
startTime.seconds

Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.

startTime.nanos
integer

Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive.

Response

Success

data
AuditLogEvent · object[]
nextPageToken
string | null