# GET /api/v1/attention/summary

> Attention summary counts

- **Tag:** attention
- **Operation ID:** `get_attention_summary_api_v1_attention_summary_get`

## Description

Counts used by the bell badge and the Action Items card. Combines unread inbox messages with live alert counts.

## Authentication

Bearer token in `Authorization` header.
Required header: `x-business-id: <business uuid>`.

## Parameters

- `client_view` (query, boolean, optional)

## Responses

### 200 — Successful Response

Schema: `AttentionSummary`

- `total` (integer · required) — All unread/undismissed items.
- `action_required` (integer · required) — Items requiring user action (drives the action items card).
- `urgent` (integer · required) — Urgent priority items.
- `high` (integer · required) — High priority items.
- `inbox_unread` (integer · required) — Persistent inbox unread count (separate from live alerts).
- `live_alerts` (integer · required) — Active live alerts (overdue bills, low balance, ...).

### 401 — Unauthorized - Authentication required

### 422 — Validation Error

Schema: `HTTPValidationError`

- `detail` (array · ValidationError) → `ValidationError`
  - `loc` (array · string | integer · required)
  - `msg` (string · required)
  - `type` (string · required)
  - `input` (object)
  - `ctx` (object)

## Code samples

### cURL

```bash
curl -X GET 'https://api.ondayzero.com/api/v1/attention/summary' \
  -H 'Authorization: Bearer dz_your_token' \
  -H 'x-business-id: YOUR_BUSINESS_ID'
```

### JavaScript

```javascript
const response = await fetch('https://api.ondayzero.com/api/v1/attention/summary', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer dz_your_token',
    'x-business-id': 'YOUR_BUSINESS_ID',
  },
});
const data = await response.json();
```

### Python

```python
import httpx

headers = {
    "Authorization": "Bearer dz_your_token",
    "x-business-id": "YOUR_BUSINESS_ID",
}

response = httpx.get("https://api.ondayzero.com/api/v1/attention/summary", headers=headers)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/attention/get-attention-summary
- OpenAPI slice: https://www.ondayzero.com/docs/reference/attention/get-attention-summary/openapi.json
- Other endpoints in **attention**: https://www.ondayzero.com/docs/reference/attention
