Stonewake Alerts API
The Alerts API from Stonewake — 3 operation(s) for alerts.
The Alerts API from Stonewake — 3 operation(s) for alerts.
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-alerts-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 Alerts 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: Alerts
paths:
/v1/alerts/events:
get:
tags:
- Alerts
summary: V1 Alert Events
description: This tenant's alert events, newest first, with the exact filtered total.
operationId: v1_alert_events_v1_alerts_events_get
parameters:
- name: event_class
in: query
required: false
schema:
anyOf:
- enum:
- risk_red
- risk_amber
- insolvency_notice
- sanctions_candidate
- tender_match
- press_candidate
- monitoring_finding
type: string
- type: 'null'
title: Event Class
description: Keeps only alerts of this class.
- name: severity
in: query
required: false
schema:
anyOf:
- enum:
- critical
- high
- info
type: string
- type: 'null'
title: Severity
description: Keeps only alerts of this severity.
- name: limit
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
default: 50
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_V1AlertEventOut_'
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 V1 Alert Events V1 Alerts Events 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/alerts/deliveries:
get:
tags:
- Alerts
summary: V1 Alert Deliveries
description: 'The delivery status of the alert events this reader is served, newest first,
with the exact filtered total.'
operationId: v1_alert_deliveries_v1_alerts_deliveries_get
parameters:
- name: event_id
in: query
required: false
schema:
anyOf:
- type: integer
- type: 'null'
title: Event Id
description: Narrows the log to the deliveries of one alert, by its id from GET /v1/alerts/events.
- name: status
in: query
required: false
schema:
anyOf:
- enum:
- queued
- sent
- delivered
- failed
- held_budget
- held_quiet
- collapsed
- digest
- undelivered
- dead_letter
type: string
- type: 'null'
title: Status
description: Keeps only delivery rows of this status.
- name: channel
in: query
required: false
schema:
anyOf:
- enum:
- email
- sms
- teams
- webhook
- in_app
type: string
- type: 'null'
title: Channel
description: Keeps only deliveries over this channel.
- name: limit
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
default: 50
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_V1AlertDeliveryOut_'
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 V1 Alert Deliveries V1 Alerts Deliveries 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/alerts/channels:
get:
tags:
- Alerts
summary: V1 Alert Channels
description: 'Which alert channels deliver in this workspace, the same answer the dashboard''s
settings page reads. Workspace wide, no team scope.'
operationId: v1_alert_channels_v1_alerts_channels_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/AlertChannelsOut'
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 V1 Alert Channels V1 Alerts Channels 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.
V1Page_V1AlertEventOut_:
properties:
items:
items:
$ref: '#/components/schemas/V1AlertEventOut'
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[V1AlertEventOut]
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
V1AlertEventOut:
properties:
id:
type: integer
title: Id
description: The alert's id, the event_id of its deliveries.
team_id:
anyOf:
- type: string
- type: 'null'
title: Team Id
description: The team whose alert it is, null for the whole workspace, such as a watched company.
event_class:
type: string
title: Event Class
description: The alert's class, one of the values the event_class filter of this route takes.
severity:
type: string
title: Severity
description: critical, high or info.
node_id:
anyOf:
- type: integer
- type: 'null'
title: Node Id
description: The subject's node id, null when the alert has none.
exposure_id:
anyOf:
- type: integer
- type: 'null'
title: Exposure Id
description: The subject's exposure id, null when it is no exposure of the book.
source:
$ref: '#/components/schemas/V1AlertSourceOut'
description: The record the alert stands on.
occurred_at:
type: string
format: date-time
title: Occurred At
description: When the alerting fact happened.
created_at:
type: string
format: date-time
title: Created At
description: When the alert was raised.
held_in:
anyOf:
- $ref: '#/components/schemas/HeldInOut'
- type: 'null'
description: Where your bank holds the company. The live depots you read that hold a position of it, each with its number of positions, and the live funds you read that hold a line of it, each with its lines and the sum of their weights in percent of that fund. A replaced delivery is never listed and a key of one team reads its own team's depots and funds. Null where none of them holds the company.
type: object
required:
- id
- team_id
- event_class
- severity
- node_id
- exposure_id
- source
- occurred_at
- created_at
- held_in
title: V1AlertEventOut
HeldFundOut:
properties:
fund_id:
type: integer
title: Fund Id
description: The fund, as GET /v1/portfolio/funds lists it.
label:
type: string
title: Label
description: The fund's name, the register's where the fund is known there, else the name your bank stated.
team_id:
type: string
title: Team Id
description: The team the fund belongs to.
team_name:
anyOf:
- type: string
- type: 'null'
title: Team Name
description: That team's name.
as_of:
type: string
format: date
title: As Of
description: The day your bank stated the fund's constituents for.
fund_lines:
type: integer
title: Fund Lines
description: How many lines of the fund the company issued.
weight:
type: number
title: Weight
description: The sum of those lines' weights in percent of the fund, as your bank's file states them.
type: object
required:
- fund_id
- label
- team_id
- team_name
- as_of
- fund_lines
- weight
title: HeldFundOut
description: One of your funds that holds the company among its constituents.
V1AlertDeliveryOut:
properties:
id:
type: integer
title: Id
description: The delivery row's id.
event_id:
type: integer
title: Event Id
description: The alert it delivers, an id GET /v1/alerts/events serves.
channel:
type: string
title: Channel
description: email, sms, teams, webhook or in_app.
endpoint_id:
anyOf:
- type: string
- type: 'null'
title: Endpoint Id
description: The endpoint it went to, null on a member's own email, SMS or in app entry.
attempt:
type: integer
title: Attempt
description: The attempt number, from 1.
status:
type: string
title: Status
description: queued, sent, delivered, failed, held_budget, held_quiet, collapsed, digest, undelivered or dead_letter.
provider:
anyOf:
- type: string
- type: 'null'
title: Provider
description: The provider that carried the message, null where none did.
provider_message_id:
anyOf:
- type: string
- type: 'null'
title: Provider Message Id
description: The provider's id of the message, null where none was given.
error_class:
anyOf:
- type: string
- type: 'null'
title: Error Class
description: Why the attempt failed, null unless it failed.
at:
type: string
format: date-time
title: At
description: When the row was written.
type: object
required:
- id
- event_id
- channel
- endpoint_id
- attempt
- status
- provider
- provider_message_id
- error_class
- at
title: V1AlertDeliveryOut
V1AlertSourceOut:
properties:
kind:
type: string
title: Kind
description: What the alert stands on, such as risk_transition or node_event.
id:
type: integer
title: Id
description: The id of that record.
type: object
required:
- kind
- id
title: V1AlertSourceOut
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.'
AlertChannelOut:
properties:
channel:
type: string
enum:
- email
- sms
- teams
- webhook
- in_app
title: Channel
description: email, sms, teams, webhook or in_app.
delivers:
type: boolean
title: Delivers
description: Alerts on this channel can reach their recipients in this workspace; false means the channel is switched off.
reason:
anyOf:
- type: string
enum:
- provider_unset
- demo_workspace
- sms_limits_unset
- type: 'null'
title: Reason
description: Why the channel is switched off. provider_unset, no delivery service is set up for it. demo_workspace, a demonstration workspace, where nothing on this channel leaves Stonewake. sms_limits_unset, the workspace's SMS limits are not set. Null when the channel delivers.
test_receiver_only:
type: boolean
title: Test Receiver Only
description: Teams and webhook only. This workspace delivers to the Stonewake test receiver only.
type: object
required:
- channel
- delivers
- reason
- test_receiver_only
title: AlertChannelOut
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
HeldDepotOut:
properties:
depot_id:
type: integer
title: Depot Id
description: The depot, as GET /v1/portfolio/securities lists it.
depot:
type: string
title: Depot
description: The label your bank gave the depot.
team_id:
type: string
title: Team Id
description: The team the depot belongs to.
team_name:
anyOf:
- type: string
- type: 'null'
title: Team Name
description: That team's name.
as_of:
type: string
format: date
title: As Of
description: The day your bank stated the depot's positions for.
positions:
type: integer
title: Positions
description: How many positions of the depot the company issued.
type: object
required:
- depot_id
- depot
- team_id
- team_name
- as_of
- positions
title: HeldDepotOut
description: One of your depots that holds the company directly.
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.'
HeldInOut:
properties:
depots:
items:
$ref: '#/components/schemas/HeldDepotOut'
type: array
title: Depots
description: Your depots with a position of the company, by label. Empty where only a fund holds it.
funds:
items:
$ref: '#/components/schemas/HeldFundOut'
type: array
title: Funds
description: Your funds with a line of the company, by name. Empty where only a depot holds it.
type: object
required:
- depots
- funds
title: HeldInOut
description: 'Where your bank holds a company, in the live depots and funds you read. A depot
holds it directly, a fund through its constituents. No amount is stated.'
AlertChannelsOut:
properties:
channels:
items:
$ref: '#/components/schemas/AlertChannelOut'
type: array
title: Channels
description: The five alert channels, each with whether it delivers in this workspace.
type: object
required:
- channels
title: AlertChannelsOut
V1Page_V1AlertDeliveryOut_:
properties:
items:
items:
$ref: '#/components/schemas/V1AlertDeliveryOut'
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[V1AlertDeliveryOut]
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.'
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.