> For the complete documentation index, see [llms.txt](https://docs.meganova.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.meganova.ai/api-reference/platform-api/get-credit-balance/low-balance-alert.md). Agents can also search and read this documentation through its [MCP server](https://docs.meganova.ai/~gitbook/mcp).

# Low-Balance Alerts

Configure email and in-platform notifications that fire when your credit balance drops below a threshold.

Get notified when your credit balance drops below a configurable threshold. Complements [auto-pay](https://docs.meganova.ai/api-reference/platform-api/get-credit-balance/auto-pay.md): alerts are purely informational and never charge your card.

> **Note:** This setting is not currently exposed in the console UI — it's available only via direct API call. If you use auto-pay, alerts are redundant; use them only if you specifically want notifications without automatic charges.

## Get Low-Balance Alert Settings

### HTTP Request

`GET` `{API_URL}/payment/low-balance-alert-setting`

### Response

```json
{
  "data": {
    "email_enabled": true,
    "notification_enabled": true,
    "threshold": "15.00"
  },
  "message": "Low balance alert settings retrieved successfully",
  "status": "success"
}
```

If you've never configured alerts, defaults are created and returned (`email_enabled=true`, `notification_enabled=true`, `threshold=15.00`).

### Example

```bash
curl -X GET '{API_URL}/payment/low-balance-alert-setting' \
  -H 'Authorization: Bearer {TOKEN/KEY}'
```

## Update Low-Balance Alert Settings

### HTTP Request

`PUT` `{API_URL}/payment/low-balance-alert-setting`

### Body Parameters

| Parameter              | Required | Type    | Description                                                    |
| ---------------------- | -------- | ------- | -------------------------------------------------------------- |
| `email_enabled`        | Yes      | bool    | Send alerts to your account email                              |
| `notification_enabled` | Yes      | bool    | Post an in-app notification                                    |
| `threshold`            | Yes      | decimal | Balance at or below which an alert fires, USD. Minimum `1.00`. |

> **Threshold behavior.** Changing the threshold resets the alert-state flag so you get a fresh alert the next time the balance is at or below the new threshold (preventing stale suppression).

### Example

```bash
curl -X PUT '{API_URL}/payment/low-balance-alert-setting' \
  -H 'Authorization: Bearer {TOKEN/KEY}' \
  -H 'Content-Type: application/json' \
  -d '{
    "email_enabled": true,
    "notification_enabled": false,
    "threshold": 25.00
  }'
```

### Errors

| Status | Reason                   |
| ------ | ------------------------ |
| `422`  | `threshold` below `1.00` |

## Related

* [Auto-Pay Settings](https://docs.meganova.ai/api-reference/platform-api/get-credit-balance/auto-pay.md) — Automatic top-ups when balance is low
* [User Credit Balance](https://docs.meganova.ai/api-reference/platform-api/get-credit-balance.md)
