get_pricing
Spec 097 / ADR-035 Amendment C8. Returns the usage-tiered price schedule
for paid calls. Prices are integer strings of USDC atomic units
(6 decimals). Rows are {tier, from, to, price_atomic}; to is null for
the open tier. anonymous is the price a call without an API key pays.
The schedule is the compiled-in default unless a validated override is held
in KV (one KV read, no database read); schedule_source says which.
band is the floor and ceiling every tier price sits inside.
schedule_hash is the sha256 hex of the RFC 8785 canonical schedule, so a
consumer can tell when prices change.
counting_rule: the tier is set by settled paid calls per API key in the
current UTC calendar month; a call without a key pays the top-tier price;
a call counts only after a successful settle; the 402 response quotes the
price of the caller's next call. consistency_note: the count is kept in
KV, which is eventually consistent, so a tier boundary can drift by a few
calls.
Freshness: observed_at is the response time, valid_until is 24 hours
later, stale_if_error is 86400 seconds.
Add ?receipt=true for a signed Receipt v1.0 over the same payload.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| receipt | No | When true, attach a signed Receipt v1.0 committed to the transparency log. Additive — a signing failure never costs you the observation (ADR-014). |