---
title: "Get Costs"
method: GET
path: "/costs"
---

# Get Costs

`GET /costs`

Aggregate cost data across all runs.

Scans every persisted cost file in ``.sdd/runtime/costs/``, aggregates
per-agent and per-model totals, and computes cost attainment as
``(total_spent / total_budget) * 100``.  Budget of zero is treated as
unlimited - attainment is reported as 0.0 in that case.

## Query parameters

- `tenant` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `403` — Tenant access denied
- `404` — Tenant not found
- `422` — Validation Error

---

[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/versions/86f514b4e920/schema)
