PayerDelta

Docs

Everything on this page is readable without a feed key. Evaluate the schema first; the scoping call can then be about your integration instead of our pitch.


How to read a response

Every response tells you two things: the answer, and how the answer is known. The second part is structured, so your software can branch on it.

determination_status is either determined or undetermined. When it is undetermined, undetermined_reason names why: no_validated_determination, conflict, scope_remapped, or policy_retired. The API does not fabricate a no.

not_filtering lists inputs your call supplied that the answer did not use. If you pass state and plan_type and the data is not yet enriched to filter on them, the response says so instead of silently ignoring them.

effective_date_basis states how the effective date is known: stated by the payer, inferred from context, or unknown.

The review trail rides in validation: a state machine (detected → interpreted → validated, or rejected) plus its method, with three distinct timestamps on the event: detected_at, interpreted_at, validated_at.

disclosure travels inside every response body: basis: "as_observed", not_effective_date: true, not_medical_advice: true, with a link to the full disclosures. Your software can carry it downstream; that is what it is for.


Getting access

A feed key is the credential that authenticates your software to the REST API and the MCP server. It is issued after the 30-minute scoping call, the same week. One key covers every endpoint on both.

The key is a bearer credential. Every request carries it in the Authorization header:

Authorization: Bearer pdk_live_<key_id>.<secret>

The key_id is 16 characters, and it is not secret: log it, quote it in a support thread. The secret is 43 characters. You see the full key once, at issuance, and it cannot be recovered afterwards, because what we store is a hash of the secret.

Authentication failures are uniform. A missing key, a malformed key, an unknown key, a revoked key, and an expired key all return the same 401 with the same body. The response does not tell you which check failed.

Base URL

REST

https://api.payerdelta.com

MCP

https://mcp.payerdelta.com

Both answer from activation. Until then the schema, the tool definitions and the versioning contract on this page are the whole evaluation surface, and they are complete: nothing about the shape of a response is waiting on us to turn something on.

GET https://api.payerdelta.com/v1/events?limit=10
Authorization: Bearer pdk_live_<key_id>.<secret>

REST endpoints

GET /v1/events

The validated change-event feed.

GET /v1/policy/:policy_id/versions

The version chain. Not a metered unit.

GET /v1/policy/:policy_id?as_of=DATE

Point-in-time: what the archive held on a date.

GET /v1/pa-check

Does this payer require prior authorization for this code, as observed on a date?

GET /health · GET /ready

Operational. Unauthenticated, unmetered.

Strictness

The parser is strict on every route. An unknown query parameter is a 400, and so is a single-valued parameter that you repeat. A misspelled filter name fails the request.

HEAD is served: it runs the same read, returns no body, and is not billed.

GET /v1/events

since

An opaque cursor, taken from a previous page’s next_cursor. Omit it for the first page. It takes a cursor, never a date.

limit

Page size. Defaults to 100, clamped to the range 1 to 1000.

payer · change_type

Single-valued filters.

cpt · hcpcs · icd10

Repeatable code filters, up to 100 values each. An event matches if it carries any one of them.

specialty

Accepted, and not yet filtered on. Pass it and the response returns it in not_filtering.

The page is an envelope around the events:

{
  "items": [ ... ],
  "next_cursor": "...",        // null when the page is the last one
  "not_filtering": ["specialty"],
  "disclosure": { "basis": "as_observed", "not_effective_date": true,
                  "not_medical_advice": true, "terms_url": "..." }
}

Pagination is keyset, not offset. Pass a page’s next_cursor back as since to get the next one. Treat the cursor as opaque: do not build one, and do not parse one. A cursor we did not issue is a 400.

An empty items array does not mean nothing exists. It means you are caught up to the watermark: the point in the archive up to which the feed has settled. Events newer than the watermark are held back briefly so that a write which commits late can never be skipped past your cursor. Poll again and they arrive in order. The feed is gap-free and duplicate-free for any cursor at or below the watermark, which is what lets you treat it as an append-only ingest rather than a re-sync.

GET /v1/policy/:policy_id?as_of=

A policy_id is a 26-character ULID, and as_of is a required YYYY-MM-DD date. A handle that is not a ULID is a 400, not a 404. The shape fails before any lookup runs.

The answer carries a status of IN_FORCE, NOT_COVERED, or RETIRED. A version citation is present for IN_FORCE and only for IN_FORCE.

