GET
/
v1
/
logs
List Audit Logs
curl --request GET \
  --url https://public.api.serval.com/v1/logs \
  --header 'Authorization: Bearer <token>'
{
  "logs": [
    {
      "id": "<string>",
      "teamId": "<string>",
      "timestamp": "1s",
      "actor": {
        "user": {
          "displayName": "<string>",
          "email": "<string>",
          "name": "<string>"
        },
        "id": "<string>"
      },
      "context": {
        "ipAddress": "<string>",
        "userAgent": "<string>"
      },
      "eventType": {
        "accessPolicyCreated": {
          "accessPolicy": {
            "id": "<string>",
            "displayName": "<string>"
          }
        }
      }
    }
  ],
  "nextPageToken": "<string>"
}

Authorizations

Authorization
string
header
required

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

Query Parameters

pageSize
integer

Maximum number of audit logs to return. Default is 100, maximum is 1000.

pageToken
string

Token for pagination. Leave empty for the first request.

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

200
application/json

Success

The response is of type object.