Stonewake Runs API

The Runs API from Stonewake — 2 operation(s) for runs.

GitHub OpenAPI

Operations 2

GET /v1/runs List Runs #
GET /v1/runs/{run_id} Get Run Detail #

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-runs-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-runs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stonewake Runs 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: Runs
paths:
  /v1/runs:
    get:
      tags:
      - Runs
      summary: List Runs
      description: 'This tenant''s research runs of the teams the caller reads, newest first

        (screening and cost-only rows never serialize; the purpose pin lives in the

        query).'
      operationId: list_runs_v1_runs_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 25
          title: Limit
        description: The most rows the page holds, 1 to 100.
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          maximum: 9223372036854775807
          minimum: 0
          default: 0
          title: Offset
        description: How many rows of the whole result to skip before this page, 0 to 9223372036854775807.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1Page_V1RunSummaryOut_'
          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 List Runs V1 Runs 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: []
  /v1/runs/{run_id}:
    get:
      tags:
      - Runs
      summary: Get Run Detail
      description: 'One research run with its grounded findings (quotes capped per the house

        rule) and cited sources. Non-research run ids answer 404 like unknown ids.'
      operationId: get_run_detail_v1_runs__run_id__get
      parameters:
      - name: run_id
        in: path
        required: true
        schema:
          type: string
          title: Run Id
        description: The research run's id, as GET /v1/runs lists it.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1RunDetailOut'
          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 Run Detail V1 Runs  Run 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.
    V1QuoteOut:
      properties:
        source_id:
          type: string
          title: Source Id
          description: The id of the source the passage comes from.
        url:
          type: string
          title: Url
          description: The source's address.
        attribution:
          type: string
          title: Attribution
          description: The source line to show with the passage.
        passage:
          type: string
          title: Passage
          description: The verbatim passage, at most 240 characters.
      type: object
      required:
      - source_id
      - url
      - attribution
      - passage
      title: V1QuoteOut
      description: 'One capped supporting passage with its attribution (licence terms:

        URL + attribution are mandatory, so both fields are non-optional).'
    V1RunSummaryOut:
      properties:
        run_id:
          type: string
          title: Run Id
          description: The research run's id.
        team_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Team Id
          description: The team whose research run this is. A key reads exactly the runs of the one team it was issued for; GET /v1/me states it. Null on a run from before runs carried a team, which only a signed in administrator or compliance officer reads.
        team_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Team Name
          description: That team's display name.
        entity:
          type: string
          title: Entity
          description: The run's subject.
        entity_type:
          type: string
          title: Entity Type
          description: The kind of subject, company, country, person, deal, regulation or agency.
        entity_kind:
          anyOf:
          - type: string
          - type: 'null'
          title: Entity Kind
          description: The registry kind of the subject when the registry holds its exact name, null otherwise.
        generated_at:
          type: string
          format: date-time
          title: Generated At
          description: When the run finished.
        findings_count:
          type: integer
          title: Findings Count
          description: How many grounded findings the run holds.
      type: object
      required:
      - run_id
      - team_id
      - team_name
      - entity
      - entity_type
      - entity_kind
      - generated_at
      - findings_count
      title: V1RunSummaryOut
    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
    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.
    V1Page_V1RunSummaryOut_:
      properties:
        items:
          items:
            $ref: '#/components/schemas/V1RunSummaryOut'
          type: array
          title: Items
          description: This page's rows, in the order the endpoint states.
        limit:
          type: integer
          title: Limit
          description: The most rows this page could hold, as asked or by default.
        offset:
          type: integer
          title: Offset
          description: How many rows of the whole result come before this page.
        total:
          type: integer
          title: Total
          description: The exact count of rows after filtering, across every page.
      type: object
      required:
      - items
      - limit
      - offset
      - total
      title: V1Page[V1RunSummaryOut]
    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.'
    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.'
    V1RunDetailOut:
      properties:
        run_id:
          type: string
          title: Run Id
          description: The research run's id.
        team_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Team Id
          description: The team whose research run this is. A key reads exactly the runs of the one team it was issued for; GET /v1/me states it. Null on a run from before runs carried a team, which only a signed in administrator or compliance officer reads.
        team_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Team Name
          description: That team's display name.
        entity:
          type: string
          title: Entity
          description: The run's subject.
        entity_type:
          type: string
          title: Entity Type
          description: The kind of subject, company, country, person, deal, regulation or agency.
        entity_kind:
          anyOf:
          - type: string
          - type: 'null'
          title: Entity Kind
          description: The registry kind of the subject when the registry holds its exact name, null otherwise.
        generated_at:
          type: string
          format: date-time
          title: Generated At
          description: When the run finished.
        findings_count:
          type: integer
          title: Findings Count
          description: How many grounded findings the run holds.
        findings:
          items:
            $ref: '#/components/schemas/V1FindingOut'
          type: array
          title: Findings
          description: The run's grounded findings with their quotes.
        sources:
          items:
            $ref: '#/components/schemas/V1SourceOut'
          type: array
          title: Sources
          description: The sources the findings cite.
        country_iso3:
          anyOf:
          - type: string
          - type: 'null'
          title: Country Iso3
          description: The country of the run's subject as an ISO 3166 alpha 3 code, null when unknown.
        country_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Country Name
          description: That country's name, null when unknown.
      type: object
      required:
      - run_id
      - team_id
      - team_name
      - entity
      - entity_type
      - entity_kind
      - generated_at
      - findings_count
      - findings
      - sources
      - country_iso3
      - country_name
      title: V1RunDetailOut
    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.'
    V1FindingOut:
      properties:
        attribute:
          type: string
          title: Attribute
          description: What the finding is about, for example mandate or recent_program.
        claim:
          type: string
          title: Claim
          description: The finding in one readable statement.
        value:
          anyOf:
          - type: string
          - type: 'null'
          title: Value
          description: The finding's value as one plain figure or word, null when it states none.
        confidence:
          type: string
          title: Confidence
          description: How sure the extraction is, high, medium or low.
        verification:
          type: string
          title: Verification
          description: Whether the cited text bears the claim out, supported, partially_supported, unsupported or unverified.
        verifier_rationale:
          anyOf:
          - type: string
          - type: 'null'
          title: Verifier Rationale
          description: Why the verification reads as it does, null when no reason was recorded.
        novelty:
          type: string
          title: Novelty
          description: Whether the finding is new, an update of an earlier one or a duplicate.
        source_ids:
          items:
            type: string
          type: array
          title: Source Ids
          description: The ids of the sources the finding cites, each an entry of sources.
        quotes:
          items:
            $ref: '#/components/schemas/V1QuoteOut'
          type: array
          title: Quotes
          description: The verbatim passages behind the finding, each capped and attributed.
        published_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Published At
          description: The newest publication date among the finding's cited sources, null when none is dated.
      type: object
      required:
      - attribute
      - claim
      - value
      - confidence
      - verification
      - verifier_rationale
      - novelty
      - source_ids
      - quotes
      - published_at
      title: V1FindingOut
      description: 'One grounded finding: the shared FindingOut shape with supporting_quotes

        rebuilt as the typed, capped, attributed V1QuoteOut list.'
    V1SourceOut:
      properties:
        source_id:
          type: string
          title: Source Id
          description: The source's id, as findings cite it.
        url:
          type: string
          title: Url
          description: The source's address.
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
          description: The page's title, null when it has none.
        snippet:
          type: string
          title: Snippet
          description: The passage of the source shown with it, capped like every quote.
        retrieved_at:
          type: string
          format: date-time
          title: Retrieved At
          description: When the source was read.
        published_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Published At
          description: When the publisher dated the source, null when it states no date.
        text_provenance:
          type: string
          title: Text Provenance
          description: Where the text came from, page for a fetched page, snippet for a search index and record for a register record. A snippet counts as one report whose page is not verified.
        source_tier:
          type: integer
          title: Source Tier
          description: The publisher tier, 1 a primary source, 2 trade press, 3 an aggregator or an unclassified publisher.
        tier_label:
          type: string
          title: Tier Label
          description: The tier in words.
        reliability:
          anyOf:
          - type: string
            const: disinformation_network
          - type: 'null'
          title: Reliability
          description: disinformation_network when a public authority names the outlet as part of a disinformation network, else null. Such a source is shown with its warning and never counts toward confirmation.
        reliability_label:
          anyOf:
          - type: string
          - type: 'null'
          title: Reliability Label
          description: The warning in words, naming the authority and its publication, null when reliability is null.
      type: object
      required:
      - source_id
      - url
      - title
      - snippet
      - retrieved_at
      - published_at
      - text_provenance
      - source_tier
      - tier_label
      title: V1SourceOut
      description: One cited source with its snippet, capped like every quote. source_tier and tier_label name the publisher tier, a primary source, trade press or an aggregator.
  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.