---
title: "Get Cost Alerts"
method: GET
path: "/api/v1/costs/alerts"
---

# Get Cost Alerts

`GET /api/v1/costs/alerts`

Return active budget alerts and 30d/90d cost trends.

Reads the live cost data for the most recent run, checks whether spend
has reached the 80% or 95% alert threshold, and returns trend data
computed from ``.sdd/metrics/cost_history.jsonl``.

Both halves of this response are scoped to ``tenant_id``: ``alerts`` is
computed from the caller's tenant's spend against the caller's tenant's
cap, and ``trend`` / ``history_days`` are narrowed to snapshots recorded
for that same tenant.  A history snapshot written before per-tenant
attribution existed carries no tenant and is excluded from every scoped
trend, so a fresh deployment's 30/90-day averages start empty and fill in
as new, attributed snapshots accumulate.

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.net/sipyourdrink-ltd/apis/bernstein-task-server.md) · [All operations](https://skmtc.net/sipyourdrink-ltd/apis/bernstein-task-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sipyourdrink-ltd/bernstein-task-server/revisions/c731d9228f03/schema)
