# Spending limits and usage

> Set monthly spending alerts and hard caps in DASTER, and see usage by project and product so a bill never surprises you.

Source: https://daster.io/docs/billing/spending-limits-and-usage/ · Last updated: 2026-11-29

## Spending limits

1. Open **Billing & wallet › Limits & alerts**.
2. For the organization, or for one project, set:
   - a **monthly alert** amount, and
   - a **monthly hard limit**, at least as high as the alert,
   - and whether to **enforce the hard cap**.
3. Save. Each limit shows this month's spend and how much of it is used.

With the hard cap enforced, usage that would pass it is refused (`spending_limit_exceeded`, 402).

## Usage

- **Billing & wallet › Usage by project** shows each project's usage this billing period.
- A project's **Usage & cost** page shows its own usage.
- Database, Authentication and Realtime pages show what was measured this month.

DASTER measures usage in categories such as compute, databases, storage, bandwidth, business email, domains, push notifications and WordPress hosting.

**Billing & wallet** also shows a month-end forecast, a straight-line estimate from what was used so far, and the earlier billing periods (up to the newest 12).

## With the API

```http
POST /v1/organizations/{organizationId}/billing/spending-limits
Content-Type: application/json
X-Daster-Csrf: <csrf>
Idempotency-Key: limit-org-1

{
  "scopeType": "organization",
  "monthlySoftAlertCents": 2000,
  "monthlyHardLimitCents": 2500,
  "enforceHardCap": true
}
```

For a project, send `"scopeType": "project"` and `projectId`. Add `?projectId=…` to `GET …/billing` to read one project's usage. `GET …/billing/usage-periods` returns the newest 12 periods and the forecast.
