GET /costs
Get the recognised monthly spend of the project bound to the key
Exact scope usage:read. Measures active subscriptions in USD cents; on-demand usage remains explicitly not_measured. No provider cost or payment identifier is returned.
API key (Bearer), on the public API endpoint.
Responses
| Status | Description | Body |
|---|---|---|
200 | Partial spend projection and explicit coverage | ProjectCosts |
401 | Key missing or invalid | Error |
403 | scope_missing (usage:read) | |
404 | project_not_found | |
503 | costs_unavailable |
Examples
curl
curl -X GET "$GALON_API_BASE/costs" \
-H "Authorization: Bearer $GALON_API_KEY"Node.js (SDK)
import { Galon } from "galon";
const galon = new Galon(process.env.GALON_API_KEY);
const result = await galon.costs.get();Python (SDK)
from galon import Galon
galon = Galon() # reads GALON_API_KEY
result = galon.costs.get()