StatOSS Agents API
An unclaimed agent's draft, with its sag_ token (see /auth.md). Nothing in it is public, checked or mailed until a person claims the agent.
An unclaimed agent's draft, with its sag_ token (see /auth.md). Nothing in it is public, checked or mailed until a person claims the agent.
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-agents-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 Agents 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: Agents
description: An unclaimed agent's draft, with its sag_ token (see /auth.md). Nothing in it is public, checked or mailed until a person claims the agent.
paths:
/agent/draft:
get:
tags:
- Agents
operationId: getAgentDraft
summary: Read the draft
description: The draft of the agent the sag_ token belongs to.
responses:
'200':
description: The draft.
content:
application/json:
schema:
$ref: '#/components/schemas/AgentDraftAnswer'
'401':
description: No token, or one that is not valid or has run out.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: 'An API key or a claimed agent''s token: the draft takes an unclaimed agent''s token (agent_token_required).'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: More than 120 requests in a minute on this token. 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'
put:
tags:
- Agents
operationId: putAgentDraft
summary: Replace the draft
description: 'Replaces the whole draft: at most 3 pages, 25 monitors and components in all, 3 apps and 64 KB. Unknown fields at the top, on a page or on an app are refused.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AgentDraft'
example:
pages:
- name: Acme status
slug: acme
components:
- name: Support
groupName: People
monitors:
- name: API
type: http
url: https://api.acme.example/health
apps:
- name: Checkout
platform: node
page: 0
responses:
'200':
description: The draft.
content:
application/json:
schema:
$ref: '#/components/schemas/AgentDraftAnswer'
'400':
description: 'The draft did not pass: the message names where, such as pages[0].monitors[1].'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: No token, or one that is not valid or has run out.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: 'An API key or a claimed agent''s token: the draft takes an unclaimed agent''s token (agent_token_required).'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'413':
description: The draft is over 64 KB.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: More than 120 requests in a minute on this token. 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:
MonitorInput:
type: object
properties:
name:
type: string
description: 1 to 80 characters. Left out on a new monitor, the host of url or host. Required for heartbeat and component.
maxLength: 80
type:
type: string
description: http unless given. Cannot change after creation.
enum:
- http
- tcp
- dns
- ping
- certificate
- domain
- heartbeat
- component
url:
type: string
description: 'http: a URL, http or https. Without a scheme, https:// is added.'
host:
type: string
description: 'tcp, dns, ping, certificate, domain: a hostname.'
port:
type: integer
description: 'tcp: required. certificate: defaults to 443; on 25, 587 and 2525 the check asks for SMTP''s STARTTLS before the handshake.'
minimum: 1
maximum: 65535
dnsType:
type: string
description: 'dns: A (default), AAAA, CNAME, MX, TXT or NS.'
enum:
- A
- AAAA
- CNAME
- MX
- TXT
- NS
dnsExpect:
type: string
description: 'dns: text an answer must contain, up to 500 characters.'
maxLength: 500
warnDays:
type: integer
description: 'certificate: default 14. domain: default 30.'
minimum: 1
maximum: 365
periodMinutes:
type: integer
description: 'heartbeat: required, minutes between pings, 1 to 44640.'
minimum: 1
maximum: 44640
graceMinutes:
type: integer
description: 'heartbeat: minutes of grace after the period, 0 to 10080. Default 0.'
minimum: 0
maximum: 10080
groupName:
type: string
description: The group it is shown in, up to 60 characters; empty or null for none. Answers call it group.
maxLength: 60
group:
type: string
description: The same as groupName, under the name answers use. Sent with groupName, the two must agree.
maxLength: 60
position:
type: integer
description: Its place in the page's order, from 0; past the end is the end, and the others keep their order around it. Left out, a new monitor goes last and a changed one stays.
minimum: 0
archived:
type: boolean
description: 'On a change only. true archives it: off the page and its feeds, not checked, not counted against the plan, its history kept, and an automatic incident or alert it left open resolved. false restores it, last on the page, within the plan''s monitor count (422 when there is no room).'
slowThresholdMs:
type: integer
description: 'http, tcp, dns, ping: 1 to 9999, under the 10 second check timeout.'
minimum: 1
maximum: 9999
slowThresholds:
type:
- object
- 'null'
additionalProperties:
type: integer
minimum: 1
maximum: 9999
description: 'http, tcp, dns, ping: some regions'' own thresholds, region to ms (1 to 9999), e.g. {"north-america": 800}. A reading from one is slow above its number instead of slowThresholdMs. Null: none. Left out on an update, they stay. Hobby and Pro.'
latencyLocations:
type:
- array
- 'null'
items:
type: string
description: A region, by name. A location's name stands for its region.
description: 'http, tcp, dns, ping: the regions whose readings count toward response time and slowness. Null: the page''s. Left out on an update, it stays. Hobby and Pro.'
homePlaces:
type:
- array
- 'null'
items:
type: string
description: A place or a region, by name.
description: 'http, tcp, dns, ping, certificate, domain: overrides the page''s homePlaces region by region: a place runs that region''s checks, a region name leaves it to its fastest place. A region left out, or null, follows the page. Left out on an update, it stays.'
pinnedRegion:
type:
- string
- 'null'
description: 'http, tcp, dns, ping, certificate, domain: check from this region alone (europe, north-america, south-america, africa, asia, oceania). Null or empty: every region. Left out on an update, it stays. Hobby and Pro.'
vendorUrl:
type: string
description: 'component: a vendor''s status page to follow (Statuspage, incident.io, Instatus, Better Stack, status.io, Sorry, StatOSS, or Slack''s or Heroku''s), e.g. https://www.githubstatus.com. Pro.'
vendorComponent:
type: string
description: 'component: one component on the vendor''s page, by name, up to 200 characters. Left out, the whole page is followed.'
maxLength: 200
method:
type: string
description: 'http: GET (default), HEAD, POST, PUT, PATCH or DELETE.'
enum:
- GET
- HEAD
- POST
- PUT
- PATCH
- DELETE
headers:
type: object
additionalProperties:
type: string
description: 'http: request headers as name to value. A name is letters, digits and hyphens; a value has no line breaks or other control characters. Up to 4000 characters in all. Stored, never returned.'
body:
type: string
description: 'http: sent as-is with methods that take one, up to 10,000 characters. Stored, never returned.'
maxLength: 10000
expectStatus:
type: integer
description: 'http: the exact status to pass on, 100 to 599; left out, any 2xx. Redirects (301, 302, 303, 307, 308) are followed up to five hops and the last answer is judged, unless this is 300 to 399: then nothing is followed and the first answer must have this status.'
minimum: 100
maximum: 599
keyword:
type: string
description: 'http: text the body must contain, or must not (keywordMode). tcp: text the server''s greeting must contain within the timeout, such as 220 for SMTP or SSH-2.0; left out, connecting is enough. Up to 200 characters.'
maxLength: 200
keywordMode:
type: string
description: present or absent.
enum:
- present
- absent
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
AgentDraftAnswer:
type: object
properties:
registrationId:
type: string
description: The registration, reg_...
draft:
$ref: '#/components/schemas/AgentDraft'
counts:
type: object
properties:
pages:
type: integer
description: Pages.
monitors:
type: integer
description: Monitors that run checks.
components:
type: integer
description: Components.
apps:
type: integer
description: Apps.
updatedAt:
type:
- string
- 'null'
description: ISO 8601, UTC.
format: date-time
expiresAt:
type: string
description: When the registration goes unless claimed.
format: date-time
AgentDraft:
type: object
properties:
pages:
type: array
items:
type: object
properties:
name:
type: string
description: 1 to 80 characters.
maxLength: 80
slug:
type:
- string
- 'null'
description: The address it wishes for. The plan assigns one on Free, and a taken address gets another at the claim.
components:
type: array
items:
$ref: '#/components/schemas/MonitorInput'
description: Set by hand; type is component.
monitors:
type: array
items:
$ref: '#/components/schemas/MonitorInput'
description: As POST /pages/{pageId}/monitors takes them, checked by the same rules.
required:
- name
maxItems: 3
apps:
type: array
items:
type: object
properties:
name:
type: string
description: 1 to 80 characters.
maxLength: 80
platform:
type:
- string
- 'null'
description: One of the platforms apps take.
page:
type:
- integer
- 'null'
description: The place of a draft page it shows on, from 0.
minimum: 0
required:
- name
maxItems: 3
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).'