# Audit Logs

Audit logs are created automatically upon each call to the cloud agent admin API. Each audit log is of the `AuditLog` type, recording information about the call such as the authenticated user ID, the operation, arguments, return data and success status, and the user agent and HTTP response status.

## View audit logs

View audit logs, with pagination and filtering options. Returns a `nextToken` which can be passed into the same query in order to fetch subsequent pages.

```graphql
query MyQuery {
  auditLogs(
    page: {
      nextToken: null
    }
    filter: {}
  ) {
    items {
      requestId
      userId
      timestamp
      operationId
      operationArgs
      operationResultData
      isSuccess
      userAgent
      httpStatus
    }
    nextToken
  }
}
```
