Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Wealthnow Supply Chain API
version: '2.179'
description: 'Self-serve market data API tools, real-time where licensed: market data, fundamentals, options flow, credit, intraday tape, earnings transcripts, and an explainable ML signal ensemble. Authenticate with your Wealthnow API key via the `X-API-Key` header (or `Authorization: Bearer `). Calls are metered in credits and gated by plan tier. This is the curated public tool surface (no admin, deprecated, or data_pending_v1 shells). MCP `/mcp` serves these same tools: the default profile''s `tools/list` shows your callable operations as individual tools or product menus (`_tools`). `search_tools` finds any tool in this catalogue and `call_tool` runs one by name. The `profile=directory` profile shows individual operations without menus, search_tools or call_tool. `catalog=full` (tools/list params or `?catalog=full`) lists this whole live surface.'
contact:
url: https://firm.wealthnow.io
servers:
- url: https://firm.wealthnow.io
security:
- ApiKeyAuth: []
- BearerAuth: []
tags:
- name: Supply Chain
paths:
/api/v3/supply_chain/relationships/{ticker}:
get:
operationId: supply_chain_relationships
x-wealthnow-min-plan: pro
summary: 'The SUPPLY-CHAIN GRAPH around one company: its customers, suppliers…'
description: 'Available on the Pro plan and above. The SUPPLY-CHAIN GRAPH around one company: its customers, suppliers, competitors and partners in one call, each with the relationship''s start date, whether it is still open, which side reported it, and revenue dependence where it was estimated. Both directions are merged and normalised to the queried company''s point of view, so ''customers'' includes companies that report THIS company as their supplier. Call it to map second-order exposure (whose earnings move when this name moves) or to find the listed suppliers behind a product cycle. Defaults to CURRENT relationships; status=all or as_of=YYYY-MM-DD gives history. One entry per counterparty by default (several records can back one pair): group_by=record gives the underlying versions. revenue_percent belongs to the company named in revenue_percent_of_ticker, is an ESTIMATE on every row, and is present on only a minority of edges; coverage is reported per group.'
tags:
- Supply Chain
parameters:
- name: ticker
in: path
required: true
schema:
type: string
- name: rel_type
in: query
required: false
schema:
type: string
description: Restrict to one relationship group; omit for all four
enum:
- customers
- suppliers
- competitors
- partners
description: Restrict to one relationship group; omit for all four
- name: status
in: query
required: false
schema:
type: string
description: current = open relationships only (most history is closed)
enum:
- current
- all
default: current
description: current = open relationships only (most history is closed)
- name: as_of
in: query
required: false
schema:
type: string
description: YYYY-MM-DD point-in-time view (overrides status); not after today
description: YYYY-MM-DD point-in-time view (overrides status); not after today
- name: listed_only
in: query
required: false
schema:
type: boolean
description: Drop counterparties with no ticker (private companies)
default: false
description: Drop counterparties with no ticker (private companies)
- name: group_by
in: query
required: false
schema:
type: string
description: 'counterparty: one entry per company; record: every underlying relationship record (use with status=all for a relationship''s history).'
enum:
- counterparty
- record
default: counterparty
description: 'counterparty: one entry per company; record: every underlying relationship record (use with status=all for a relationship''s history).'
- name: limit
in: query
required: false
schema:
type: integer
default: 50
minimum: 1
maximum: 500
- name: company_id
in: query
required: false
schema:
type: string
description: Pin an exact entity when the symbol is ambiguous
description: Pin an exact entity when the symbol is ambiguous
responses:
'200':
description: 'Success: a FIRM response envelope; the tool-specific fields vary by endpoint.'
headers:
X-Request-ID:
$ref: '#/components/headers/X-Request-ID'
X-Credits-Cost:
$ref: '#/components/headers/X-Credits-Cost'
X-Credits-Remaining:
$ref: '#/components/headers/X-Credits-Remaining'
X-Credits-Receipt:
$ref: '#/components/headers/X-Credits-Receipt'
X-Credits-Settlement:
$ref: '#/components/headers/X-Credits-Settlement'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/FirmResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/ScopeDenied'
'404':
$ref: '#/components/responses/UnknownTicker'
'422':
$ref: '#/components/responses/ValidationError'
'429':
$ref: '#/components/responses/RateLimited'
'503':
$ref: '#/components/responses/Unavailable'
'504':
$ref: '#/components/responses/Timeout'
/api/v3/supply_chain/revenue_dependence/{ticker}:
get:
operationId: supply_chain_revenue_dependence
x-wealthnow-min-plan: pro
summary: 'REVENUE DEPENDENCE, both sides: the revenue-at-risk map around one company'
description: 'Available on the Pro plan and above. REVENUE DEPENDENCE, both sides: the revenue-at-risk map around one company. `customer_concentration`: how much of THIS company''s revenue each customer accounts for. `dependents_on_company`: other companies whose revenue depends on THIS one (e.g. a component maker that books most of its revenue from one handset vendor), the list that reprices when this name changes its orders, and it is in no filing screen. Percentages are of the DEPENDENT company''s revenue and every row names whose revenue it is, so the number can never be read backwards. Coverage is sparse and disclosed: only a minority of relationships carry an estimated percentage, so absence means UNKNOWN, never zero.'
tags:
- Supply Chain
parameters:
- name: ticker
in: path
required: true
schema:
type: string
- name: status
in: query
required: false
schema:
type: string
enum:
- current
- all
default: current
- name: as_of
in: query
required: false
schema:
type: string
description: YYYY-MM-DD point-in-time view; not after today
description: YYYY-MM-DD point-in-time view; not after today
- name: min_percent
in: query
required: false
schema:
type: number
description: Only rows at or above this percent of the dependent's revenue (percent, 0-100)
default: 0
minimum: 0
maximum: 100
description: Only rows at or above this percent of the dependent's revenue (percent, 0-100)
- name: limit
in: query
required: false
schema:
type: integer
default: 50
minimum: 1
maximum: 500
- name: company_id
in: query
required: false
schema:
type: string
description: Pin an exact entity when the symbol is ambiguous
description: Pin an exact entity when the symbol is ambiguous
responses:
'200':
description: 'Success: a FIRM response envelope; the tool-specific fields vary by endpoint.'
headers:
X-Request-ID:
$ref: '#/components/headers/X-Request-ID'
X-Credits-Cost:
$ref: '#/components/headers/X-Credits-Cost'
X-Credits-Remaining:
$ref: '#/components/headers/X-Credits-Remaining'
X-Credits-Receipt:
$ref: '#/components/headers/X-Credits-Receipt'
X-Credits-Settlement:
$ref: '#/components/headers/X-Credits-Settlement'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/FirmResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/ScopeDenied'
'404':
$ref: '#/components/responses/UnknownTicker'
'422':
$ref: '#/components/responses/ValidationError'
'429':
$ref: '#/components/responses/RateLimited'
'503':
$ref: '#/components/responses/Unavailable'
'504':
$ref: '#/components/responses/Timeout'
/api/v3/supply_chain/geo_revenue/{ticker}:
get:
operationId: supply_chain_geo_revenue
x-wealthnow-min-plan: pro
summary: 'GEOGRAPHIC REVENUE EXPOSURE for one company: where the revenue actually comes…'
description: 'Available on the Pro plan and above. GEOGRAPHIC REVENUE EXPOSURE for one company: where the revenue actually comes from, estimated region by region and country by country for a fiscal period, with a per-row confidence score. This is the tariff / geopolitical lens: it answers ''how much of this company''s revenue is China?'' for names that never break that out. Returns the requested hierarchy layer as `regions`, the country leaves as `countries`, concentration metrics (largest country share and an HHI), the period served and the other periods available. ?country=CN,TW returns a per-period HISTORY for exactly those countries. Each layer sums to 100 on its own, so never add a region to a country. Amounts carry NO currency code in the source and the reporting currency can change between periods, so compare on PERCENT, not amount. Estimates, not company-reported segments. For reported segments use /fundamentals/segments/{ticker}.'
tags:
- Supply Chain
parameters:
- name: ticker
in: path
required: true
schema:
type: string
- name: period
in: query
required: false
schema:
type: string
description: Fiscal period end YYYY-MM-DD; omit for the latest available
description: Fiscal period end YYYY-MM-DD; omit for the latest available
- name: layer
in: query
required: false
schema:
type: integer
description: Hierarchy layer returned as `regions` (0 = world, 4 = country)
default: 1
minimum: 0
maximum: 4
description: Hierarchy layer returned as `regions` (0 = world, 4 = country)
- name: country
in: query
required: false
schema:
type: string
description: Comma-separated ISO alpha-2 codes; switches to per-period history
description: Comma-separated ISO alpha-2 codes; switches to per-period history
- name: top_countries
in: query
required: false
schema:
type: integer
default: 25
minimum: 0
maximum: 250
- name: company_id
in: query
required: false
schema:
type: string
description: Pin an exact entity when the symbol is ambiguous
description: Pin an exact entity when the symbol is ambiguous
responses:
'200':
description: 'Success: a FIRM response envelope; the tool-specific fields vary by endpoint.'
headers:
X-Request-ID:
$ref: '#/components/headers/X-Request-ID'
X-Credits-Cost:
$ref: '#/components/headers/X-Credits-Cost'
X-Credits-Remaining:
$ref: '#/components/headers/X-Credits-Remaining'
X-Credits-Receipt:
$ref: '#/components/headers/X-Credits-Receipt'
X-Credits-Settlement:
$ref: '#/components/headers/X-Credits-Settlement'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/FirmResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/ScopeDenied'
'404':
$ref: '#/components/responses/UnknownTicker'
'422':
$ref: '#/components/responses/ValidationError'
'429':
$ref: '#/components/responses/RateLimited'
'503':
$ref: '#/components/responses/Unavailable'
'504':
$ref: '#/components/responses/Timeout'
components:
headers:
X-Credits-Remaining:
description: Your credit balance after this call settled. Omitted while the settlement is pending.
schema:
type: integer
example: 884
X-Error-Code:
description: The specific `error_code` when the body supplies one; otherwise the body's `error` code.
schema:
type: string
example: unknown_ticker
X-RateLimit-Reset:
description: When the current window resets, as a Unix timestamp in seconds.
schema:
type: integer
example: 1790139660
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
minimum: 1
example: 42
X-RateLimit-Remaining:
description: Requests left in the current window.
schema:
type: integer
minimum: 0
example: 29
X-RateLimit-Limit:
description: Requests your plan allows per rate-limit window.
schema:
type: integer
example: 30
X-Credits-Receipt:
description: Id of the credit reservation this call was metered against.
schema:
type: string
format: uuid
example: 6f1d2c3b-4a59-4e8d-9c7b-1a2b3c4d5e6f
X-Credits-Cost:
description: 'Credits this call cost once settled: the tool''s price when delivered, 0 when refunded (every non-2xx answer is refunded). Omitted while the settlement is pending.'
schema:
type: integer
minimum: 0
example: 1
X-Request-ID:
description: This request's id. Every error body repeats it as `request_id`; quote it when you contact support.
required: true
schema:
type: string
example: 0f3c9a2b7d4e4f1a9b6c5d8e2a1f7c30
X-Credits-Settlement:
description: '`consumed`: delivered and charged. `refunded`: not charged. `pending`: not confirmed yet; cost and balance are omitted and the call settles shortly.'
schema:
type: string
enum:
- consumed
- refunded
- pending
example: consumed
responses:
UnknownTicker:
description: 'No data source lists this ticker, active or delisted: the market-data listing and the security master both say it does not exist. `param` names the parameter. Not billed. Best-effort: it is answered only when the route itself found nothing, and after 20 lookups of new symbols per API key per minute the route''s own answer stands.'
headers:
X-Request-ID:
$ref: '#/components/headers/X-Request-ID'
X-Error-Code:
$ref: '#/components/headers/X-Error-Code'
X-Credits-Cost:
$ref: '#/components/headers/X-Credits-Cost'
X-Credits-Remaining:
$ref: '#/components/headers/X-Credits-Remaining'
X-Credits-Receipt:
$ref: '#/components/headers/X-Credits-Receipt'
X-Credits-Settlement:
$ref: '#/components/headers/X-Credits-Settlement'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
unknown_ticker:
summary: 'No data source lists this ticker, active or delisted: the market-data listing and the security master both say it does not exist'
value:
ok: false
error: unknown_ticker
detail: '''ZZZZQX'' is not a symbol in Wealthnow''s coverage of US-listed stocks, ETFs and ADRs, current or delisted: neither the market-data listing nor the security master knows it. Foreign listings (VOD.L, 7203.T) and index symbols (SPX) are outside this coverage; use the US ticker or ADR where there is one, or find the company by name with fundamentals_search. This call was not billed.'
param: ticker
ticker: ZZZZQX
request_id: 0f3c9a2b7d4e4f1a9b6c5d8e2a1f7c30
doc_url: https://app.wealthnow.io/docs/api-reference#error-responses
Unavailable:
description: The data could not be served completely right now; retry later. Not billed.
headers:
X-Request-ID:
$ref: '#/components/headers/X-Request-ID'
X-Error-Code:
$ref: '#/components/headers/X-Error-Code'
X-Credits-Cost:
$ref: '#/components/headers/X-Credits-Cost'
X-Credits-Remaining:
$ref: '#/components/headers/X-Credits-Remaining'
X-Credits-Receipt:
$ref: '#/components/headers/X-Credits-Receipt'
X-Credits-Settlement:
$ref: '#/components/headers/X-Credits-Settlement'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
paid_data_unavailable:
summary: The data could not be served completely right now; retry later
value:
ok: false
error: paid_data_unavailable
detail: a complete usable response was not available; this request is not billable
request_id: 0f3c9a2b7d4e4f1a9b6c5d8e2a1f7c30
doc_url: https://app.wealthnow.io/docs/api-reference#error-responses
ScopeDenied:
description: 'This API key is limited to some products and this tool is not one of them. `product` names the tool''s product and `scopes` the key''s products. An upgrade does not change it: use a key whose scopes include the product, or change this key''s scopes. Not billed.'
headers:
X-Request-ID:
$ref: '#/components/headers/X-Request-ID'
X-Error-Code:
$ref: '#/components/headers/X-Error-Code'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
scope_denied:
summary: This API key is limited to some products and this tool is not one of them
value:
ok: false
error: scope_denied
detail: this API key is limited to market_data, fundamentals, so it cannot call 'congressional'. Use a key whose scopes include 'congressional', or change this key's scopes under Developers, API Keys at https://app.wealthnow.io. This call was not billed.
product: congressional
scopes:
- market_data
- fundamentals
request_id: 0f3c9a2b7d4e4f1a9b6c5d8e2a1f7c30
doc_url: https://app.wealthnow.io/docs/api-reference#error-responses
RateLimited:
description: Your plan's rate limit is spent for this window. Retry after `Retry-After` seconds. Not billed.
headers:
X-Request-ID:
$ref: '#/components/headers/X-Request-ID'
X-Error-Code:
$ref: '#/components/headers/X-Error-Code'
Retry-After:
$ref: '#/components/headers/Retry-After'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
rate_limited:
summary: Your plan's rate limit is spent for this window
value:
ok: false
error: rate_limited
detail: plan 'free' rate limit (30/min) exceeded
request_id: 0f3c9a2b7d4e4f1a9b6c5d8e2a1f7c30
doc_url: https://app.wealthnow.io/docs/api-reference#error-responses
Timeout:
description: The request ran past the server's time budget; retry. Not billed.
headers:
X-Request-ID:
$ref: '#/components/headers/X-Request-ID'
X-Error-Code:
$ref: '#/components/headers/X-Error-Code'
X-Credits-Cost:
$ref: '#/components/headers/X-Credits-Cost'
X-Credits-Remaining:
$ref: '#/components/headers/X-Credits-Remaining'
X-Credits-Receipt:
$ref: '#/components/headers/X-Credits-Receipt'
X-Credits-Settlement:
$ref: '#/components/headers/X-Credits-Settlement'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
request_timeout:
summary: The request ran past the server's time budget; retry
value:
ok: false
error: request_timeout
detail: request exceeded the 22s time limit; retry, or narrow the request
request_id: 0f3c9a2b7d4e4f1a9b6c5d8e2a1f7c30
doc_url: https://app.wealthnow.io/docs/api-reference#error-responses
PaymentRequired:
description: 'Your plan does not include this tool, you are out of credits, or your workspace''s spend cap paused its keys. `plan_required` names the plan that unlocks the tool; `usage_exceeded` means the credit balance is spent; `spend_cap_reached` means the key is paused until the cap resets or is raised: `detail` names the cap and the reset, `cap_usd` and `resets_at` (ISO 8601) carry them, and `doc_url` links pricing and credits. Not billed.'
headers:
X-Request-ID:
$ref: '#/components/headers/X-Request-ID'
X-Error-Code:
$ref: '#/components/headers/X-Error-Code'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
plan_required:
summary: Your plan does not include this tool, you are out of credits, or your workspace's spend cap paused its keys
value:
ok: false
error: plan_required
detail: 'your plan ''free'' does not include ''news_sentiment'': upgrade to Starter to access it. Manage your plan at https://app.wealthnow.io'
request_id: 0f3c9a2b7d4e4f1a9b6c5d8e2a1f7c30
doc_url: https://app.wealthnow.io/docs/api-reference#error-responses
BadRequest:
description: 'The request is malformed, for example a ticker that is not a symbol: `invalid_ticker`, refused before any credit is reserved, with `param` naming the parameter. Not billed.'
headers:
X-Request-ID:
$ref: '#/components/headers/X-Request-ID'
X-Error-Code:
$ref: '#/components/headers/X-Error-Code'
X-Credits-Cost:
$ref: '#/components/headers/X-Credits-Cost'
X-Credits-Remaining:
$ref: '#/components/headers/X-Credits-Remaining'
X-Credits-Receipt:
$ref: '#/components/headers/X-Credits-Receipt'
X-Credits-Settlement:
$ref: '#/components/headers/X-Credits-Settlement'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
invalid_ticker:
summary: 'The request is malformed, for example a ticker that is not a symbol: `invalid_ticker`, refused before any credit is reserved, with `param` naming the parameter'
value:
ok: false
error: invalid_ticker
detail: 'The ticker ''$$$'' is malformed: send 1 to 24 letters or digits, with a share-class or exchange separator where the symbol has one (AAPL, BRK.B, BRK-B, VOD.L). This call was not billed.'
param: ticker
ticker: $$$
request_id: 0f3c9a2b7d4e4f1a9b6c5d8e2a1f7c30
doc_url: https://app.wealthnow.io/docs/api-reference#error-responses
ValidationError:
description: A parameter is missing, out of range or the wrong type; `param` names it. Not billed.
headers:
X-Request-ID:
$ref: '#/components/headers/X-Request-ID'
X-Error-Code:
$ref: '#/components/headers/X-Error-Code'
X-Credits-Cost:
$ref: '#/components/headers/X-Credits-Cost'
X-Credits-Remaining:
$ref: '#/components/headers/X-Credits-Remaining'
X-Credits-Receipt:
$ref: '#/components/headers/X-Credits-Receipt'
X-Credits-Settlement:
$ref: '#/components/headers/X-Credits-Settlement'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
validation:
summary: A parameter is missing, out of range or the wrong type; `param` names it
value:
ok: false
error: validation
detail: 'invalid ''limit'': Input should be greater than or equal to 1 (query.limit)'
param: limit
request_id: 0f3c9a2b7d4e4f1a9b6c5d8e2a1f7c30
doc_url: https://app.wealthnow.io/docs/api-reference#error-responses
Unauthorized:
description: Missing or invalid API key.
headers:
X-Request-ID:
$ref: '#/components/headers/X-Request-ID'
X-Error-Code:
$ref: '#/components/headers/X-Error-Code'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
unauthorized:
summary: Missing or invalid API key.
value:
ok: false
error: unauthorized
detail: 'invalid or missing API key. Send your key as ''Authorization: Bearer <key>'' (recommended), the ''X-API-Key'' header, or a ''?api_key=<key>'' query param. Get a key + docs at https://app.wealthnow.io/docs/quickstart'
request_id: 0f3c9a2b7d4e4f1a9b6c5d8e2a1f7c30
doc_url: https://app.wealthnow.io/docs/api-reference#error-responses
schemas:
Error:
type: object
description: The body of every error. `error` is a stable machine-readable code, `detail` says what went wrong, `param` names the parameter to fix when one is at fault, and `doc_url` links the error table (for `spend_cap_reached`, the pricing page). `scope_denied` adds `product` and `scopes`; `spend_cap_reached` adds `cap_usd` and `resets_at`. `?shape=firm` adds a short `message`.
required:
- ok
- error
- detail
properties:
ok:
type: boolean
const: false
error:
type: string
description: Machine-readable error code, snake_case.
examples:
- unknown_ticker
error_code:
type: string
description: Specific typed refusal code, when present; also carried by X-Error-Code.
detail:
type: string
description: What went wrong, in words.
message:
type: string
description: Short summary (`?shape=firm` only).
param:
type: string
description: The request parameter at fault, when one is.
doc_url:
type: string
format: uri
description: The documented error table.
request_id:
type: string
description: Same as the X-Request-ID header.
product:
type: string
description: '`scope_denied`: the product the tool belongs to.'
scopes:
type: array
items:
type: string
description: '`scope_denied`: the products this API key may call.'
cap_usd:
type:
- number
- 'null'
description: '`spend_cap_reached`: the workspace''s spend cap in USD.'
resets_at:
type:
- string
- 'null'
format: date-time
description: '`spend_cap_reached`: when the cap resets (ISO 8601, UTC).'
additionalProperties: true
FirmResponse:
type: object
description: Standard success envelope. Every endpoint returns `ok` + `timestamp`; the remaining fields are the tool-specific payload (hence additionalProperties).
properties:
ok:
type: boolean
timestamp:
type: string
format: date-time
required:
- ok
additionalProperties: true
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
BearerAuth:
type: http
scheme: bearer