Monita API
Read the same reviewed change records your team sees in Monita, from your own software. The API is read-only JSON over HTTPS at https://monita.cc/api/v1. Results include federal changes and the states your organisation has bought.
Authentication
An organisation admin creates keys in Monita under Settings, then Developers. API access is an add-on in Billing. Each key is shown once, so copy it straight into your secret store. If a key leaks, revoke it there and create a new one.
Send the key as a bearer token on every request:
curl https://monita.cc/api/v1/records \
-H "Authorization: Bearer $MONITA_API_KEY"const res = await fetch("https://monita.cc/api/v1/records", {
headers: { Authorization: `Bearer ${process.env.MONITA_API_KEY}` },
});
if (!res.ok) throw new Error((await res.json()).error.message);
const { data, nextCursor } = await res.json();A missing, unknown or revoked key gets 401. A key whose organisation no longer has the API add-on gets 403.
Rate limits
Each key can make 600 requests a minute, counted over a sliding window. Every response tells you where you stand:
- X-RateLimit-Limit: 600.
- X-RateLimit-Remaining: requests left in the window.
- X-RateLimit-Reset: when the window resets, in Unix seconds.
Over the limit you get 429 with a Retry-After header in seconds. Wait that long, then carry on.
Records
A record is one rule change: a proposed rule, a final rule, a bulletin or guidance. Each has a stable ID like MON-2026-000123. When reviewers correct a record, supersede it with a final rule or withdraw it, they add a version; earlier versions never change.
- GET /records: the latest version of each record, filtered and paged.
- GET /records/{id}: the latest version of one record.
- GET /records/{id}/versions: every version, oldest first, as { data: [...] }.
A record outside your organisation’s states returns 404, the same as one that doesn’t exist. Dates are calendar dates (YYYY-MM-DD) or null; publishedAt is when this version was published, in UTC. Summaries are written by Auxlia reviewers and are not legal advice: link people to sourceUrl before they act.
{
"id": "MON-2026-000123",
"version": 2,
"state": "CORRECTED",
"correctionReason": "Effective date corrected to January 1.",
"taxonomyVersion": "1.0.0",
"jurisdiction": "US-OH",
"status": "FINAL",
"changeType": "AMENDED",
"instrument": "RULE",
"impact": "HIGH",
"title": "Ohio shortens prior authorization window for IOP to 30 days",
"summary": "Intensive outpatient programs must request prior authorization after 30 days of treatment instead of 60, starting January 1.",
"whatChanged": "Rule 5160-27-01 moves the prior authorization point for IOP from 60 to 30 calendar days of a treatment episode.",
"whoAffected": "Ohio Medicaid providers running intensive outpatient programs.",
"actions": [
"Update your IOP authorization tracking to 30 days",
"Brief intake and billing staff before January 1"
],
"topics": [
"BILL.PRIOR_AUTH"
],
"settings": [
"IOP"
],
"payers": [
"MEDICAID_FFS",
"MEDICAID_MCO"
],
"documentTypes": [],
"serviceCodes": [
"H0015"
],
"dates": {
"published": "2026-11-02",
"commentDeadline": null,
"hearing": null,
"effective": "2027-01-01",
"compliance": null
},
"citation": "OAC 5160-27-01",
"sourceUrl": "https://codes.ohio.gov/ohio-administrative-code/rule-5160-27-01",
"thread": {
"id": "cm3thread0001",
"recordIds": [
"MON-2026-000087"
]
},
"publishedAt": "2026-11-04T15:20:11Z",
"url": "https://monita.cc/app/records/MON-2026-000123",
"disclaimer": "Summary by Auxlia reviewers. Not legal advice. Read the source before acting."
}Filtering
Filters on GET /records take taxonomy codes. Repeat a parameter or separate values with commas; values of one parameter match any, different parameters must all match.
- jurisdiction, status, impact, setting, payer, documentType: exact codes.
- topic: a code and everything under it. topic=PRIV matches PRIV.PART2.
- hasDocumentType=true: only records tagged with at least one document type.
- serviceCode: H0015 matches H0015 with or without a modifier; H2019:HQ matches only itself.
- includeWithdrawn=true: include withdrawn records, which are left out by default.
- limit: 1 to 100, default 50. Pass nextCursor back as cursor for the next page, keeping the other parameters the same. It is null on the last page.
An unknown code or parameter returns 400 and names it, so a typo never quietly returns everything.
curl "https://monita.cc/api/v1/records?jurisdiction=US-OH&topic=BILL&impact=HIGH&limit=20" \
-H "Authorization: Bearer $MONITA_API_KEY"Syncing
To keep a copy of the records, page with updatedSince. With it, results come oldest first by the publishedAt of each record’s latest version, so a corrected or withdrawn record comes round again with its new version. Paging never skips or repeats a record, even while new ones are published.
- Start from a time before your first record, like 2020-01-01T00:00:00Z, and pass includeWithdrawn=true.
- Follow nextCursor until it is null, storing each record by id (replace what you have).
- Save the largest publishedAt you received and use it as updatedSince next time. That record comes back once more, which is harmless.
Sync results trail live publishing by one minute, so a record still being saved can’t slip behind your cursor. Syncing every few minutes is plenty.
async function sync(since: string): Promise<string> {
let cursor: string | null = null;
let latest = since;
do {
const url = new URL("https://monita.cc/api/v1/records");
url.searchParams.set("updatedSince", since);
url.searchParams.set("includeWithdrawn", "true");
url.searchParams.set("limit", "100");
if (cursor) url.searchParams.set("cursor", cursor);
const res = await fetch(url, { headers: { Authorization: `Bearer ${process.env.MONITA_API_KEY}` } });
if (res.status === 429) {
await new Promise((r) => setTimeout(r, Number(res.headers.get("Retry-After")) * 1000));
continue;
}
if (!res.ok) throw new Error((await res.json()).error.message);
const page = await res.json();
for (const record of page.data) {
await save(record); // upsert by record.id
if (record.publishedAt > latest) latest = record.publishedAt;
}
cursor = page.nextCursor;
} while (cursor);
return latest; // pass as since next time
}Webhooks
Instead of polling, let Monita post each change to you as it happens. An organisation admin adds endpoints under Developers, Webhooks; each endpoint belongs to an API key, and revoking the key stops it. Events: record.published, record.corrected, record.withdrawn (with the record, exactly as GET /records/{id} returns it) and taxonomy.updated (the new version and its added, relabelled and deprecated codes).
Filter an endpoint by jurisdiction, by topic prefix (BILL covers every billing topic) and to records with at least one document type. You only ever receive records your organisation can read.
POST /your/endpoint
Content-Type: application/json
Monita-Event-Id: evt_cm3x0k2c80000abcd1234efgh
Monita-Event-Type: record.published
Monita-Signature: t=1763046245,v1=5f2b…
{
"id": "evt_cm3x0k2c80000abcd1234efgh",
"type": "record.published",
"createdAt": "2026-11-12T15:04:05Z",
"taxonomyVersion": "1.0.0",
"data": { "record": { "id": "MON-2026-000123", … } }
}Check every request before you trust it. Monita-Signature holds a timestamp and an HMAC-SHA256 of "<t>.<raw body>" keyed with the endpoint’s signing secret, which you see once when you add the endpoint. Reject signatures older than five minutes. After you roll the secret, requests carry a second v1 for the old secret for 24 hours; accept either. This is the verifier we use in our own tests:
import { createHmac, timingSafeEqual } from "node:crypto";
/**
* Verifies a Monita webhook (docs/webhooks.md publishes this file as is).
*
* Monita-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256>[,v1=<hex>]
* The HMAC key is your endpoint's signing secret (the whole "whsec_…"
* string) and the message is "<t>.<raw request body>". During the 24 hours
* after a secret is rolled the header carries two v1 values, one per
* secret; accept the request if either matches.
*
* Pass the raw body exactly as received, before any JSON parsing.
*/
/** Reject events signed more than five minutes ago (or ahead). */
export const MONITA_TOLERANCE_SECONDS = 300;
export function verifyMonitaSignature(
rawBody: string,
header: string | null | undefined,
secret: string,
nowSeconds: number = Math.floor(Date.now() / 1000),
): boolean {
if (!header) return false;
let timestamp: number | undefined;
const signatures: string[] = [];
for (const part of header.split(",")) {
const [key, value] = part.trim().split("=");
if (key === "t") timestamp = Number(value);
else if (key === "v1" && value) signatures.push(value);
}
if (timestamp === undefined || !Number.isInteger(timestamp)) return false;
if (Math.abs(nowSeconds - timestamp) > MONITA_TOLERANCE_SECONDS) return false;
const expected = createHmac("sha256", secret).update(`${timestamp}.${rawBody}`).digest();
return signatures.some((hex) => {
const given = Buffer.from(hex, "hex");
return given.length === expected.length && timingSafeEqual(given, expected);
});
}
- Answer with any 2xx within 10 seconds, then do the work. Anything else is retried.
- Retries come 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and 24 hours after the first attempt. If the last one fails we pause the endpoint and email your admins; events wait in order until you resume it.
- Events reach each endpoint in the order they happened: while one is being retried, the ones after it wait, so you never see a correction before its record.
- The event id stays the same across retries and resends. Store it and skip one you have already processed.
- Send test event posts a fake record, MON-TEST-000000, titled “Test event from Monita”.
- Endpoints must be public https addresses; private and local addresses are refused.
- Webhooks are the fast path. Keep the daily sync above to catch anything you missed while an endpoint was paused.
Taxonomy
Every tag on a record is a code from Monita’s taxonomy: jurisdiction, status, change type, instrument, impact, topic, setting, payer, document type and service code. GET /taxonomy returns the active version with every term, the document types pre-filled for each topic, and the service code pattern. GET /taxonomy/{version} returns the codes that existed in an earlier version.
- Codes never change and are never reused. Labels can change, so store codes and look labels up.
- A retired code is marked deprecated with a replacedBy code, and stays in the taxonomy for good, so older records still resolve.
- The taxonomy has a semantic version; each record carries the taxonomyVersion it was tagged with.
- Codes are unique within a dimension, not across them: ALL is both a setting and a payer.
GET /sources lists every source Monita watches, with its jurisdiction, tier and when it last ran.
Errors
Every error has the same shape, with a message written for the developer reading the log:
{
"error": {
"code": "invalid_request",
"message": "Unknown topic code PRIVACY. See GET /api/v1/taxonomy for valid codes."
}
}- unauthorized (401): no key, an unknown key or a revoked key.
- forbidden (403): the organisation doesn’t have the API add-on.
- not_found (404): no such record, version or endpoint, or a record outside your states.
- invalid_request (400): a parameter or code we don’t recognise.
- rate_limited (429): over 600 requests a minute.
- internal (500): our fault. Retry; if it keeps happening, email client@monita.cc.
Reference
The full description is OpenAPI 3.1 at https://monita.cc/api/v1/openapi.json, ready for code generators and API clients. The record shape is also published as JSON Schema in the description’s Record component.