NOT_COVERED is not the same as “no such policy.” NOT_COVERED means the policy exists in the archive and your date falls before its first observation: we do not extrapolate the earliest version we hold backward to cover a date we never observed. “No such policy” is a 404, and it means we hold no document under that handle. Branch on them differently.

RETIRED means the observation in force on your date is a tombstone: as observed by then, the policy had been withdrawn.

GET /v1/policy/:policy_id/versions

The version chain takes no query parameters at all, so any query parameter is a 400. An empty versions array is a normal 200. It is not a 404.

GET /v1/pa-check

payer · cpt

Both required. The payers and specialties in scope are on coverage.

as_of

YYYY-MM-DD. Omit it for the latest as-observed determination.

state · plan_type

Accepted, echoed, and not yet filtered on. They come back in not_filtering.

The response is the determination_status contract described above. When it cannot answer, it says undetermined and names the reason.


Errors

Every error, on both transports, is the same envelope:

{ "error": { "code": "...", "message": "..." } }

A 500 body is sanitized. It never carries a database error, a stack, or an internal identifier.

400 bad_request

An unknown, missing, repeated, or malformed parameter. The message names the parameter.

400 invalid_cursor

The since value is not a cursor we issued.

400 invalid_as_of

as_of is not a valid calendar date.

401 unauthorized

Missing, malformed, unknown, revoked, or expired key. One body for all five.

403 forbidden

The key authenticated, but its tier does not include the surface you called.

404 not_found

No such policy, or no such route.

405 method_not_allowed

A known route, another method. The response carries Allow.

429 rate_limited

Over a burst limit: your key’s, or the per-IP limit in front of the API. The response carries Retry-After, in seconds.

500 internal

Sanitized.

Authenticated responses carry Vary: Authorization and Cache-Control: no-store, because a response belongs to one key. They also carry a Link header pointing at the disclosures, which mirrors the disclosure field in the body. The body is the primary: MCP has no header channel.


MCP server

Three tools mirror the REST surfaces. They take the same Authorization header, and the key is verified on every call.

check_pa_requirement

payer, cpt (required); state, plan_type, as_of.

get_policy_changes

payer, since, limit, change_type, specialty, and the repeatable cpt, hcpcs, icd10. Each code filter takes a string or an array.

get_policy_as_of

policy_id, as_of (both required).

A tool result is the same JSON object the REST endpoint returns. A tool error is the same { "error": ... } body, and the HTTP status its REST equivalent would have returned rides in _meta, as payerdelta/status. An unknown tool name is a 404 that never reaches your quota.

MCP calls meter identically to their REST equivalents.


The event schema

A change-event carries the answer and its whole provenance: the version pair it cites, the three timestamps of detection and validation, and the disclosure. One event, populated:

PA_ADDED · payer: national-commercial · CPT 72148, 72149, 72158 · specialty: imaging

detected 2026-06-02T06:14Z · validated 2026-06-02T14:51Z · effective 2026-07-01

prev Lumbar spine MRI (72148–72158): no prior authorization required for in-network providers.
new Lumbar spine MRI (72148–72158): prior authorization required for all plan types effective 07/01/2026. See clinical criteria CG-RAD-114.
sample · payer de-identified

