Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: StatOSS On call 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: On call
description: Who is on call now, by schedule and by escalation policy level, and a page's alerts.
paths:
/pages/{pageId}/alerts:
get:
tags:
- On call
operationId: listAlerts
summary: List a page's alerts
description: 'Its open alerts, triggered before acknowledged, or with status=resolved the last 100 resolved. Alerts that joined another''s group are shown under it. The page can be a project''s on-call page, whose id an alert rule with internal: true carries; GET /pages does not list it. Without on-call, a 404.'
parameters:
- name: pageId
in: path
required: true
schema:
type: string
description: The page id, from GET /pages.
- name: status
in: query
schema:
type: string
enum:
- open
- resolved
default: open
description: open, or resolved for the last 100.
responses:
'200':
description: The alerts.
content:
application/json:
schema:
type: object
properties:
alerts:
type: array
items:
$ref: '#/components/schemas/Alert'
example:
alerts:
- id: 9d1c2b3a-0000-4b8a-9c0d-1e2f3a4b5c6d
pageId: 6e5d4c3b-1111-4b8a-9c0d-1e2f3a4b5c6d
internal: false
number: 12
status: triggered
severity: critical
summary: Checkout is down
affected: checkout-api
from: Checkout API
count: 1
createdAt: '2026-10-08T09:30:00.000Z'
acknowledgedAt: null
acknowledgedBy: null
resolvedAt: null
resolvedBy: null
acknowledgedUntil: null
snoozed: false
heldByMaintenance: false
groupedInto: null
grouped: 0
url: https://statoss.com/app/6e5d4c3b-1111-4b8a-9c0d-1e2f3a4b5c6d/alerts/9d1c2b3a-0000-4b8a-9c0d-1e2f3a4b5c6d
'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'
/pages/{pageId}/alerts/{alertId}:
get:
tags:
- On call
operationId: getAlert
summary: One alert
description: The alert with what its sender said and its timeline. Without on-call, a 404.
parameters:
- name: pageId
in: path
required: true
schema:
type: string
description: The page id, from GET /pages.
- name: alertId
in: path
required: true
schema:
type: string
description: The alert id, from the list of alerts.
responses:
'200':
description: The alert.
content:
application/json:
schema:
type: object
properties:
alert:
$ref: '#/components/schemas/AlertDetail'
'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'
/pages/{pageId}/alerts/{alertId}/{action}:
post:
tags:
- On call
operationId: actOnAlert
summary: Acknowledge, unacknowledge, resolve or snooze an alert
description: 'Needs a write key. snooze needs minutes, a whole number from 1 to 10080: nobody is paged or reminded until they run out, when the alert is triggered again if still open. A 409 when the alert is past that already. Without on-call, a 404.'
parameters:
- name: pageId
in: path
required: true
schema:
type: string
description: The page id, from GET /pages.
- name: alertId
in: path
required: true
schema:
type: string
description: The alert id, from the list of alerts.
- name: action
in: path
required: true
schema:
type: string
enum:
- acknowledge
- unacknowledge
- resolve
- snooze
description: What to do.
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
note:
type: string
description: Added to the alert's timeline.
minutes:
type: integer
description: 'snooze: how long, from 1 to 10080.'
minimum: 1
maximum: 10080
example:
note: Looking into it.
responses:
'200':
description: The alert after.
content:
application/json:
schema:
type: object
properties:
alert:
$ref: '#/components/schemas/Alert'
'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'
'409':
description: Something changed since, or it cannot be done as things stand.
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'
/pages/{pageId}/on-call:
get:
tags:
- On call
operationId: getOnCall
summary: Who is on call
description: Each of the team's schedules with whoever is on call now and until when, and each policy that pages for the page (its own, and those its sources page through), level by level, with who it would page now. Schedules and policies are on Pro; elsewhere both lists are empty. Without on-call, a 404.
parameters:
- name: pageId
in: path
required: true
schema:
type: string
description: The page id, from GET /pages.
responses:
'200':
description: Who is on call.
content:
application/json:
schema:
$ref: '#/components/schemas/OnCall'
'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'
components:
schemas:
Alert:
type: object
properties:
id:
type: string
description: The alert id.
pageId:
type: string
description: The page it is on.
internal:
type: boolean
description: true when the page is a project's on-call page, which is no status page.
number:
type: integer
description: 'Counts up per page: #12 in the dashboard.'
status:
type: string
description: triggered, acknowledged or resolved.
enum:
- triggered
- acknowledged
- resolved
severity:
type: string
description: critical, error, warning or info.
enum:
- critical
- error
- warning
- info
summary:
type: string
description: What the sender says happened.
affected:
type:
- string
- 'null'
description: What the sender says is affected.
from:
type: string
description: The source's name, or the monitor's for an outage.
count:
type: integer
description: How many times it came in.
createdAt:
type: string
description: ISO 8601, UTC.
format: date-time
acknowledgedAt:
type:
- string
- 'null'
description: ISO 8601, UTC.
format: date-time
acknowledgedBy:
type:
- string
- 'null'
description: Who acknowledged it.
resolvedAt:
type:
- string
- 'null'
description: ISO 8601, UTC.
format: date-time
resolvedBy:
type:
- string
- 'null'
description: Who or what resolved it.
acknowledgedUntil:
type:
- string
- 'null'
description: When the acknowledgement or snooze runs out and it is triggered again; null for good.
format: date-time
snoozed:
type: boolean
description: true when acknowledgedUntil is a snooze.
heldByMaintenance:
type: boolean
description: Waiting for a maintenance window over the whole page to end.
groupedInto:
type:
- string
- 'null'
description: The alert it joined, when it is in a group.
grouped:
type: integer
description: How many open alerts joined it.
url:
type: string
description: The alert in the dashboard.
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
OnCall:
type: object
properties:
pageId:
type: string
description: The page.
at:
type: string
description: ISO 8601, UTC.
format: date-time
schedules:
type: array
items:
type: object
properties:
id:
type: string
description: The schedule id.
name:
type: string
description: Its name.
timeZone:
type: string
description: The zone its turns are in.
onCall:
type:
- object
- 'null'
properties:
id:
type: string
description: Their user id.
name:
type: string
description: Their name, or email.
email:
type: string
description: Their email.
until:
type:
- string
- 'null'
description: When their turn ends; null when nobody is on call, or not within 31 days.
format: date-time
policies:
type: array
items:
type: object
properties:
id:
type: string
description: The escalation policy id.
name:
type: string
description: Its name.
repeat:
type: integer
description: How many times it runs again from the top.
forPage:
type: boolean
description: The page's own policy.
sources:
type: array
items:
type: object
properties:
id:
type: string
description: A source on the page.
name:
type: string
description: Its name.
levels:
type: array
items:
type: object
properties:
level:
type: integer
description: 1 for the first.
delayMinutes:
type: integer
description: How long it waits for an acknowledgement.
targets:
type: array
items:
type: object
properties:
kind:
type: string
description: A person or a schedule.
enum:
- user
- schedule
id:
type: string
description: Their id.
name:
type: string
description: Their name.
pages:
type: array
items:
type: object
properties:
id:
type: string
description: Their user id.
name:
type: string
description: Their name, or email.
email:
type: string
description: Their email.
description: Who it would page now.
AlertDetail:
type: object
properties:
id:
type: string
description: The alert id.
pageId:
type: string
description: The page it is on.
internal:
type: boolean
description: true when the page is a project's on-call page, which is no status page.
number:
type: integer
description: 'Counts up per page: #12 in the dashboard.'
status:
type: string
description: triggered, acknowledged or resolved.
enum:
- triggered
- acknowledged
- resolved
severity:
type: string
description: critical, error, warning or info.
enum:
- critical
- error
- warning
- info
summary:
type: string
description: What the sender says happened.
affected:
type:
- string
- 'null'
description: What the sender says is affected.
from:
type: string
description: The source's name, or the monitor's for an outage.
count:
type: integer
description: How many times it came in.
createdAt:
type: string
description: ISO 8601, UTC.
format: date-time
acknowledgedAt:
type:
- string
- 'null'
description: ISO 8601, UTC.
format: date-time
acknowledgedBy:
type:
- string
- 'null'
description: Who acknowledged it.
resolvedAt:
type:
- string
- 'null'
description: ISO 8601, UTC.
format: date-time
resolvedBy:
type:
- string
- 'null'
description: Who or what resolved it.
acknowledgedUntil:
type:
- string
- 'null'
description: When the acknowledgement or snooze runs out and it is triggered again; null for good.
format: date-time
snoozed:
type: boolean
description: true when acknowledgedUntil is a snooze.
heldByMaintenance:
type: boolean
description: Waiting for a maintenance window over the whole page to end.
groupedInto:
type:
- string
- 'null'
description: The alert it joined, when it is in a group.
grouped:
type: integer
description: How many open alerts joined it.
url:
type: string
description: The alert in the dashboard.
dedupKey:
type: string
description: What later events name it by while it is open.
via:
type: string
description: Which way it came in.
enum:
- pagerduty
- pagerduty-v1
- opsgenie
- sentry
- monitor
- issue
- log
details:
type: object
properties:
description:
type:
- string
- 'null'
description: The sender's description.
fields:
type: array
items:
type: array
items:
type: string
description: The sender's details, each a list of a name and its value.
links:
type: array
items:
type: object
properties:
href:
type: string
description: The address.
text:
type: string
description: Its text.
tags:
type: array
items:
type: string
description: The sender's tags.
timeline:
type: array
items:
type: object
properties:
at:
type: string
description: ISO 8601, UTC.
format: date-time
kind:
type: string
description: triggered, retriggered, acknowledged, unacknowledged, resolved, note, notified, repeated, paged, snoozed or grouped.
by:
type:
- string
- 'null'
description: Who or what did it.
body:
type:
- string
- 'null'
description: What was said or done.
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).'