> For the complete documentation index, see [llms.txt](https://docs.sudoplatform.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sudoplatform.com/guides/decentralized-identity/cloud-agent/cloud-agent-admin-api/audit-logs.md).

# 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
  }
}
```
