POST to /v1/tools/{name} at https://api.stockcontext.com, with a JSON body and your key in the X-API-Key header. There are no GET product endpoints and no query-string parameters — inputs go in the JSON body.
This generated reference is schema-aware. Schema 2 is the default when
schema is omitted. Use { "schema": 1 } only for the frozen legacy wire.https://stockcontext.com/dashboard/keys). See Authentication.
Endpoints
HTTP tool surface: 10 data tools + stock_flag, a feedback endpoint.stock_universe and stock_technicals are schema-2 only; the frozen schema-1 tools are unchanged. Each endpoint has a generated reference page with its full request schema and a response example.
Parameter values
stock_financials.statement—financials(default; all three statements),income,balance, orcash_flow.stock_financials.period_kind—annual(default) orquarter.stock_financials.vintage—latest_restatedonly. Historical variants are not documented for new integrations because schema 2 does not advertise or serve them.detail(financials, overview) —concise(default) orfull.fulladdssourcesand hashes to each cell.stock_prices.view— schema 2 defaults tosnapshot;historyandcorporate_actionsare depth views.technicalsreturns a 200 recovery redirect tostock_technicals.stock_prices.range—1M,3M,6M,1Y(default),5Y, ormax.stock_technicals.indicators— optional SMA/EMA/RSI/MACD/Bollinger/ATR history columns;rangeapplies only when indicators are requested.stock_reference.catalog—refusal_tokens,refusal_reasons,operating_rules,concepts,units,shapes,fields,capabilities,coverage,filing_forms,8k_items, orform4_codes.stock_flag— feedback endpoint only. It records a bounded report and returns{ "data": { "received": true, "flag_id": "..." }, "meta": { "schema_version": "2" } }on success.
Response shape
A successful data tool returns asubject (the resolved entity and security), a data block, and a meta block:
data are typed cells: exact compact cells like { "v": "112010000000", "d": "≈$112B" }, decimal strings in aligned statement arrays, JSON numbers for ratios, or refusal objects.
Refusal envelope
Any value — a single field or a whole tool result — that cannot be proven returns the same flat envelope, never an empty200 and never a guessed number:
unavailable. Look up any token or recovery.action in the refusal_tokens catalog. See Response model.
Authentication and limits
Send your key inX-API-Key. Requests without a valid key are rejected before any work is done.
Plan limits:
Authenticated tool responses include
X-Credits-Remaining when Unkey reports remaining credits, and include X-RateLimit-Remaining / X-RateLimit-Reset when Unkey reports rate-limit state. See Plans and limits for the exact header behavior, including schema-2 304 responses.
Reference catalogs
The API describes itself.stock_reference serves deterministic catalogs so an agent can resolve tokens at runtime instead of hard-coding them: