StatOSS Alert rules API
When an app's issues alert: new, regressed, escalating, or so many events in so many minutes. On-call alerts.
When an app's issues alert: new, regressed, escalating, or so many events in so many minutes. On-call 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/statoss-com:statoss-com-alert-rules-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: StatOSS Alert rules API
version: '1'
description: Everything the dashboard does to a status page, over HTTPS with a key. Keys are made under Settings, API keys; each reads, or reads and writes, and reaches every page or one page.
servers:
- url: https://statoss.com/api/v1
security:
- bearer: []
tags:
- name: Alert rules
description: 'When an app''s issues alert: new, regressed, escalating, or so many events in so many minutes. On-call alerts.'
paths:
/apps/{app}/alert-rules:
get:
tags:
- Alert rules
operationId: listAlertRules
summary: List an app's alert rules
description: 'Its issue alert rules, newest first. Issue alerts are on-call alerts: without on-call (Hobby and Pro) these paths answer 404.'
parameters:
- name: app
in: path
required: true
schema:
type: string
description: The app's id or slug, from GET /apps.
- name: limit
in: query
schema:
type: integer
default: 25
minimum: 1
maximum: 100
description: How many, from 1 to 100.
- name: cursor
in: query
schema:
type: string
description: The cursor the last page gave, for the next.
responses:
'200':
description: The rules.
content:
application/json:
schema:
type: object
properties:
alertRules:
type: array
items:
$ref: '#/components/schemas/AlertRule'
cursor:
type:
- string
- 'null'
description: Give it as ?cursor= for the next page; null when nothing is left.
example:
alertRules:
- id: 2b3c4d5e-8888-4f6a-9b0c-1d2e3f4a5b6c
appId: 6e5d4c3b-7777-4b8a-9c0d-1e2f3a4b5c6d
name: New and regressed issues
pageId: 9b1d4f2a-1111-4e3c-9a8b-7c6d5e4f3a2b
internal: false
enabled: true
onNew: true
onRegressed: true
onEscalating: false
eventCount: 0
eventMinutes: 60
minPriority: high
minLevel: null
environments:
- production
release: null
tags: []
categories: []
throttle: release
ownRouting: false
repeatMinutes: 0
groupMinutes: 0
destinationIds: []
memberIds: []
paging: none
summary: New issues, regressions; high priority; production; once per release
createdAt: '2026-09-02T10:00:00.000Z'
lastFiredAt: null
cursor: null
'400':
description: The body or the query did not pass validation.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: No key, or a key that is not valid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Nothing by that id that this key reaches.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: More than 120 requests in a minute on this key. Retry-After says in how many seconds the minute is up.
headers:
Retry-After:
description: Seconds until the minute is up.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Something went wrong on our side.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
post:
tags:
- Alert rules
operationId: createAlertRule
summary: Make an alert rule
description: 'What the body leaves out takes the default rule''s: new and regressed high-priority issues, once per release, to the page''s destinations, paging nobody. At most 20 rules per app. Issue alerts are on-call alerts: without on-call (Hobby and Pro) these paths answer 404.'
parameters:
- name: app
in: path
required: true
schema:
type: string
description: The app's id or slug, from GET /apps.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AlertRuleInput'
example:
name: Checkout errors
onNew: true
onRegressed: true
minLevel: error
environments:
- production
responses:
'201':
description: The rule.
content:
application/json:
schema:
type: object
properties:
alertRule:
$ref: '#/components/schemas/AlertRule'
example:
alertRule:
id: 2b3c4d5e-8888-4f6a-9b0c-1d2e3f4a5b6c
appId: 6e5d4c3b-7777-4b8a-9c0d-1e2f3a4b5c6d
name: New and regressed issues
pageId: 9b1d4f2a-1111-4e3c-9a8b-7c6d5e4f3a2b
internal: false
enabled: true
onNew: true
onRegressed: true
onEscalating: false
eventCount: 0
eventMinutes: 60
minPriority: high
minLevel: null
environments:
- production
release: null
tags: []
categories: []
throttle: release
ownRouting: false
repeatMinutes: 0
groupMinutes: 0
destinationIds: []
memberIds: []
paging: none
summary: New issues, regressions; high priority; production; once per release
createdAt: '2026-09-02T10:00:00.000Z'
lastFiredAt: null
'400':
description: The body or the query did not pass validation.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: No key, or a key that is not valid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: A read-only key on a write route.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Nothing by that id that this key reaches.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: More than 120 requests in a minute on this key. Retry-After says in how many seconds the minute is up.
headers:
Retry-After:
description: Seconds until the minute is up.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Something went wrong on our side.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/apps/{app}/alert-rules/{ruleId}:
get:
tags:
- Alert rules
operationId: getAlertRule
summary: One alert rule
description: 'Issue alerts are on-call alerts: without on-call (Hobby and Pro) these paths answer 404.'
parameters:
- name: app
in: path
required: true
schema:
type: string
description: The app's id or slug, from GET /apps.
- name: ruleId
in: path
required: true
schema:
type: string
description: The rule id, from the list of rules.
responses:
'200':
description: The rule.
content:
application/json:
schema:
type: object
properties:
alertRule:
$ref: '#/components/schemas/AlertRule'
example:
alertRule:
id: 2b3c4d5e-8888-4f6a-9b0c-1d2e3f4a5b6c
appId: 6e5d4c3b-7777-4b8a-9c0d-1e2f3a4b5c6d
name: New and regressed issues
pageId: 9b1d4f2a-1111-4e3c-9a8b-7c6d5e4f3a2b
internal: false
enabled: true
onNew: true
onRegressed: true
onEscalating: false
eventCount: 0
eventMinutes: 60
minPriority: high
minLevel: null
environments:
- production
release: null
tags: []
categories: []
throttle: release
ownRouting: false
repeatMinutes: 0
groupMinutes: 0
destinationIds: []
memberIds: []
paging: none
summary: New issues, regressions; high priority; production; once per release
createdAt: '2026-09-02T10:00:00.000Z'
lastFiredAt: null
'401':
description: No key, or a key that is not valid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Nothing by that id that this key reaches.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: More than 120 requests in a minute on this key. Retry-After says in how many seconds the minute is up.
headers:
Retry-After:
description: Seconds until the minute is up.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Something went wrong on our side.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
patch:
tags:
- Alert rules
operationId: updateAlertRule
summary: Change an alert rule
description: 'What the body leaves out stays. Issue alerts are on-call alerts: without on-call (Hobby and Pro) these paths answer 404.'
parameters:
- name: app
in: path
required: true
schema:
type: string
description: The app's id or slug, from GET /apps.
- name: ruleId
in: path
required: true
schema:
type: string
description: The rule id, from the list of rules.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AlertRuleInput'
example:
enabled: false
responses:
'200':
description: The rule after.
content:
application/json:
schema:
type: object
properties:
alertRule:
$ref: '#/components/schemas/AlertRule'
example:
alertRule:
id: 2b3c4d5e-8888-4f6a-9b0c-1d2e3f4a5b6c
appId: 6e5d4c3b-7777-4b8a-9c0d-1e2f3a4b5c6d
name: New and regressed issues
pageId: 9b1d4f2a-1111-4e3c-9a8b-7c6d5e4f3a2b
internal: false
enabled: true
onNew: true
onRegressed: true
onEscalating: false
eventCount: 0
eventMinutes: 60
minPriority: high
minLevel: null
environments:
- production
release: null
tags: []
categories: []
throttle: release
ownRouting: false
repeatMinutes: 0
groupMinutes: 0
destinationIds: []
memberIds: []
paging: none
summary: New issues, regressions; high priority; production; once per release
createdAt: '2026-09-02T10:00:00.000Z'
lastFiredAt: null
'400':
description: The body or the query did not pass validation.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: No key, or a key that is not valid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: A read-only key on a write route.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Nothing by that id that this key reaches.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: More than 120 requests in a minute on this key. Retry-After says in how many seconds the minute is up.
headers:
Retry-After:
description: Seconds until the minute is up.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Something went wrong on our side.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
delete:
tags:
- Alert rules
operationId: removeAlertRule
summary: Remove an alert rule
description: 'Resolves its open alerts; their issues stay as they are. Without confirm, answers with what it would do. Issue alerts are on-call alerts: without on-call (Hobby and Pro) these paths answer 404.'
parameters:
- name: app
in: path
required: true
schema:
type: string
description: The app's id or slug, from GET /apps.
- name: ruleId
in: path
required: true
schema:
type: string
description: The rule id, from the list of rules.
- name: confirm
in: query
schema:
type: boolean
description: 'true goes ahead; "confirm": true in the body does the same. Left out, the answer says what would happen and nothing changes.'
responses:
'200':
description: 'Without confirm: what it would do.'
content:
application/json:
schema:
type: object
properties:
done:
type: boolean
description: 'false: nothing changed yet.'
confirm:
type: boolean
description: 'true: send confirm to go ahead.'
summary:
type: string
description: What it would do, in words.
alertRule:
$ref: '#/components/schemas/AlertRule'
openAlerts:
type: integer
description: Its open alerts, resolved on removal.
'204':
description: Removed.
'400':
description: The body or the query did not pass validation.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: No key, or a key that is not valid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: A read-only key on a write route.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Nothing by that id that this key reaches.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: More than 120 requests in a minute on this key. Retry-After says in how many seconds the minute is up.
headers:
Retry-After:
description: Seconds until the minute is up.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Something went wrong on our side.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
AlertRule:
type: object
properties:
id:
type: string
description: The rule id.
appId:
type: string
description: The app it watches.
name:
type: string
description: The rule's name, up to 80 characters.
pageId:
type: string
description: 'The page whose on-call takes its alerts: a status page, or the app''s project''s on-call page. A new rule takes the app''s page unless given, else the key''s, else its project''s on-call, made with the first rule when the project has no status page.'
enabled:
type: boolean
description: Off keeps the rule without alerting.
onNew:
type: boolean
description: Alerts on a new issue.
onRegressed:
type: boolean
description: Alerts on a regression.
onEscalating:
type: boolean
description: 'Alerts when an issue escalates: an hour with at least 50 events and ten times its hourly average over the week before.'
eventCount:
type: integer
description: Alerts when an issue takes so many events in eventMinutes; 0 is off.
minimum: 0
maximum: 1000000
eventMinutes:
type: integer
description: The minutes eventCount is counted over.
enum:
- 1
- 5
- 15
- 60
- 1440
minPriority:
type: string
description: The issue's priority at least this; low takes any.
enum:
- high
- medium
- low
minLevel:
type:
- string
- 'null'
description: The event's level at least this; null for any.
enum:
- debug
- info
- warning
- error
- fatal
environments:
type: array
items:
type: string
description: Up to 10 environments an event must be in; empty for any.
release:
type:
- string
- 'null'
description: The release an event must name; ending in * matches the start. Null for any.
tags:
type: array
items:
type: object
properties:
key:
type: string
description: The tag.
value:
type: string
description: Its value.
description: Up to 5 tags an event must all have. Also taken as an object of key and value.
categories:
type: array
items:
type: string
description: Up to 20 category keys, one of which the issue's category reads as through the app's schema; empty for any.
throttle:
type: string
description: 'How often one issue may alert: release (once per release and once per regression, once a day without a release), or at most every 30, 60, 1440 or 10080 minutes.'
enum:
- release
- '30'
- '60'
- '1440'
- '10080'
ownRouting:
type: boolean
description: true sends to destinationIds and memberIds; false to where the page's alerts go.
repeatMinutes:
type: integer
description: Minutes between repeats while triggered; 0 for none.
enum:
- 0
- 1
- 2
- 5
- 10
- 15
- 30
- 60
groupMinutes:
type: integer
description: Minutes in which later alerts join the first; 0 is off.
enum:
- 0
- 2
- 5
- 10
- 30
destinationIds:
type: array
items:
type: string
description: 'With ownRouting: the team''s alert destinations.'
memberIds:
type: array
items:
type: string
description: 'With ownRouting: people in the team to notify.'
paging:
type: string
description: 'Who is paged: "page" (the page''s escalation policy), "none", or the id of one of the team''s policies. Escalation is on Pro; elsewhere it is kept as it was.'
internal:
type: boolean
description: true when pageId is the project's on-call page, which is no status page.
summary:
type: string
description: What it alerts on and how often, in words.
createdAt:
type: string
description: ISO 8601, UTC.
format: date-time
lastFiredAt:
type:
- string
- 'null'
description: ISO 8601, UTC.
format: date-time
Error:
type: object
properties:
error:
type: object
properties:
code:
type: string
description: 'A short machine-readable reason: unauthenticated, read_only, forbidden, not_found, bad_request, conflict, plan_limit, too_broad, rate_limited, suspended, out_of_reach, internal, unavailable.'
message:
type: string
description: What went wrong, in words.
required:
- code
- message
required:
- error
AlertRuleInput:
type: object
properties:
name:
type: string
description: The rule's name, up to 80 characters.
pageId:
type: string
description: 'The page whose on-call takes its alerts: a status page, or the app''s project''s on-call page. A new rule takes the app''s page unless given, else the key''s, else its project''s on-call, made with the first rule when the project has no status page.'
enabled:
type: boolean
description: Off keeps the rule without alerting.
onNew:
type: boolean
description: Alerts on a new issue.
onRegressed:
type: boolean
description: Alerts on a regression.
onEscalating:
type: boolean
description: 'Alerts when an issue escalates: an hour with at least 50 events and ten times its hourly average over the week before.'
eventCount:
type: integer
description: Alerts when an issue takes so many events in eventMinutes; 0 is off.
minimum: 0
maximum: 1000000
eventMinutes:
type: integer
description: The minutes eventCount is counted over.
enum:
- 1
- 5
- 15
- 60
- 1440
minPriority:
type: string
description: The issue's priority at least this; low takes any.
enum:
- high
- medium
- low
minLevel:
type:
- string
- 'null'
description: The event's level at least this; null for any.
enum:
- debug
- info
- warning
- error
- fatal
environments:
type: array
items:
type: string
description: Up to 10 environments an event must be in; empty for any.
release:
type:
- string
- 'null'
description: The release an event must name; ending in * matches the start. Null for any.
tags:
type: array
items:
type: object
properties:
key:
type: string
description: The tag.
value:
type: string
description: Its value.
description: Up to 5 tags an event must all have. Also taken as an object of key and value.
categories:
type: array
items:
type: string
description: Up to 20 category keys, one of which the issue's category reads as through the app's schema; empty for any.
throttle:
type: string
description: 'How often one issue may alert: release (once per release and once per regression, once a day without a release), or at most every 30, 60, 1440 or 10080 minutes.'
enum:
- release
- '30'
- '60'
- '1440'
- '10080'
ownRouting:
type: boolean
description: true sends to destinationIds and memberIds; false to where the page's alerts go.
repeatMinutes:
type: integer
description: Minutes between repeats while triggered; 0 for none.
enum:
- 0
- 1
- 2
- 5
- 10
- 15
- 30
- 60
groupMinutes:
type: integer
description: Minutes in which later alerts join the first; 0 is off.
enum:
- 0
- 2
- 5
- 10
- 30
destinationIds:
type: array
items:
type: string
description: 'With ownRouting: the team''s alert destinations.'
memberIds:
type: array
items:
type: string
description: 'With ownRouting: people in the team to notify.'
paging:
type: string
description: 'Who is paged: "page" (the page''s escalation policy), "none", or the id of one of the team''s policies. Escalation is on Pro; elsewhere it is kept as it was.'
securitySchemes:
bearer:
type: http
scheme: bearer
description: 'Authorization: Bearer sk_... with a key from Settings, API keys, or an OAuth access token (sat_...) from /oauth/token, which /.well-known/oauth-authorization-server describes. An agent nobody has claimed yet holds a sag_... token, which reaches /agent/draft only (see /auth.md).'