Conventions
These conventions apply to every resource in the API unless a resource page says otherwise.
Responses
Section titled “Responses”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.
Identifiers
Section titled “Identifiers”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
Section titled “Timestamps”Timestamps are RFC 3339 strings, in UTC when YipYap generates them, with fractional seconds when present:
2026-04-24T17:42:03.417ZQuery 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.
Pagination
Section titled “Pagination”List endpoints that page take two query parameters:
| Parameter | Default | Rules |
|---|---|---|
limit | 50 | 1 to 100. A value above 100, zero, negative or not a number is replaced by 50. It is not capped at 100. |
offset | 0 | Number of items to skip. A negative value is treated as 0. |
GET /api/v1/monitors?limit=100&offset=200The 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:
limit=100offset=0while :; 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))doneimport osimport 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.
Which lists page
Section titled “Which lists page”| Endpoint | Order | Response |
|---|---|---|
GET /api/v1/monitors | name | array |
GET /api/v1/alerts | newest started_at first | array |
GET /api/v1/incidents | newest started_at first | array |
GET /api/v1/escalation-policies | name | array |
GET /api/v1/notification-channels | name | array |
GET /api/v1/maintenance-windows | newest start_at first | array |
GET /api/v1/services | name | array |
GET /api/v1/teams | name | array |
GET /api/v1/users | array | |
GET /api/v1/org/api-keys | newest first | array |
GET /api/v1/monitors/{id}/checks | newest first | object: {"checks": [...], "total": n} |
GET /api/v1/support/tickets | most recently updated first | object: {"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.
Filtering
Section titled “Filtering”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.
Partial updates
Section titled “Partial updates”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.
Request limits
Section titled “Request limits”| Limit | Value | Notes |
|---|---|---|
| JSON request body | 1 MiB | A larger body fails to decode and returns 400. |
| CloudEvents ingest body (YipYap Cloud) | 4 MiB | Returns 413 when exceeded. |
| CloudEvents batch (YipYap Cloud) | 256 events | Returns 413 when exceeded. |
Time zones
Section titled “Time zones”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.
Character encoding
Section titled “Character encoding”Requests and responses are UTF-8 JSON.
API versioning
Section titled “API versioning”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.