# POST /api/v1/billing/ai/resume

> Resume Ai Features

- **Tag:** billing
- **Operation ID:** `resume_ai_features_api_v1_billing_ai_resume_post`

## Description

Resume AI features for the authenticated business.

Clears ``ai_paused_at`` and ``ai_paused_by_user_id``. Idempotent —
resuming an already-active business is a no-op. Returns the
refreshed AI usage payload so the widget transitions back to the
Calm / Warning / Overage state without a second round-trip.

## Authentication

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

## Responses

### 201 — Successful Response

### 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 POST 'https://api.ondayzero.com/api/v1/billing/ai/resume' \
  -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/billing/ai/resume', {
  method: 'POST',
  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.post("https://api.ondayzero.com/api/v1/billing/ai/resume", headers=headers)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/billing/resume-ai-features
- OpenAPI slice: https://www.ondayzero.com/docs/reference/billing/resume-ai-features/openapi.json
- Other endpoints in **billing**: https://www.ondayzero.com/docs/reference/billing
