# GET /api/v1/o2c/deals/owners

> List sales reps with deals

- **Tag:** deals
- **Operation ID:** `list_deal_owners_api_v1_o2c_deals_owners_get`

## Description

Every distinct sales rep / deal owner on the business's deals, with their deal counts, plus how many deals have no owner yet. Feeds the pipeline's owner filter chips, which need the full roster rather than whichever owners happen to be on the current page.

## Authentication

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

## Responses

### 200 — Successful Response

Schema: `SuccessEnvelope_DealOwnersResponse_`

- `success` (boolean)
- `message` (string)
- `code` (string)
- `data` (DealOwnersResponse)

### 401 — Unauthorized - Authentication required

### 403 — Forbidden - Insufficient permissions

### 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/o2c/deals/owners' \
  -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/o2c/deals/owners', {
  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/o2c/deals/owners", headers=headers)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/deals/list-deal-owners
- OpenAPI slice: https://www.ondayzero.com/docs/reference/deals/list-deal-owners/openapi.json
- Other endpoints in **deals**: https://www.ondayzero.com/docs/reference/deals
