Find checks
200 response:
limit defaults
to 50 and accepts 1–200. For the next page, pass the returned nextCursor as
cursor and keep the same limit:
nextCursor is null. Cursors expire after 24 hours; on 400 invalid_cursor, restart
the list without a cursor. This is a live list: concurrent edits may appear on later pages.
Read a check for its instructions:
200 response (abbreviated instructions):
Create an organization check
201 response:
Location header identifies the new check. Instructions must contain
text and fit within 64 KiB of UTF-8. The complete JSON request must fit within
512 KiB, including escaping; larger requests return 413 request_too_large. Names are fixed when created. Scope is assigned
by the server; a customer cannot create a global check.
Create does not support idempotency keys. Do not automatically retry if a timeout
or connection failure leaves the outcome uncertain. Inspect the catalog and read
candidate checks to compare their contents before deciding whether to create again.
This is best-effort: names are not unique, and no request identifier reliably links
a request to its result. Repeating the request can create a duplicate.
Revise instructions
Read the check, then send itsversionId as expectedVersionId:
200 response:
versionId for the next edit. If the supplied version is no longer current,
the API returns 409:
versionId. After an uncertain PATCH response, first read the
check: if it already contains your intended instructions, no further write is
needed. Otherwise reconcile before retrying; do not blindly replace another edit.
To inspect an earlier revision, pass its version ID:
markdown and versionId identify that revision; updatedAt still
describes the check’s latest publication. A version belonging to a different
check, or an uploaded version that was never published, returns 404. Store both the check ID and version ID when citing instructions.
If versioned storage cannot be read, the API returns 503 temporarily_unavailable
with Retry-After in seconds. Retry the same read after that delay.