Stonewake Risk Config API
The Risk Config API from Stonewake — 1 operation(s) for risk config.
The Risk Config API from Stonewake — 1 operation(s) for risk config.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/stonewake-ai:stonewake-ai-risk-config-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Stonewake Risk Config API
description: 'Read-only API for Stonewake credit monitoring, entity risk, and country intelligence. Documentation and setup guides: https://docs.stonewake.ai. Access is arranged per customer workspace.'
termsOfService: https://stonewake.ai/terms
contact:
name: Stonewake
url: https://stonewake.ai/contact
email: contact@stonewake.ai
license:
name: Proprietary
url: https://stonewake.ai/terms
version: 1.0.0
servers:
- url: https://api.stonewake.ai
description: Production
tags:
- name: Risk Config
paths:
/v1/risk-config:
get:
tags:
- Risk Config
summary: Get Risk Config
description: 'The rubric currently scoring the caller-team''s exposures (its active
profile, or version=null for the built-in desk default).'
operationId: get_risk_config_v1_risk_config_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/V1RiskConfigOut'
headers:
RateLimit-Policy:
description: The traffic ceilings that apply, one item per ceiling, each q requests per w seconds (docs.stonewake.ai/errors).
required: true
schema:
type: string
'401':
description: The credential was missing or not accepted, code unauthenticated. The body is the same for every cause.
content:
application/json:
schema:
$ref: '#/components/schemas/V1ErrorOut'
headers:
RateLimit-Policy:
description: The traffic ceilings that apply, one item per ceiling, each q requests per w seconds (docs.stonewake.ai/errors).
required: true
schema:
type: string
'403':
description: The credential or the workspace does not allow this request, code forbidden.
content:
application/json:
schema:
$ref: '#/components/schemas/V1ErrorOut'
headers:
RateLimit-Policy:
description: The traffic ceilings that apply, one item per ceiling, each q requests per w seconds (docs.stonewake.ai/errors).
required: true
schema:
type: string
'429':
headers:
Retry-After:
description: Seconds to wait before the next request.
schema:
type: integer
required: true
RateLimit-Policy:
description: The traffic ceilings that apply, one item per ceiling, each q requests per w seconds (docs.stonewake.ai/errors).
required: true
schema:
type: string
description: A traffic ceiling was reached, code rate_limited or daily_quota_exceeded. Retry after the seconds in Retry-After.
content:
application/json:
schema:
$ref: '#/components/schemas/V1RetryErrorOut'
'503':
headers:
Retry-After:
description: Seconds to wait before the next request.
schema:
type: integer
RateLimit-Policy:
description: The traffic ceilings that apply, one item per ceiling, each q requests per w seconds (docs.stonewake.ai/errors).
required: true
schema:
type: string
description: The request could not be served safely, code quota_unavailable, server_busy or service_unavailable. Retry after the seconds in Retry-After where it is sent, otherwise with backoff. A service_unavailable 503 also carries detail.
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/V1ErrorOut'
- $ref: '#/components/schemas/V1RetryErrorOut'
- $ref: '#/components/schemas/V1DetailOut'
title: Response 503 Get Risk Config V1 Risk Config Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
headers:
RateLimit-Policy:
description: The traffic ceilings that apply, one item per ceiling, each q requests per w seconds (docs.stonewake.ai/errors).
required: true
schema:
type: string
security:
- bearerAuth: []
components:
schemas:
V1RetryErrorBodyOut:
properties:
code:
type: string
title: Code
description: rate_limited or daily_quota_exceeded on a 429, server_busy on a 503.
message:
type: string
title: Message
description: Plain text, one fixed message per code. docs.stonewake.ai/errors lists it.
retry_after_seconds:
type: integer
title: Retry After Seconds
description: Seconds to wait before the next request, equal to the Retry-After header.
type: object
required:
- code
- message
- retry_after_seconds
title: V1RetryErrorBodyOut
description: A refusal that names when to retry, a traffic ceiling or server_busy.
RollupConfig:
properties:
amber_from:
type: number
maximum: 100.0
minimum: 0.0
title: Amber From
default: 30
description: The weighted score at or above which the status is amber, 0 to 100.
red_from:
type: number
maximum: 100.0
minimum: 0.0
title: Red From
default: 60
description: The weighted score at or above which the status is red, 0 to 100.
min_completeness:
type: number
maximum: 1.0
minimum: 0.0
title: Min Completeness
default: 0.4
description: The reachable share below which, with at least one open gap, the status is insufficient, 0 to 1.
additionalProperties: false
type: object
title: RollupConfig
description: 'Weighted score -> entity status. At or above `red_from` the entity is red,
at or above `amber_from` amber, else green. Below `min_completeness` of the
REACHABLE share (v25: evidenced plus register-quiet weight over the applicable
weight a source for the entity''s jurisdiction can serve; conservative assumed
rows never count as seen) AND with at least one open gap, the status is
`insufficient`, never a green built on missing data.'
V1DetailOut:
properties:
error:
$ref: '#/components/schemas/V1ErrorBodyOut'
description: The refusal, its code service_unavailable and that code's fixed message.
detail:
type: string
title: Detail
description: Why the request could not be served, in one plain sentence. Retry with backoff.
type: object
required:
- error
- detail
title: V1DetailOut
description: A 503 that names no code of its own, so it carries the envelope code service_unavailable beside its detail. Retry with backoff.
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
description: Where the failure is, the part of the request (path, query or body) and then the parameter or field.
msg:
type: string
title: Message
description: What failed, in one plain sentence. For an unknown query parameter it names the parameters the endpoint reads.
type:
type: string
title: Error Type
description: The kind of failure, such as missing, value_error, extra_forbidden for a query parameter the endpoint does not read, literal_error for a closed value outside its list, finite_number for a number that is not finite, such as 1e400, inf or nan, timezone_aware for a date and time without a UTC offset, or too_many_errors for the entry that counts the entries beyond the first 10.
type: object
required:
- loc
- msg
- type
title: ValidationError
V1ErrorBodyOut:
properties:
code:
type: string
title: Code
description: A stable code, today one of unauthenticated (401), forbidden (403), not_found (404), method_not_allowed (405, a method the path does not serve, so no operation declares it), content_too_large (413), validation_failed (422), rate_limited and daily_quota_exceeded (429), internal_error (500), quota_unavailable, server_busy and service_unavailable (503). New codes may be added over time.
message:
type: string
title: Message
description: Plain text, one fixed message per code, except quota_unavailable, whose message names which of its two counts could not be verified. docs.stonewake.ai/errors lists every message.
type: object
required:
- code
- message
title: V1ErrorBodyOut
description: 'One refusal. Branch on code, never on message. Codes are stable, and new
codes may be added over time.'
BankHealthConfig:
properties:
cet1_amber_at:
type: number
exclusiveMaximum: 1.0
exclusiveMinimum: 0.0
title: Cet1 Amber At
default: 0.14
description: The CET1 ratio at or below which a guarantor bank reads amber, as a fraction.
cet1_red_at:
type: number
exclusiveMaximum: 1.0
exclusiveMinimum: 0.0
title: Cet1 Red At
default: 0.12
description: The CET1 ratio at or below which it reads red, as a fraction.
npl_amber_at:
type: number
exclusiveMaximum: 1.0
exclusiveMinimum: 0.0
title: Npl Amber At
default: 0.05
description: The non performing loan ratio at or above which it reads amber, as a fraction.
npl_red_at:
type: number
exclusiveMaximum: 1.0
exclusiveMinimum: 0.0
title: Npl Red At
default: 0.08
description: The non performing loan ratio at or above which it reads red, as a fraction.
additionalProperties: false
type: object
title: BankHealthConfig
description: "Guarantor bank-health bands over the EBA transparency exercise ratios\n(both fractions; at-or-beyond semantics, the band_from_edges convention).\nDefaults, each justified against the TE2025 edition (119 banks, reference\n2025-06-30) and the regulatory floors; config owns these numbers:\n\n* CET1 (lower is worse): amber at or below 14%, red at or below 12%. The\n binding CET1 stack for a typical EU bank (4.5% Pillar 1 + 2.5% capital\n conservation buffer + the CET1 share of P2R and systemic/countercyclical\n buffers) puts the MDA trigger around 9-11%, so 12% means the management\n buffer over the distribution-restriction line has thinned to roughly a\n point, and 12% is below EVERY bank in TE2025 (sample minimum 12.25%).\n 14% is the sample's bottom decile (p10 13.8%, 13 of 119 banks below):\n a guarantor bank there is an outlier among EU peers, worth an amber.\n* NPL (higher is worse): amber at or above 5%, red at or above 8%. 5% is\n the regulator's own high-NPL line (EBA/GL/2018/06 applies its NPE\n strategy requirements to banks at or above a 5% gross NPL ratio) and\n sits past the sample's p95 (4.6%; 5 of 107 banks above 5%). 8% is\n roughly four times the TE2025 median (2.08%) and beyond every bank in\n the exercise (max 6.88%): asset-quality distress by EU standards."
V1RiskConfigOut:
properties:
version:
anyOf:
- type: integer
- type: 'null'
title: Version
description: The version scoring your team's exposures, null while the built in default is live.
config:
$ref: '#/components/schemas/EntityRiskConfig'
description: The configuration scoring your team's exposures.
type: object
required:
- version
- config
title: V1RiskConfigOut
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
maxItems: 11
description: At most 10 entries, in the order the request was checked. When there are more, one further entry of type too_many_errors with an empty loc counts them in its msg. A loc part longer than 64 bytes and a msg longer than 2,048 bytes are cut and end in ...
error:
type: object
title: Error
description: The refusal envelope, code validation_failed.
properties:
code:
type: string
description: validation_failed on every 422.
message:
type: string
description: The fixed message of the code, never a value sent.
required:
- code
- message
type: object
title: HTTPValidationError
required:
- error
SlottingConfig:
properties:
factor_weights:
additionalProperties:
type: number
type: object
title: Factor Weights
description: The weight of each of the five supervisory slotting factors, each between 5 and 60 percent.
counterparty_degradation:
type: boolean
title: Counterparty Degradation
default: true
description: Whether a weak counterparty can worsen the slotting category.
good_from:
type: number
maximum: 4.0
minimum: 1.0
title: Good From
default: 1.5
description: The weighted average from which the category is good rather than strong, on the 1 to 4 scale.
satisfactory_from:
type: number
maximum: 4.0
minimum: 1.0
title: Satisfactory From
default: 2.5
description: The weighted average from which the category is satisfactory, on the 1 to 4 scale.
weak_from:
type: number
maximum: 4.0
minimum: 1.0
title: Weak From
default: 3.5
description: The weighted average from which the category is weak, on the 1 to 4 scale.
additionalProperties: false
type: object
title: SlottingConfig
description: 'PF supervisory-slotting knobs: factor weights over the five CRE33.13
factors. The EBA RTS
(Delegated Regulation (EU) 2021/598 under CRR Art 153(9)) mandates a
weighted average of the factors with INSTITUTION-CONFIGURABLE weights, so
the weights are config, not code. Defaults are the neutral equal split
(20 each): the RTS prescribes no default weighting but Art 2(2) BOUNDS
every factor weight (floor 5%, cap 60%), enforced by the validator below;
within those bounds equal is the launch judgment, tenant-tunable like
every weight table.
`good_from`/`satisfactory_from`/`weak_from` are the category cutoffs on
the 1 (strong) to 4 (weak) weighted-average scale, at-or-beyond semantics
(the band_from_edges convention): below good_from the category is strong;
the launch defaults 1.5/2.5/3.5 round a half-grade toward the WORSE
category (an average sitting exactly between two grades never rounds
toward the better one). `counterparty_degradation` arms the worsen-only
counterparty overlay (slotting module); off, only origination grades score.'
V1ErrorOut:
properties:
error:
$ref: '#/components/schemas/V1ErrorBodyOut'
description: The refusal, with its stable code and message.
type: object
required:
- error
title: V1ErrorOut
description: 'The /v1 error envelope every 4xx refusal carries, except a 422 (its body names
the parameter) and a 413 that arrives without a body.'
EntityRiskConfig:
properties:
desk:
type: string
enum:
- corporate
- pf_slotting
- ef_country_obligor
- cre_overlay
title: Desk
description: Which rubric family this is, corporate, pf_slotting, ef_country_obligor or cre_overlay.
family_weights:
additionalProperties:
type: number
type: object
title: Family Weights
description: The weight of each signal family in the score, by family name.
signals:
additionalProperties:
$ref: '#/components/schemas/SignalSetting'
type: object
title: Signals
description: Each signal's settings, by the signal's key.
band_points:
$ref: '#/components/schemas/BandPoints'
default:
green: 0.0
amber: 60.0
red: 100.0
description: The points each band adds on the 0 to 100 risk scale.
rollup:
$ref: '#/components/schemas/RollupConfig'
default:
amber_from: 30.0
red_from: 60.0
min_completeness: 0.4
description: How the weighted score turns into a status.
slotting:
anyOf:
- $ref: '#/components/schemas/SlottingConfig'
- type: 'null'
description: The supervisory slotting settings of a project finance rubric, null for every other.
bank_health:
$ref: '#/components/schemas/BankHealthConfig'
description: The bank health bands of a guarantor bank.
refi:
$ref: '#/components/schemas/RefiConfig'
description: The refinancing scenario and spread regime settings.
additionalProperties: false
type: object
required:
- desk
- family_weights
- signals
title: EntityRiskConfig
description: 'The versioned rubric: desk discriminator, family weights, per-signal
settings, band points, and roll-up. Signals are keyed by their canonical
signal id (the id the engine''s producers emit); every signal must name a
declared family, and every family must carry at least one signal, so a
weight can never point at nothing.'
V1RetryErrorOut:
properties:
error:
$ref: '#/components/schemas/V1RetryErrorBodyOut'
description: The refusal, with its stable code, its message and the seconds to wait.
type: object
required:
- error
title: V1RetryErrorOut
description: 'The envelope of a refusal that names when to retry: every 429 and a 503 server_busy
carry retry_after_seconds beside the Retry-After header.'
BandPoints:
properties:
green:
type: number
maximum: 100.0
minimum: 0.0
title: Green
default: 0
description: Points for a green band, 0 to 100, higher is worse.
amber:
type: number
maximum: 100.0
minimum: 0.0
title: Amber
default: 60
description: Points for an amber band, 0 to 100.
red:
type: number
maximum: 100.0
minimum: 0.0
title: Red
default: 100
description: Points for a red band, 0 to 100.
additionalProperties: false
type: object
title: BandPoints
description: Band -> points on the 0-100 risk scale (higher points = worse).
RefiConfig:
properties:
shock_bps:
items:
type: integer
type: array
title: Shock Bps
default:
- 0
- 100
- 200
description: The rate shocks in basis points the refinancing scenarios apply.
bucket:
type: string
enum:
- ig
- hy
title: Bucket
default: ig
description: The spread bucket, ig for investment grade or hy for high yield.
eur_ig_us_proxy:
type: boolean
title: Eur Ig Us Proxy
default: false
description: Whether euro investment grade exposures read the US series as a stated proxy.
regime_amber_pct:
type: number
exclusiveMaximum: 1.0
exclusiveMinimum: 0.0
title: Regime Amber Pct
default: 0.75
description: The percentile of the trailing window at or beyond which the spread regime reads amber.
regime_red_pct:
type: number
exclusiveMaximum: 1.0
exclusiveMinimum: 0.0
title: Regime Red Pct
default: 0.9
description: The percentile at or beyond which the spread regime reads red.
regime_widening_bps:
type: number
exclusiveMinimum: 0.0
title: Regime Widening Bps
default: 100.0
description: The widening in basis points inside 30 days that reads red on its own.
additionalProperties: false
type: object
title: RefiConfig
description: 'Scenario and regime knobs. Defaults are the design''s launch set:
shocks +0/+100/+200bp; investment-grade bucket; spread regime amber at or
beyond the trailing-window p75, red at or beyond p90 or on a 100bp
widening inside 30 days (launch calibration, tenant-tunable);
`eur_ig_us_proxy` off: no FRED series exists for EUR IG corporate OAS
(verified 07-23), so EUR IG exposures get the curve-delta shock only
unless a team explicitly opts into the US IG series as a cross-market
proxy, which is then printed as such on every rendering.'
SignalSetting:
properties:
enabled:
type: boolean
title: Enabled
default: true
description: Whether the signal is scored.
family:
type: string
title: Family
description: The family_weights entry the signal rolls into.
direction:
type: string
enum:
- higher_is_worse
- lower_is_worse
title: Direction
default: higher_is_worse
description: higher_is_worse or lower_is_worse.
amber_at:
anyOf:
- type: number
- type: 'null'
title: Amber At
description: The value at or beyond which the signal reads amber, null when it has no such edge.
red_at:
anyOf:
- type: number
- type: 'null'
title: Red At
description: The value at or beyond which the signal reads red, null when it has no such edge.
lookback_periods:
type: integer
minimum: 1.0
title: Lookback Periods
default: 1
description: How many reporting periods the signal reads back, from 1.
on_missing:
type: string
enum:
- abstain
- conservative
title: On Missing
default: abstain
description: abstain to leave the signal unscored without data, conservative to assume a band.
override:
anyOf:
- type: string
enum:
- red_cap
- amber_floor
- type: 'null'
title: Override
description: red_cap caps the status at red when the signal is red, amber_floor floors it at amber when the signal is amber or worse, null for neither.
weight:
anyOf:
- type: number
minimum: 0.0
- type: 'null'
title: Weight
description: The signal's share within its family, null for an equal split across the family's enabled signals.
additionalProperties: false
type: object
required:
- family
title: SignalSetting
description: 'One monitored signal''s knobs. `family` names the family_weights entry the
signal rolls into; `weight` is its share WITHIN that family (None = equal
split across the family''s enabled signals). `override` lets a signal act on
the overall status regardless of weights: `red_cap` caps the entity at red
when the signal is red (it can never be argued away by good fundamentals);
`amber_floor` floors the entity at amber when the signal is amber or worse.'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: An API key (swk_live_ followed by 40 characters) on /v1, a workspace administrator's session token on /org/api-keys.