The schema changes additively within a major version, and anything deprecated carries a 90-day notice. Validate against the published JSON Schema in CI. This is the schema, verbatim:

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://payerdelta.com/schemas/event.schema.json",
  "title": "PayerDelta Change Event",
  "type": "object",
  "required": ["event_id", "schema_version", "payer", "jurisdiction", "document", "change_type", "codes", "specialty_tags", "summary_plain", "diff", "citations", "timestamps", "validation", "confidence", "warranty"],
  "additionalProperties": false,
  "properties": {
    "event_id": { "type": "string", "pattern": "^[0-9A-HJKMNP-TV-Z]{26}$" },
    "schema_version": { "type": "string", "pattern": "^\\d+\\.\\d+\\.\\d+$" },
    "payer": {
      "type": "object",
      "required": ["payer_id", "name", "lines_of_business"],
      "properties": {
        "payer_id": { "type": "string" },
        "name": { "type": "string" },
        "lines_of_business": { "type": "array", "items": { "enum": ["commercial", "medicare_advantage", "managed_medicaid", "exchange"] } }
      }
    },
    "jurisdiction": {
      "type": "object",
      "required": ["country", "plan_types"],
      "properties": {
        "country": { "const": "US" },
        "states": { "type": "array", "items": { "type": "string", "pattern": "^[A-Z]{2}$" } },
        "plan_types": { "type": "array", "items": { "enum": ["commercial", "medicare_advantage", "managed_medicaid", "exchange"] } }
      }
    },
    "document": {
      "type": "object",
      "required": ["doc_id", "title", "class", "source_url", "version_new_hash", "version_new_id"],
      "properties": {
        "doc_id": { "type": "string" },
        "title": { "type": "string" },
        "class": { "enum": ["pa_list", "medical_policy", "reimbursement_policy", "provider_bulletin", "fee_schedule", "lcd", "ncd", "transmittal"] },
        "source_url": { "type": "string", "format": "uri" },
        "version_prev_hash": { "type": ["string", "null"], "pattern": "^[a-f0-9]{64}$" },
        "version_new_hash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
        "version_prev_id": { "type": ["string", "null"] },
        "version_new_id": { "type": "string" }
      }
    },
    "change_type": { "enum": ["PA_ADDED", "PA_REMOVED", "CRITERIA_MODIFIED", "FEE_CHANGED", "POLICY_NEW", "POLICY_RETIRED", "EFFECTIVE_DATE_CHANGED", "CODES_REMAPPED", "ADMINISTRATIVE_ONLY"] },
    "change_group_id": { "type": ["string", "null"] },
    "codes": {
      "type": "object",
      "properties": {
        "cpt": { "type": "array", "items": { "type": "string", "pattern": "^\\d{4}[0-9A-Z]$" } },
        "hcpcs": { "type": "array", "items": { "type": "string", "pattern": "^[A-Z]\\d{4}$" } },
        "icd10": { "type": "array", "items": { "type": "string" } }
      }
    },
    "specialty_tags": { "type": "array", "items": { "enum": ["imaging", "orthopedics", "oncology", "cardiology", "other"] } },
    "effective_date": { "type": ["string", "null"], "format": "date" },
    "effective_date_basis": { "enum": ["stated", "inferred", "unknown"] },
    "summary_plain": { "type": "string", "maxLength": 600 },
    "diff": {
      "type": "object",
      "required": ["spans"],
      "properties": {
        "spans": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "prev_text": { "type": "string", "maxLength": 400 },
              "new_text": { "type": "string", "maxLength": 400 },
              "location": { "type": "string" }
            }
          }
        }
      }
    },
    "citations": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": ["url", "retrieved_at"],
        "properties": {
          "url": { "type": "string", "format": "uri" },
          "retrieved_at": { "type": "string", "format": "date-time" },
          "locator": { "type": "string" }
        }
      }
    },
    "timestamps": {
      "type": "object",
      "required": ["detected_at"],
      "properties": {
        "detected_at": { "type": "string", "format": "date-time" },
        "interpreted_at": { "type": "string", "format": "date-time" },
        "validated_at": { "type": "string", "format": "date-time" }
      }
    },
    "validation": {
      "type": "object",
      "required": ["status"],
      "properties": {
        "status": { "enum": ["detected", "interpreted", "validated", "rejected"] },
        "reviewer_id": { "type": "string" },
        "method": { "enum": ["human", "auto_audited"] },
        "notes": { "type": "string" }
      },
      "allOf": [
        {
          "if": { "properties": { "status": { "const": "validated" } } },
          "then": { "required": ["status", "method"] }
        }
      ]
    },
    "confidence": { "type": "number", "minimum": 0, "maximum": 1 },
    "warranty": {
      "type": "object",
      "required": ["covered", "sla_class"],
      "properties": {
        "covered": { "type": "boolean" },
        "sla_class": { "enum": ["standard", "warranted"] }
      }
    },
    "supersedes": { "type": ["string", "null"] }
  }
}

Metering notes

Billing is delivery-based; feed responses meter per event delivered; /versions is not a metered unit. Rates and dispute mechanics live on pricing and in the billing terms; the docs link rather than restate.

/v1/events

Meters per validated event delivered in the body; an empty page meters nothing.

/v1/pa-check · /v1/policy

One unit per call.

/v1/policy/:id/versions

Not a metered unit, and it does not use quota.

Each plan includes a monthly quota of billable units, published on pricing; pa-checks, point-in-time lookups and validated events draw on it together. Past it, calls keep working and bill at the metered rates. A 429 comes only from a burst limit, never from the quota.

A request that fails neither bills nor uses quota. The quota and the bill count the same thing, units successfully delivered, so a 401, a 403, a malformed parameter, or an empty feed page moves neither.


If the schema holds up under your review, the next step is a scoping call.

Get a feed key

30-minute scoping call · public pricing

Get a feed key