# Spend limits — Dizo API

`PUT https://api.dizo.ai/v1/billing/limits`

Account-wide monthly cap in USD, alert thresholds and a lock.

Set `monthly_cap_usd` to `null` for no cap. With `locked: true`, no API key can change billing settings.

**Cost:** Free. Charged: never.

## Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| `monthly_cap_usd` | number | null |  | Hard monthly ceiling, refills included. |
| `daily_cap_credits` | integer |  | Account daily credit limit. |
| `alerts_pct` | integer[] |  | e.g. [50,80,100]. |
| `alert_emails` | string[] |  | Who gets alerts. |
| `locked` | boolean |  | Block API changes to billing. |

## Example request
```json
{
  "monthly_cap_usd": 2000,
  "alerts_pct": [
    50,
    80,
    100
  ],
  "alert_emails": [
    "finance@example.com"
  ],
  "locked": false
}
```

## Example response
```json
{
  "limits": {
    "monthly_cap_usd": 2000,
    "alerts_pct": [
      50,
      80,
      100
    ],
    "locked": false
  }
}
```

## cURL
```bash
curl -X PUT https://api.dizo.ai/v1/billing/limits \
  -H "Authorization: Bearer $DIZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"monthly_cap_usd":2000,"alerts_pct":[50,80,100],"alert_emails":["finance@example.com"],"locked":false}'
```
