Find checks
200 response (use IDs returned by your requests):
limit and
cursor; to find a check by name, scope, or enabled status, inspect the returned pages. limit defaults
to 50 and accepts 1–200. For the next page, pass the returned nextCursor as
cursor and keep the same limit. Set NEXT_CURSOR to that returned value:
nextCursor is null. Cursors do not expire; on 400 invalid_cursor, restart
the list without a cursor. This is a live list: concurrent edits may appear on later pages.
Set CHECK_ID to an ID returned by the list, then read its instructions:
200 response (abbreviated instructions):
Create an organization check
201 response:
CHECK_ID to the created check’s id. Save its versionId as ORIGINAL_VERSION_ID
for the historical read below. Use the latest returned versionId in each update body.
These replace any check ID you used while browsing.
The response’s 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. To prepare a check without running it
in new pre-reviews, include enabled: false when creating it.
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.
Set deterministic applicability
Setapplicability when creating or revising a check. For example, this check
applies to California workers’ compensation filings or Texas property filings:
201 response returns the same
applicability alongside the check ID, version ID, and instructions.
- Scopes combine with OR. Fields within a scope combine with AND.
- Multiple values within a field are alternatives. The example does not include California property filings or Texas workers’ compensation filings.
- Supported fields are
states(two-letter jurisdiction codes),toiCodes,subToiCodes, andfilingTypes(managed filing values such asformorrate). Discover insurance codes through insurance types. - Omit a field for no restriction on that dimension. Each scope needs at least one field, and each supplied field needs 1–100 values. At most 100 scopes are allowed, within a total of 16 KiB of JSON.
[]means no deterministic restrictions. Existing checks and creates that omitapplicabilityuse[]; Markdown applicability still applies.
not_applicable without a check session. When a
required fact is missing, the summary records unknown applicability and the check
runs with document evidence. For matching checks, the check agent assesses the
Markdown applicability conditions using the captured documents before performing
the check. Matching filters do not mean the check has passed.
Revise instructions and filters
Read the organization check. Replace the illustrativeexpectedVersionId below with its
current versionId:
200 response:
applicability
to replace all filters, omit it to preserve them, or send [] to clear them.
For a filter-only edit, resend the current Markdown. Filters and instructions
share the same immutable version. Retain the new
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 and filters, 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, applicability, enabled, 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.
Write useful instructions
Use sections for applicability, instructions, evidence, findings, examples, and sources. Put known state, TOI, sub-TOI, and filing-type restrictions inapplicability; describe additional conditions in the Markdown. Cite
authoritative guidance when asserting a regulatory requirement; an example filing
alone does not establish one. Missing evidence should result in a request for
information, not an assumed pass.
Disable a check
Setenabled to false to keep a check in the catalog without running it in new
pre-reviews. For example, hold an imported requirement disabled when its portal
category cannot yet be represented by the applicability filters. Do not omit an
unsupported dimension: omitted filters broaden the check’s scope.
Read the current check, then send its current versionId and complete Markdown unchanged
with this update. Replace the illustrative expectedVersionId below with that current value.
This example uses the version and instructions returned by the edit above:
200 response returns the check with enabled: false and a new versionId.
Disabled checks appear in catalog reads, but are absent from new review runs.
Existing reviews retain the revision captured when they started. Creation defaults
to enabled: true; omitting enabled on PATCH preserves the current setting.
To re-enable, read the latest revision and PATCH enabled: true with its Markdown
and expectedVersionId. A 409 conflict means another edit won; read again and
reconcile before retrying.