# AccountRequests

The AccountRequests type of the TypeScript SDK, which accounts.getRequests take or answer.

```ts
type AccountRequests = {
  accountId: string
  estimated: boolean
  range: string
  retentionDays: number
  series: RequestsSeriesPoint[]
  total: number
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `accountId` | `string` | Account ULID identifier |
| `estimated` | `boolean` | True if metrics are sampled estimates |
| `range` | `string` | Time range queried |
| `retentionDays` | `number` | Analytics retention window in days |
| `series` | [`RequestsSeriesPoint[]`](/docs/sdks/typescript/types/requests-series-point) | One point per bucket that holds a call, oldest first. A bucket with no call is absent |
| `total` | `number` | Calls across the window: the series summed |

## Used by

| Method | What it does |
| --- | --- |
| [`accounts.getRequests`](/docs/sdks/typescript/accounts/get-requests) | Get account API call counts |
