# AccountEvents

The AccountEvents type of the TypeScript SDK, which accounts.listEvents take or answer.

```ts
type AccountEvents = {
  accountId: string
  domains: string[]
  domainsTruncated: boolean
  estimated: boolean
  events: AccountTrafficEvent[]
  nextCursor?: string
  range: string
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `accountId` | `string` | Account ID |
| `domains` | `string[]` | Domain names the query was scoped to |
| `domainsTruncated` | `boolean` | True if the account owns more domains than the query limit |
| `estimated` | `boolean` | True if numbers are estimated (false for authoritative logs) |
| `events` | [`AccountTrafficEvent[]`](/docs/sdks/typescript/types/account-traffic-event) | List of authoritative traffic events across the account's domains |
| `nextCursor` | `string` | Optional. Pagination cursor for next page of events |
| `range` | `string` | Time range queried (e.g. '24h', '7d') |

## Used by

| Method | What it does |
| --- | --- |
| [`accounts.listEvents`](/docs/sdks/typescript/accounts/list-events) | Query account delivery event log |
