# GET /api/v1/businesses/{business_id}/cfo-portal/buckets

> List all managerial buckets (default + custom)

- **Tag:** cfo-portal
- **Operation ID:** `cfo_portal_list_buckets_api_v1_businesses__business_id__cfo_portal_buckets_get`

## Description

Return all managerial buckets available for this business.

The response includes both the built-in default buckets and any
custom buckets defined by this business. Default buckets have
``is_default: true`` rows are built-in buckets with fixed keys; use
PUT ``.../buckets/{bucket_key}`` to customize ``label`` and ``color``.

## Authentication

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

## Parameters

- `business_id` (path, string, required)

## Responses

### 200 — Successful Response

Schema: `CustomBucketsListResponse`

- `buckets` (array · CustomBucketResponse · required) → `CustomBucketResponse`
  - `id` (string · required)
  - `key` (string · required)
  - `label` (string · required)
  - `color` (string · required)
  - `classification` (string · required)
  - `sort_order` (integer · required)
  - `is_active` (boolean · required)
  - `is_default` (boolean) — True for built-in default buckets
  - `can_delete` (boolean) — Whether the bucket can be deleted from Recipe Book. Some built-in buckets are locked.

### 401 — Unauthorized - Authentication required

### 403 — Forbidden - Insufficient permissions

### 404 — Not Found - Resource does not exist

### 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/businesses/{business_id}/cfo-portal/buckets' \
  -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/businesses/{business_id}/cfo-portal/buckets', {
  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/businesses/{business_id}/cfo-portal/buckets", headers=headers)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/cfo-portal/cfo-portal-list-buckets
- OpenAPI slice: https://www.ondayzero.com/docs/reference/cfo-portal/cfo-portal-list-buckets/openapi.json
- Other endpoints in **cfo-portal**: https://www.ondayzero.com/docs/reference/cfo-portal
