Skip to content

Conventions

These conventions apply to every resource in the API unless a resource page says otherwise.

Successful responses are plain JSON. A single resource is a JSON object. A list is a bare JSON array, with no wrapper object:

[
{ "id": "6f1c2a9e-0b7d-4c1e-9a53-2f8e1d4b7c60", "name": "Public API" },
{ "id": "0d4e8b71-3a2f-4f6c-8e19-7c5b2a1d9e34", "name": "Status page" }
]

An empty list is []. Errors use a different shape; see Errors.

Treat resource IDs as opaque strings. Most are UUIDs today. Paths take the ID as the {id} segment.

Organizations and status pages also have a human-readable slug used in public URLs.

Timestamps are RFC 3339 strings, in UTC when YipYap generates them, with fractional seconds when present:

2026-04-24T17:42:03.417Z

Query parameters that take a time (for example since and until on check history) expect RFC 3339 too. Compute relative ranges such as “last 24 hours” on the client.

List endpoints that page take two query parameters:

ParameterDefaultRules
limit501 to 100. A value above 100, zero, negative or not a number is replaced by 50. It is not capped at 100.
offset0Number of items to skip. A negative value is treated as 0.
GET /api/v1/monitors?limit=100&offset=200

The response is a bare array, with no cursor or “has more” flag and (except on check history) no total count. A page shorter than limit is the last page.

Read every item by stepping offset by the page size until a page comes back short. Stop on an error too, or a failed request looks like an empty last page:

Terminal window
limit=100
offset=0
while :; do
page=$(curl -fsS -H "Authorization: Bearer $YIPYAP_API_KEY" \
"https://console.yipyap.run/api/v1/monitors?limit=$limit&offset=$offset") \
|| exit 1
echo "$page" | jq -c '.[]'
count=$(echo "$page" | jq 'length')
[ "$count" -lt "$limit" ] && break
offset=$((offset + limit))
done
import os
import requests
def list_all(path, limit=100):
headers = {"Authorization": f"Bearer {os.environ['YIPYAP_API_KEY']}"}
offset = 0
while True:
r = requests.get(
f"https://console.yipyap.run/api/v1/{path}",
params={"limit": limit, "offset": offset},
headers=headers,
timeout=30,
)
r.raise_for_status()
page = r.json()
yield from page
if len(page) < limit:
return
offset += limit
monitors = list(list_all("monitors"))

Keep limit at 100 or below. If you ask for limit=200, the server returns at most 50 items, the page looks short, and a loop like the ones above stops early.

Offsets count positions, not items. If items are created or deleted while you page, an item can appear twice or be skipped. Deduplicate by id if that matters.

EndpointOrderResponse
GET /api/v1/monitorsnamearray
GET /api/v1/alertsnewest started_at firstarray
GET /api/v1/incidentsnewest started_at firstarray
GET /api/v1/escalation-policiesnamearray
GET /api/v1/notification-channelsnamearray
GET /api/v1/maintenance-windowsnewest start_at firstarray
GET /api/v1/servicesnamearray
GET /api/v1/teamsnamearray
GET /api/v1/usersemailarray
GET /api/v1/org/api-keysnewest firstarray
GET /api/v1/monitors/{id}/checksnewest firstobject: {"checks": [...], "total": n}
GET /api/v1/support/ticketsmost recently updated firstobject: {"tickets": [...], "open_count": n}

The last two wrap the array in an object. Page them with the same limit and offset, reading the length of checks or tickets. Check history also returns total, the number of checks that match the filter, so you can stop when offset reaches it.

Other lists (schedules, status pages, monitor groups, custom states) return every item in one array and ignore limit and offset. The reply audit log and CloudEvents poll have their own parameters, described on their pages.

Some lists take filters, for example status, severity and monitor_id on /alerts. Each resource page lists the filters it supports. Unknown query parameters are ignored.

PATCH changes only the fields you send. On most resources an empty string or a zero number counts as “not sent”, so PATCH cannot clear a field by sending an empty value. PUT endpoints (for example escalation-policy steps and status-page layouts) replace the whole collection.

LimitValueNotes
JSON request body1 MiBA larger body fails to decode and returns 400.
CloudEvents ingest body (YipYap Cloud)4 MiBReturns 413 when exceeded.
CloudEvents batch (YipYap Cloud)256 eventsReturns 413 when exceeded.

YipYap stores and returns times in UTC. The console shows them in the viewer’s local time; API clients should do the same. On-call schedules take a timezone field for their handoff time.

Requests and responses are UTF-8 JSON.

All endpoints are under /api/v1. The shapes on these pages (string errors, limit and offset pages, bare arrays) are the v1 contract. Responses can gain new fields, so ignore fields you do not recognize.

A v2 with a richer contract is planned. These pages will document it, and how to move from v1, once it is available.