Stonewake Risk Assessments API

The Risk Assessments API from Stonewake — 1 operation(s) for risk assessments.

GitHub OpenAPI

Operations 1

GET /v1/risk-assessments/{assessment_id} Get Risk Assessment #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/stonewake-ai:stonewake-ai-risk-assessments-api"
All apis
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.

Get an API 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 Specification

stonewake-ai-risk-assessments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stonewake Risk Assessments 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 Assessments
paths:
  /v1/risk-assessments/{assessment_id}:
    get:
      tags:
      - Risk Assessments
      summary: Get Risk Assessment
      description: 'One historical assessment by id, the audit trail''s permalink (immutable by

        convention: recomputes append, never edit). Team-scoped exactly upstream.'
      operationId: get_risk_assessment_v1_risk_assessments__assessment_id__get
      parameters:
      - name: assessment_id
        in: path
        required: true
        schema:
          type: integer
          title: Assessment Id
        description: The assessment's id, a stable permalink.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1AssessmentOut'
          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 Assessment V1 Risk Assessments  Assessment Id  Get
        '404':
          description: Not found in your workspace, code not_found. The answer never says whether the resource exists elsewhere.
          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
        '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.
    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.'
    V1AssessmentOut:
      properties:
        id:
          type: integer
          title: Id
          description: The assessment's id, a stable permalink, since assessments are append only.
        exposure_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Exposure Id
          description: The book entry the run assessed. Null on an assessment made on the spot for a company your team does not hold (see /v1/nodes/{node_id}/company).
        node_id:
          type: integer
          title: Node Id
          description: The company's node id.
        status:
          type: string
          title: Status
          description: green, amber, red or insufficient, and public_sector_issuer for a public sector issuer that carries no score.
        score:
          anyOf:
          - type: integer
          - type: 'null'
          title: Score
          description: The score, null when the run produced none.
        signals:
          items:
            $ref: '#/components/schemas/V1SignalOut'
          type: array
          title: Signals
          description: The signal rows with their bands, notes and citations.
        completeness:
          type: number
          title: Completeness
          description: Weight share of applicable signals that carry a band, including bands assumed for missing data under a conservative on_missing posture. Compare evidence_completeness, which counts evidence only.
        evidence_completeness:
          anyOf:
          - type: number
          - type: 'null'
          title: Evidence Completeness
          description: Weight share backed by actual evidence; assumed bands never count, so this never exceeds completeness. Null on assessments computed before engine v3.
        coverage_below_floor:
          type: boolean
          title: Coverage Below Floor
          description: True when reachable_share sits below the floor of the team's active rubric.
        seen_share:
          anyOf:
          - type: number
          - type: 'null'
          title: Seen Share
          description: Weight share of the applicable signals actually observed, that is evidenced rows plus register_quiet rows (a drained register that saw nothing). Gaps, including signals no connected source reaches for the company's jurisdiction, count against it; not_applicable rows leave the denominator. Null when no stored row carries a weight.
        explained_share:
          anyOf:
          - type: number
          - type: 'null'
          title: Explained Share
          description: seen_share plus the weight of gaps with a terminal verdict (a register that does not exist in the jurisdiction or is closed to the public), over the same denominator. Never below seen_share.
        reachable_share:
          anyOf:
          - type: number
          - type: 'null'
          title: Reachable Share
          description: The figure the insufficient status floor reads, the weight share of the applicable signals some connected source can serve for the company's jurisdiction that was actually observed. A signal no connected source reaches there still counts against seen_share, but never makes the company insufficient. Null when no stored row carries a weight.
        coverage_line:
          anyOf:
          - type: string
          - type: 'null'
          title: Coverage Line
          description: One to three plain sentences counting the signals, how many were covered, how many are gaps and why, and how many do not apply. Null when no stored row carries a weight.
        no_status_reason:
          anyOf:
          - type: string
          - type: 'null'
          title: No Status Reason
          description: 'Why no status is stated where one kind of evidence decides it: no_accounts when the status is insufficient and no annual accounts are on record for the company (the accounts carry most of the corporate weight, so the register and screening rows alone never reach the floor). Null for every other assessment.'
        accounts_scope:
          anyOf:
          - type: string
          - type: 'null'
          title: Accounts Scope
          description: balance_sheet_only where the status rests on a filing of the company's balance sheet alone, as small companies may file (section 326 HGB), so turnover, margins, interest cover, cash flow and the distress models could not be read and those signals are not applicable; coverage_line then says so. Null otherwise.
        status_basis:
          anyOf:
          - $ref: '#/components/schemas/V1StatusBasisOut'
          - type: 'null'
          description: What an Amber or Red status by score rests on and never more, the adverse figures from the filed annual accounts (figures), the years of those accounts (years) and the adverse signals of another kind (others). Null for every other status and for a status that a single rule forced, such as a register status that caps the company Red.
        profile_version:
          anyOf:
          - type: integer
          - type: 'null'
          title: Profile Version
          description: The rubric version that scored the run, null for the built in default.
        engine_version:
          type: integer
          title: Engine Version
          description: The version of the scoring engine that ran.
        computed_at:
          type: string
          format: date-time
          title: Computed At
          description: When the assessment was computed. A rules update recomputes every assessment, so it is not the day something about the company changed.
        checked_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Checked At
          description: When the assessment was last checked. For the current assessment of a company in your book, the later of computed_at and the newest completed pass over your book in which no exposure failed. A pass writes a new assessment only when something about the company, the team's profile or the scoring rules changed, so checked_at is the day the company was last looked at. Any other assessment, one made for a company outside your book or one of a removed exposure, states computed_at.
        is_current:
          type: boolean
          title: Is Current
          description: True for the exposure's current assessment.
      type: object
      required:
      - id
      - exposure_id
      - node_id
      - status
      - score
      - signals
      - completeness
      - evidence_completeness
      - coverage_below_floor
      - seen_share
      - explained_share
      - reachable_share
      - coverage_line
      - profile_version
      - engine_version
      - computed_at
      - is_current
      title: V1AssessmentOut
      description: One assessment, a scoring run of the append only history, with its signal rows. coverage_below_floor is true when reachable_share sits below the floor of the team's active rubric.
    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
    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.'
    V1SignalCitationsOut:
      properties:
        record_ids:
          items:
            type: integer
          type: array
          title: Record Ids
          description: The register records the row cites, which POST /v1/citations/resolve resolves.
        event_ids:
          items:
            type: integer
          type: array
          title: Event Ids
          description: The register events the row cites.
        assessment_ids:
          items:
            type: integer
          type: array
          title: Assessment Ids
          description: The confirmed screening assessments the row cites.
      type: object
      required:
      - record_ids
      - event_ids
      - assessment_ids
      title: V1SignalCitationsOut
      description: 'The row''s full citation lineage: register record ids, corporate-event ids,

        and confirmed screening-assessment ids (empty lists when the row scored from

        absence or abstained: an uncited row says so, never invents provenance).'
    V1SignalOut:
      properties:
        key:
          type: string
          title: Key
          description: The signal's key.
        label:
          type: string
          title: Label
          description: The signal's name.
        band:
          anyOf:
          - type: string
          - type: 'null'
          title: Band
          description: red, amber or green, null when the signal could not be scored, which the note explains.
        value_display:
          anyOf:
          - type: string
          - type: 'null'
          title: Value Display
          description: The figure the band reads, with its definition after a semicolon, null when there is none.
        note:
          anyOf:
          - type: string
          - type: 'null'
          title: Note
          description: Why the row reads as it does, its source and edition where one stands behind it.
        state:
          anyOf:
          - type: string
          - type: 'null'
          title: State
          description: The row's one state, one of evidenced, register_quiet (a drained register saw nothing), gap, awaiting_bank_input or not_applicable. A signal no connected source reaches for the company's jurisdiction is a gap, never not_applicable. Null on assessments computed before engine v19.
        gap_reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Gap Reason
          description: Why a gap or awaiting_bank_input row was not observed, from the closed vocabulary no_register_id, register_not_integrated, register_not_loaded, register_closed_to_public, no_public_register, fetched_not_parsed, source_dark, bank_input_missing, screening_stale, country_unknown, paid_register_excluded (no free nationwide register holds it, and paid registers are outside our sources by policy). Null on every other state.
        grade:
          anyOf:
          - type: string
          - type: 'null'
          title: Grade
          description: Evidence grade of an evidenced or register_quiet row. A is a statutory register, filed accounts or a bank certificate, B a gazette notice or dataset edition, C a phrase hit whose filing text was never read, and D a name only witness. Null when the row stands on no evidence.
        citations:
          $ref: '#/components/schemas/V1SignalCitationsOut'
          description: The records, events and screening assessments the row cites.
      type: object
      required:
      - key
      - label
      - band
      - value_display
      - note
      - state
      - gap_reason
      - grade
      - citations
      title: V1SignalOut
      description: 'One scored (or honestly abstained) signal row, projected per the module

        docstring. band=None means the signal abstained; the note says why.'
    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.'
    V1StatusBasisOut:
      properties:
        figures:
          type: integer
          title: Figures
          description: How many adverse figures from the filed accounts the status rests on.
        years:
          items:
            type: integer
          type: array
          title: Years
          description: The years of the annual accounts those figures come from, ascending. Stated only where every figure comes from a period its record states as annual, else empty.
        others:
          type: integer
          title: Others
          description: How many adverse signals of another kind the status rests on.
        period_end:
          anyOf:
          - type: string
            format: date
          - type: 'null'
          title: Period End
          description: The newest period end among those figures, stated where one of them comes from an interim report or from a period whose kind no record states. Null where every figure comes from annual accounts, and where no record states a period.
      type: object
      required:
      - figures
      - years
      - others
      title: V1StatusBasisOut
      description: What an Amber or Red status rests on where the score gives it, in counts and never more, the adverse figures from the filed accounts, with the years of the annual accounts or the newest period end of an interim report, and the adverse signals of another kind.
  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.