{
  "openapi": "3.1.0",
  "info": {
    "title": "Offendersearch API — fcra",
    "version": "1.0.0",
    "description": "National sex-offender search across all US states and territories, unified behind one API. Synchronous by default (call and wait) for interactive use; an asynchronous mode returns a job handle and is built for batch and high-volume work. Full offenders.io field parity plus scored matches, per-source provenance, a Regular (cached, continuously-updated) vs. Live (re-verify named jurisdictions in-request) model, DOB/age match-state fidelity, and a consolidated verification-report PDF (`POST /v1/report`) with a source citation on every record.\n\nCriminal records are a second, live product on the same key: `POST /v1/criminal/search` covers county jail bookings, statewide prison custody, court cases and warrants across more than a thousand county, state and federal jurisdictions, with `GET /v1/criminal/sources` as its public coverage catalog.\n\nThe Map API is a third product on the same key: `GET /v1/map/viewport` returns what to draw for one map view — clusters when zoomed out, pins closer in, names close up — and `GET /v1/map/records/{markerId}` returns the full record when one is opened; `POST /v1/map/route` counts who is registered along a route and near its stops. It is $2.00 per 1,000 map requests and $0.035 per record opened, with a $300 monthly minimum applied toward Map API usage.\n\n## Authentication\nEvery endpoint in this document is called with your API key, sent in the `X-API-Key` header (`ApiKeyAuth`), except the few that need no key at all (`GET /v1/sources`, `GET /v1/criminal/sources`, `POST /v1/support`, the FCRA receipt and the FCRA consumer routes, which are marked `security: []` or take the consumer portal token). The offenders.io compatibility endpoint accepts the key three ways for drop-in parity: `X-API-Key`, `Authorization: Bearer <key>`, or `?key=<key>`. Keys are created, rotated and revoked, and usage and invoices are viewed, in the dashboard at https://offendersearch.app/dashboard — those screens are not part of this API.\n\n## Regular vs. Live\nEvery search is one of two modes, chosen by the request body:\n\n* **Regular (default)** — omit `live`. The cached, **continuously-updated** answer:\n  sub-second, no per-source I/O, one billable call. Close to live and the right\n  choice for the overwhelming majority of screens.\n* **Live** — send a `live` block (`{ \"jurisdictions\": [\"TX\"] }` or\n  `{ \"scope\": \"matched\" }`). We re-verify the named registries AT QUERY TIME and\n  merge the fresh records through the same matcher. Live bills the base call **plus\n  $0.02 per COMPLETED source**, with a **$2.00 per-search ceiling**\n  (`min(completed × $0.02, $2.00)`). A source that FAILS is reported and NOT billed.\n  Requesting more than **2** live sources (or a source that is not sync-eligible) runs\n  the search **asynchronously**: a `200` whose body is `{ searchId, status:\"pending\",\n  mode:\"async\", liveSourcesRequested, poll }` — poll `GET /v1/searches/{id}` until it\n  is `complete`. A synchronous live result carries `usage` and `meterEvents`. This is\n  the same two-mode model as the Criminal Search product.\n\n\n**Live describes re-verification; Regular is not stale.** No registry is withheld from a Regular result — every registry covering the query contributes from the newest snapshot we hold. `status` never becomes `partial` for a snapshot age, and `warnings[]` never carries a staleness sentence.\n\n**★ EVERY DATE IS ISO-8601 — BREAKING CHANGE, 2026-08-04.** Every date-shaped field in a record now comes back as ISO-8601: `dob`, the four `offense.*Date` fields, and the five `stateData` date fields. They used to be the registry's own string passed through byte-for-byte, so a single response could carry `\"2003-03-31\"`, `\"10/11/1988\"`, `\"11-29-1987\"` and `\"Aug. 10, 1987\"` in the same key — `offense.offenseDate` was ISO on only 45.4% of its populated values, in seven distinct shapes. **If you wrote a lenient parser or a per-state format table, you can delete it; if you compared these values as raw strings, or stored them in a text column and matched on it, those comparisons will change once.**\nThree rules govern the new values, and the third is the one to read carefully:\n1. A full date is `YYYY-MM-DD`. 2. **A partial date stays partial.** A registry that publishes only a month or\n   only a year yields `YYYY-MM` or `YYYY` — we never invent a day. The companion\n   `datePrecision` object on `offense` and `stateData` names the precision\n   explicitly, exactly as `dobPrecision` has always done for `dob`.\n3. **Nothing is discarded.** A value we cannot read as a date — a crime\n   description in an offence-date cell, a `registrationEnds` of \"Life\" — is NOT\n   served as a fake date and NOT silently blanked. The field is `\"\"`, the\n   precision is `unparseable`, and the registry's literal text is preserved in\n   the `datesAsPublished` object beside it.\n\n`source.recordedAt` / `.lastCheckedAt` / `.sourceUpdatedAt` were already ISO-8601 timestamps and are unchanged. `dob` was already `YYYY-MM-DD` and is unchanged.\n\n**There is no date FILTER on the offense or stateData dates.** `dob` is the one date you can narrow a query on; read the rest off the record.\n**Provenance is never traded for normalisation.** The registry's own text is kept beside the normalised value, not overwritten by it, which is why `datesAsPublished` still carries what the source actually printed — including the 38,818 `registrationEnds` cells that hold a registration DURATION (\"15 Years\", \"Lifetime\") rather than a date.\n\n**Where currency is published — and where it is not.** Per record, `record.source.recordedAt` is when we first recorded the snapshot that record came from. Per registry, `GET /v1/sources` publishes `health.lastSuccessAt` and `health.ageSeconds` live and without an API key. Both are things you ask for. Neither is attached to a search answer: `sourceStatus[]` carries no age fields, because an answer that contains every matching record does not need a caveat about our sweep schedule.\n\n★ **Freshness and completeness are different questions, and only one of them makes an empty result unsafe.** `freshness` says how OLD an answer is; it says nothing about whether the answer is WHOLE. A registry swept ten minutes ago can still fail to be searched to the end — a deadline, or a candidate set larger than one search may examine — and then a `0` from it means UNKNOWN, not NO MATCH. That is `counts.sourcesIncomplete` / `sourceStatus[].incomplete`, it is unrelated to freshness, and it is the one signal that must never be ignored. See API-CONTRACT.md §5.0.\n\n**Migrating from a pre-2026-08-04 integration.** `counts.sourcesStale`, `counts.sourcesDegraded`, `counts.sourcesOmitted`, `counts.recordsFromStaleSources`, `freshnessDetail`, and `sourceStatus[].freshnessSatisfied` / `.degraded` / `.omitted` / `.ageSeconds` / `.lastSuccessAt` were removed and are no longer emitted. If you were gating on any of them, gate on `counts.sourcesIncomplete` instead — it asks whether your ANSWER is whole, which is the question those keys were being used to ask.\n\nBilling is required for every account; the ONLY free call is one scoped exclusively to statutorily non-commercial jurisdiction(s) (e.g. state=CA), which has nothing commercially billable. **Batch billing is per-search:** `POST /v1/batch` is one HTTP request but each search in it is billed as its own search — a batch of 100 = 100 billable searches. The consolidated verification report (`POST /v1/report`) is a separate, callable endpoint any valid key may use (no per-key entitlement), billed **+$0.02 per document** (admin-overridable per customer). A separate `proof` add-on is billed the same way, one PDF (+$0.02) per rendered document, and requires billing (402 otherwise); it is NOT the customer verification report.\n"
  },
  "servers": [
    {
      "url": "https://api.offendersearch.app",
      "description": "Live API. Live keys (os_live_…); calls are billed."
    },
    {
      "url": "https://sandbox.offendersearch.app",
      "description": "API sandbox. A separate server with the same paths and response shapes; test keys (os_test_…) only, fixed test data, never billed. See https://offendersearch.app/docs/sandbox"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "tags": [
    {
      "name": "map",
      "description": "Map API. You draw the map; these routes return what to draw for each view, and the full record when one is opened.\n"
    },
    {
      "name": "clearances",
      "description": "Clearances. Record, per subject you screen, that a person a search returned is or is not that subject; every later search for the subject honours the verdict. Shared by the sex offender and criminal searches. Included in the search price.\n"
    },
    {
      "name": "live-evidence",
      "description": "Live evidence — an option of `POST /v1/search`, on this host: send `live.evidence: \"pdf\"` with `live.jurisdictions` and the same search also prints each named registry — its own public website: every result page and each matching registrant's detail page — to one PDF per registry behind a cover page (query, registry, capture time in UTC, URLs captured, SHA-256). The search then always answers `202`, the ordinary `GET /v1/searches/{searchId}` returns the records with `evidence[]`, and the one route tagged here serves each document. Same key, same header, same base URL as everything else; a search without the field is unchanged.\n"
    },
    {
      "name": "criminal-search",
      "description": "The primary search surface — cached by default, live with a `live` block."
    },
    {
      "name": "criminal-records",
      "description": "Re-fetch a single cached record by identifier."
    },
    {
      "name": "criminal-coverage",
      "description": "Coverage catalog, per-jurisdiction freshness, and the website resolver."
    },
    {
      "name": "criminal-account",
      "description": "Your account's prior searches."
    }
  ],
  "paths": {
    "/v1/fcra/partner": {
      "get": {
        "operationId": "fcraPartnerStatus",
        "tags": [
          "fcra"
        ],
        "summary": "This account's FCRA Partner Access status",
        "description": "Whether this account can place FCRA orders, the permissible purposes its agreement covers, and whether a webhook endpoint is configured. Never 403: an account without access gets `enabled: false`.\n",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The account's FCRA status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraPartnerStatus"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    },
    "/v1/fcra/end-users": {
      "post": {
        "operationId": "fcraCreateEndUser",
        "tags": [
          "fcra"
        ],
        "summary": "Register an end user",
        "description": "Registers the employer, landlord or other business a report is for, with the permissible purposes it holds and your certification. Every purpose must be within your partner agreement (403 `fcra_purpose_not_allowed`).\n",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FcraEndUserCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The end user, status `active`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraEndUser"
                }
              }
            }
          },
          "403": {
            "description": "`fcra_not_enabled`, `fcra_not_on_trial` or `fcra_purpose_not_allowed`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          }
        }
      },
      "get": {
        "operationId": "fcraListEndUsers",
        "tags": [
          "fcra"
        ],
        "summary": "List end users",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Every end user on this account.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "endUsers": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FcraEndUser"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/end-users/{end_user_id}": {
      "parameters": [
        {
          "name": "end_user_id",
          "in": "path",
          "required": true,
          "description": "The end user's `id` (`eu_…`).",
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "fcraGetEndUser",
        "tags": [
          "fcra"
        ],
        "summary": "Retrieve an end user",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The end user.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraEndUser"
                }
              }
            }
          },
          "404": {
            "description": "`not_found` — no such end user on this account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "fcraUpdateEndUser",
        "tags": [
          "fcra"
        ],
        "summary": "Change an end user's purposes or suspend it",
        "description": "A suspended end user cannot be named on a new order (422 `end_user_suspended`). Send `status: \"active\"` to reinstate it.\n",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FcraEndUserPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated end user.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraEndUser"
                }
              }
            }
          },
          "404": {
            "description": "`not_found` — no such end user on this account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/search-plans": {
      "post": {
        "operationId": "fcraSearchPlan",
        "tags": [
          "fcra"
        ],
        "summary": "Preview where an order would search",
        "description": "The search plan for an address history and a use location: the counties, states and national tier in scope, why each is there, the sources behind each, and the counties with no county-level source. Nothing is stored or metered; no evidence row is written.\n",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FcraSearchPlanRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The plan.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraSearchPlan"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_end_user` — no such end user on this account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/orders": {
      "post": {
        "operationId": "fcraCreateOrder",
        "tags": [
          "fcra"
        ],
        "summary": "Create an FCRA order",
        "description": "One consumer, one end user, one permissible purpose, one consent attestation, and one or both search types. Returns 202 with the order at status `received`; the searches run in the background and report by webhook. The same `Idempotency-Key` with the same body within 24 hours returns the original order with `Idempotent-Replayed: true`; with a different body it is 409 `idempotency_conflict`.\n",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Up to 200 characters. Replays are matched for 24 hours.",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FcraOrderCreate"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The order, accepted. A replayed request returns the original order.",
            "headers": {
              "Idempotent-Replayed": {
                "description": "`true` when this response is the original order for a repeated Idempotency-Key.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraOrder"
                }
              }
            }
          },
          "403": {
            "description": "`fcra_not_enabled`, `fcra_not_on_trial` or `fcra_purpose_not_allowed`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_end_user` — `endUserId` is not one of your end users.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          },
          "409": {
            "description": "`idempotency_conflict` — the key was used with a different body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation (the standard validation body), or `end_user_suspended`, `webhook_endpoint_required` or `validation` (an Idempotency-Key over 200 characters). With `consent.agencyIds`, `consent.disclosureScope` or `consent.customScopeText`: `unknown_agency`, `agency_inactive` or `custom_scope_text_rejected` (`detail.reason`).\n"
          }
        }
      },
      "get": {
        "operationId": "fcraListOrders",
        "tags": [
          "fcra"
        ],
        "summary": "List orders, newest first",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Only orders with this status.",
            "schema": {
              "type": "string",
              "enum": [
                "received",
                "in_progress",
                "partial",
                "complete",
                "cancelled",
                "error"
              ]
            }
          },
          {
            "name": "clientReference",
            "in": "query",
            "required": false,
            "description": "Only orders with this `clientReference`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "endUserId",
            "in": "query",
            "required": false,
            "description": "Only orders for this end user.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tag",
            "in": "query",
            "required": false,
            "description": "Only orders carrying this tag.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "source",
            "in": "query",
            "required": false,
            "description": "Only orders placed this way.",
            "schema": {
              "type": "string",
              "enum": [
                "api",
                "dashboard",
                "invitation",
                "continuous"
              ]
            }
          },
          {
            "name": "createdAfter",
            "in": "query",
            "required": false,
            "description": "Only orders created at or after this time (ISO-8601).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "createdBefore",
            "in": "query",
            "required": false,
            "description": "Only orders created before this time (ISO-8601).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The `nextCursor` from the previous page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Orders per page, 1 to 200.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of orders.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "orders": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FcraOrder"
                      }
                    },
                    "hasMore": {
                      "type": "boolean",
                      "description": "Whether another page follows."
                    },
                    "nextCursor": {
                      "type": "string",
                      "nullable": true,
                      "description": "Pass as `cursor` for the next page; `null` when `hasMore` is false.",
                      "example": "2026-10-20T15:05:00+00:00|fo_ee0b34c5b52fd35b"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/orders/{order_id}": {
      "parameters": [
        {
          "name": "order_id",
          "in": "path",
          "required": true,
          "description": "The order's `id` (`fo_…`).",
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "fcraGetOrder",
        "tags": [
          "fcra"
        ],
        "summary": "Retrieve an order",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The order with the status and result of each search.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraOrder"
                }
              }
            }
          },
          "404": {
            "description": "`not_found` — no such order on this account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/orders/{order_id}/scope": {
      "parameters": [
        {
          "name": "order_id",
          "in": "path",
          "required": true,
          "description": "The order's `id` (`fo_…`).",
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "fcraGetOrderScope",
        "tags": [
          "fcra"
        ],
        "summary": "Retrieve an order's search plan",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The full plan the order ran under.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "orderId": {
                      "type": "string",
                      "example": "fo_ee0b34c5b52fd35b"
                    },
                    "scope": {
                      "$ref": "#/components/schemas/FcraSearchPlan"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found` — no such order on this account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/orders/{order_id}/searches/{search_id}": {
      "parameters": [
        {
          "name": "order_id",
          "in": "path",
          "required": true,
          "description": "The order's `id` (`fo_…`).",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "search_id",
          "in": "path",
          "required": true,
          "description": "The search's `id` (`fs_…`).",
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "fcraGetSearch",
        "tags": [
          "fcra"
        ],
        "summary": "Retrieve one search with its furnished records",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The search, its coverage and every furnished record.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraSearch"
                }
              }
            }
          },
          "404": {
            "description": "`not_found` — no such order or search on this account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/searches/{search_id}/reverify": {
      "parameters": [
        {
          "name": "search_id",
          "in": "path",
          "required": true,
          "description": "The finished search to run again (`fs_…`).",
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "fcraReverifySearch",
        "tags": [
          "fcra"
        ],
        "summary": "Run a finished search again",
        "description": "Adds a new search of the same type to the order and marks this one `superseded`, with `supersededBy` set to the new search's id. The order returns to `in_progress`.\n",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "202": {
            "description": "The new search, status `queued`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraSearch"
                }
              }
            }
          },
          "404": {
            "description": "`not_found` — no such search on this account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          },
          "409": {
            "description": "`search_not_finished` or `order_cancelled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/orders/{order_id}/cancel": {
      "parameters": [
        {
          "name": "order_id",
          "in": "path",
          "required": true,
          "description": "The order's `id` (`fo_…`).",
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "fcraCancelOrder",
        "tags": [
          "fcra"
        ],
        "summary": "Cancel an order that has not finished",
        "description": "The order becomes `cancelled` and its queued searches become `cancelled`. A search already running finishes.\n",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The cancelled order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraOrder"
                }
              }
            }
          },
          "409": {
            "description": "`not_cancellable` — the order is already `complete`, `error` or `cancelled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/orders/{order_id}/report": {
      "parameters": [
        {
          "name": "order_id",
          "in": "path",
          "required": true,
          "description": "The order's `id` (`fo_…`).",
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "fcraGetReport",
        "tags": [
          "fcra"
        ],
        "summary": "The furnished report, as JSON or the stored PDF",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "revision",
            "in": "query",
            "required": false,
            "description": "An earlier report revision (see revisions); the current one when omitted.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "`json` (the default) or `pdf` (the stored PDF, rendered once when the order completed).",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "pdf"
              ],
              "default": "json"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "`format=json`: the report object. `format=pdf`: the stored PDF bytes, with `X-Report-SHA256` and `X-PDF-SHA256` headers.\n",
            "headers": {
              "X-Report-SHA256": {
                "description": "`format=pdf` only — the report's `reportSha256`.",
                "schema": {
                  "type": "string"
                }
              },
              "X-PDF-SHA256": {
                "description": "`format=pdf` only — the SHA-256 of these PDF bytes, as signed in the receipt.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraReport"
                }
              },
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "404": {
            "description": "`not_found` — no such order on this account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          },
          "409": {
            "description": "`report_not_ready` — the order has not completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/receipts/{order_id}": {
      "parameters": [
        {
          "name": "revision",
          "in": "query",
          "required": false,
          "description": "The receipt of an earlier revision; the current one when omitted.",
          "schema": {
            "type": "integer",
            "minimum": 1
          }
        },
        {
          "name": "order_id",
          "in": "path",
          "required": true,
          "description": "The order's `id` (`fo_…`).",
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "fcraGetReceipt",
        "tags": [
          "fcra"
        ],
        "summary": "The public signed receipt for a completed order",
        "description": "No API key. An Ed25519-signed statement of the order id, completion time, control version, `reportSha256` and `pdfSha256`. It carries no personal data.\n",
        "security": [],
        "responses": {
          "200": {
            "description": "The signed receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraReceipt"
                }
              }
            }
          },
          "404": {
            "description": "`not_found` — unknown order, or an order that has not completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          },
          "503": {
            "description": "`receipts_unavailable` — receipt signing is unavailable; retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/orders/{order_id}/evidence": {
      "parameters": [
        {
          "name": "order_id",
          "in": "path",
          "required": true,
          "description": "The order's `id` (`fo_…`).",
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "fcraListEvidence",
        "tags": [
          "fcra"
        ],
        "summary": "Every official-source capture taken for the order",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The capture metadata. The bytes are one call away.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "orderId": {
                      "type": "string",
                      "example": "fo_ee0b34c5b52fd35b"
                    },
                    "captures": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FcraCapture"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found` — no such order on this account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/orders/{order_id}/evidence/{capture_id}": {
      "parameters": [
        {
          "name": "order_id",
          "in": "path",
          "required": true,
          "description": "The order's `id` (`fo_…`).",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "capture_id",
          "in": "path",
          "required": true,
          "description": "The capture's `captureId` (`fc_…`).",
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "fcraGetEvidence",
        "tags": [
          "fcra"
        ],
        "summary": "One capture's stored bytes",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The stored bytes, with the capture's own content type and the headers `X-Capture-SHA256`, `X-Capture-Kind`, `X-Capture-Source` and `X-Capture-Truncated`.\n",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "404": {
            "description": "`not_found` — no such order or capture on this account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/orders/{order_id}/disputes": {
      "parameters": [
        {
          "name": "order_id",
          "in": "path",
          "required": true,
          "description": "The order's `id` (`fo_…`).",
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "fcraCreateDispute",
        "tags": [
          "fcra"
        ],
        "summary": "Open a dispute on furnished records",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FcraDisputeCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The dispute, status `received`, due 30 days after `receivedAt`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraDispute"
                }
              }
            }
          },
          "403": {
            "description": "`fcra_not_enabled` — the account is not an approved FCRA partner.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          },
          "404": {
            "description": "`not_found` — no such order on this account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          },
          "422": {
            "description": "`unknown_record` (a `recordIds` entry was not furnished in this order), `validation`, or the standard validation body."
          }
        }
      }
    },
    "/v1/fcra/disputes": {
      "get": {
        "operationId": "fcraListDisputes",
        "tags": [
          "fcra"
        ],
        "summary": "List disputes on your orders",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Only disputes with this status.",
            "schema": {
              "type": "string",
              "enum": [
                "received",
                "investigating",
                "verified",
                "modified",
                "deleted",
                "unable_to_verify"
              ]
            }
          },
          {
            "name": "orderId",
            "in": "query",
            "required": false,
            "description": "Only disputes on this order.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Every matching dispute.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "disputes": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FcraDispute"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/disputes/{dispute_id}": {
      "parameters": [
        {
          "name": "dispute_id",
          "in": "path",
          "required": true,
          "description": "The dispute's `id` (`fd_…`).",
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "fcraGetDispute",
        "tags": [
          "fcra"
        ],
        "summary": "Retrieve a dispute",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The dispute, its due date and its outcome.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraDispute"
                }
              }
            }
          },
          "404": {
            "description": "`not_found` — no such dispute on this account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/disputes/{dispute_id}/information": {
      "parameters": [
        {
          "name": "dispute_id",
          "in": "path",
          "required": true,
          "description": "The dispute's `id` (`fd_…`).",
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "fcraAddDisputeInformation",
        "tags": [
          "fcra"
        ],
        "summary": "Add the consumer's new information (the one 15-day extension)",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FcraDisputeInformation"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The dispute with `dueAt` moved 15 days and `extendedAt` set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraDispute"
                }
              }
            }
          },
          "409": {
            "description": "`dispute_not_extendable` — resolved, already extended, or past `dueAt`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/invitations": {
      "post": {
        "operationId": "fcraCreateInvitation",
        "tags": [
          "fcra"
        ],
        "summary": "Invite a consumer to the hosted consent flow",
        "description": "For direct and platform partners. Creates the invitation and, unless `sendEmail` is false, e-mails the consumer the link; `applyUrl` is returned once, on this response only.\n",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FcraInvitationCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The invitation, with its one-time `applyUrl`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraInvitation"
                }
              }
            }
          },
          "403": {
            "description": "`managed_tier_required` — this agreement names you as the CRA; collect consent in your own flow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_end_user`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          },
          "422": {
            "description": "`unknown_agency` (an `agencyIds` entry that is not one of your co-agencies), `agency_inactive` (a deactivated co-agency) or `custom_scope_text_rejected` (`detail.reason` is `waiver_language`, `link` or `html`); or the standard validation body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "fcraListInvitations",
        "tags": [
          "fcra"
        ],
        "summary": "List invitations",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "pending",
                "completed",
                "expired",
                "cancelled"
              ]
            }
          },
          {
            "name": "endUserId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Invitations, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "invitations": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FcraInvitation"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/invitations/{invitation_id}": {
      "parameters": [
        {
          "name": "invitation_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "fcraGetInvitation",
        "tags": [
          "fcra"
        ],
        "summary": "Retrieve an invitation",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The invitation (never the link).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraInvitation"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "fcraCancelInvitation",
        "tags": [
          "fcra"
        ],
        "summary": "Cancel a pending invitation",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The invitation, `cancelled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraInvitation"
                }
              }
            }
          },
          "409": {
            "description": "`not_cancellable`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/invitations/{invitation_id}/resend": {
      "parameters": [
        {
          "name": "invitation_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "fcraResendInvitation",
        "tags": [
          "fcra"
        ],
        "summary": "Resend an invitation with a fresh link",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The invitation with a new one-time `applyUrl`; the previous link no longer works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraInvitation"
                }
              }
            }
          },
          "409": {
            "description": "`not_resendable`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/invitations/{invitation_id}/notices": {
      "parameters": [
        {
          "name": "invitation_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "fcraInvitationNotices",
        "tags": [
          "fcra"
        ],
        "summary": "What was e-mailed for an invitation",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Every message, with whether it was sent.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "notices": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FcraNotice"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/agencies": {
      "post": {
        "operationId": "fcraCreateAgency",
        "tags": [
          "fcra"
        ],
        "summary": "Register a co-agency",
        "description": "Registers another consumer reporting agency that prepares part of the report (for example a credentialing agency that checks professional licenses), so an invitation, an order or a continuous check can name it on the disclosure. Scoped to your account and `active` at once. From the dashboard, an account admin only. At most 25 active co-agencies per account.\n",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FcraAgencyCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The co-agency, status `active`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraCoAgency"
                }
              }
            }
          },
          "403": {
            "description": "`fcra_not_enabled` or `fcra_not_on_trial`; a dashboard team member who is not an admin (plain-string `detail`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          },
          "422": {
            "description": "`agency_name_reserved` (the legal name or DBA is our own name), `agency_text_rejected` (a field carries waiver or release language, a link or HTML; `detail.reason` is `waiver_language`, `link` or `html`), `agency_limit_reached` (25 active co-agencies), or the standard validation body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "fcraListAgencies",
        "tags": [
          "fcra"
        ],
        "summary": "List co-agencies",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Only co-agencies with this status. Every co-agency when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "active",
                "inactive"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The co-agencies on this account.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "agencies": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FcraCoAgency"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/agencies/{agency_id}": {
      "parameters": [
        {
          "name": "agency_id",
          "in": "path",
          "required": true,
          "description": "The co-agency's `id` (`ag_…`).",
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "fcraGetAgency",
        "tags": [
          "fcra"
        ],
        "summary": "Retrieve a co-agency",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The co-agency.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraCoAgency"
                }
              }
            }
          },
          "404": {
            "description": "`not_found` — no such co-agency on this account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "fcraUpdateAgency",
        "tags": [
          "fcra"
        ],
        "summary": "Change a co-agency's details",
        "description": "Send only the fields to change. A disclosure already generated keeps the details it named; the change applies to invitations, orders and continuous checks created afterwards. From the dashboard, an account admin only.\n",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FcraAgencyPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated co-agency.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraCoAgency"
                }
              }
            }
          },
          "404": {
            "description": "`not_found` — no such co-agency on this account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          },
          "409": {
            "description": "`agency_inactive` — the co-agency was deactivated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          },
          "422": {
            "description": "`agency_name_reserved`, `agency_text_rejected` (`detail.reason`), or the standard validation body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "fcraDeactivateAgency",
        "tags": [
          "fcra"
        ],
        "summary": "Deactivate a co-agency",
        "description": "The co-agency can no longer be named on a new invitation, order or continuous check. Disclosures that already name it are unchanged. From the dashboard, an account admin only.\n",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The co-agency, status `inactive`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraCoAgency"
                }
              }
            }
          },
          "404": {
            "description": "`not_found` — no such co-agency on this account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          },
          "409": {
            "description": "`agency_inactive` — already inactive.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/consent-tokens/verify": {
      "post": {
        "operationId": "fcraVerifyConsentToken",
        "tags": [
          "fcra"
        ],
        "summary": "Verify a consent token",
        "description": "Public, no API key; rate-limited. A co-agency named on a hosted disclosure confirms from the token that its name was on what the consumer signed. A token is valid only when its signature checks and the consent document it names still exists with the same SHA-256. A token from the sandbox verifies only on the sandbox.\n",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FcraConsentTokenVerify"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The verdict, and what the token says when it is valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraConsentTokenResult"
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited` — too many requests in a short period. Retry later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          },
          "503": {
            "description": "`consent_tokens_not_configured` — this server issues and verifies no consent tokens.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/orders/{order_id}/consent-documents": {
      "parameters": [
        {
          "name": "order_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "fcraListConsentDocuments",
        "tags": [
          "fcra"
        ],
        "summary": "The consent documents behind an order",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Metadata of each document.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "orderId": {
                      "type": "string"
                    },
                    "documents": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FcraConsentDocument"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "fcraUploadConsentDocument",
        "tags": [
          "fcra"
        ],
        "summary": "Attach your own signed consent to an order",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FcraConsentUpload"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The stored document.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraConsentDocument"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/orders/{order_id}/consent-documents/{doc_id}": {
      "parameters": [
        {
          "name": "order_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "doc_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "fcraGetConsentDocument",
        "tags": [
          "fcra"
        ],
        "summary": "Download a consent document",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The document bytes (`X-Document-SHA256` carries its hash).",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/branding": {
      "get": {
        "operationId": "fcraGetBranding",
        "tags": [
          "fcra"
        ],
        "summary": "Your branding on consumer-facing surfaces",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The branding, your partner kind, and the agency named on every disclosure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraBrandingStatus"
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "fcraPutBranding",
        "tags": [
          "fcra"
        ],
        "summary": "Set your branding",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FcraBrandingPut"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The branding as stored.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraBrandingStatus"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/orders/{order_id}/adverse-items": {
      "parameters": [
        {
          "name": "order_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "fcraAdverseItems",
        "tags": [
          "fcra"
        ],
        "summary": "What a decision could rest on",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Every record the current report furnishes, and the use location's rule.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "orderId": {
                      "type": "string"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FcraAdverseItem"
                      }
                    },
                    "rule": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/FcraAdverseRule"
                        }
                      ],
                      "nullable": true
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/orders/{order_id}/adverse-actions": {
      "parameters": [
        {
          "name": "order_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "fcraCreateAdverseAction",
        "tags": [
          "fcra"
        ],
        "summary": "Start adverse action",
        "description": "Sends the pre-adverse notice to the consumer now and schedules the post-adverse notice after the waiting period: the latest of your `waitingDays`, the use location's rule and the floor of five business days, counted from the moment the pre-adverse notice is delivered. A notice the mail provider did not accept (`failed` or `skipped`) starts no waiting period: the adverse action is cancelled with `cancelReason: \"pre_notice_not_delivered\"` and the request answers 502. A dispute open on the order starts the action `paused`. For direct and platform partners.\n",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FcraAdverseActionCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The adverse action, `pending`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraAdverseAction"
                }
              }
            }
          },
          "409": {
            "description": "`order_not_complete` | `adverse_action_open`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          },
          "422": {
            "description": "`consumer_contact_required` | `unknown_adverse_item` | `individualized_assessment_required` | `waiting_period_too_short`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          },
          "502": {
            "description": "`pre_notice_not_delivered` — the pre-adverse notice was not delivered; no waiting period started and the adverse action was cancelled.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "fcraOrderAdverseActions",
        "tags": [
          "fcra"
        ],
        "summary": "Adverse actions on an order",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "orderId": {
                      "type": "string"
                    },
                    "adverseActions": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FcraAdverseAction"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/adverse-actions": {
      "get": {
        "operationId": "fcraListAdverseActions",
        "tags": [
          "fcra"
        ],
        "summary": "List adverse actions",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "pending",
                "paused",
                "complete",
                "cancelled"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "adverseActions": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FcraAdverseAction"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/adverse-actions/{aa_id}": {
      "parameters": [
        {
          "name": "aa_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "fcraGetAdverseAction",
        "tags": [
          "fcra"
        ],
        "summary": "Retrieve an adverse action",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraAdverseAction"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/adverse-actions/{aa_id}/pause": {
      "parameters": [
        {
          "name": "aa_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "fcraPauseAdverseAction",
        "tags": [
          "fcra"
        ],
        "summary": "Pause the clock",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraAdverseAction"
                }
              }
            }
          },
          "409": {
            "description": "`not_pausable`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/adverse-actions/{aa_id}/resume": {
      "parameters": [
        {
          "name": "aa_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "fcraResumeAdverseAction",
        "tags": [
          "fcra"
        ],
        "summary": "Resume the clock",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraAdverseAction"
                }
              }
            }
          },
          "409": {
            "description": "`not_paused` | `dispute_open` (the clock stays paused until every dispute on the order is resolved)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/adverse-actions/{aa_id}/cancel": {
      "parameters": [
        {
          "name": "aa_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "fcraCancelAdverseAction",
        "tags": [
          "fcra"
        ],
        "summary": "Cancel adverse action",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FcraAdverseCancel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraAdverseAction"
                }
              }
            }
          },
          "409": {
            "description": "`not_cancellable`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/adverse-actions/{aa_id}/notices": {
      "parameters": [
        {
          "name": "aa_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "fcraAdverseActionNotices",
        "tags": [
          "fcra"
        ],
        "summary": "The notices sent for an adverse action",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "notices": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FcraNotice"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/adverse-rules": {
      "get": {
        "operationId": "fcraAdverseRules",
        "tags": [
          "fcra"
        ],
        "summary": "The adverse-action rules by use location",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "string"
                    },
                    "defaultWaitingDays": {
                      "type": "integer"
                    },
                    "rules": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "state": {
                            "type": "string"
                          },
                          "city": {
                            "type": "string",
                            "nullable": true
                          },
                          "purpose": {
                            "type": "string"
                          },
                          "waitingBusinessDays": {
                            "type": "integer"
                          },
                          "individualizedAssessment": {
                            "type": "boolean"
                          },
                          "citation": {
                            "type": "string"
                          },
                          "note": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/orders/{order_id}/adjudication": {
      "parameters": [
        {
          "name": "order_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "fcraAdjudicate",
        "tags": [
          "fcra"
        ],
        "summary": "Record your decision",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FcraAdjudication"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The order with `adjudication` set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraOrder"
                }
              }
            }
          },
          "409": {
            "description": "`order_not_complete` | `adverse_action_open`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/orders/{order_id}/consumer": {
      "parameters": [
        {
          "name": "order_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "patch": {
        "operationId": "fcraSetConsumerContact",
        "tags": [
          "fcra"
        ],
        "summary": "Where the consumer's notices go",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FcraConsumerContact"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "orderId": {
                      "type": "string"
                    },
                    "consumer": {
                      "type": "object",
                      "properties": {
                        "email": {
                          "type": "string",
                          "nullable": true
                        },
                        "phone": {
                          "type": "string",
                          "nullable": true
                        },
                        "copyRequested": {
                          "type": "boolean"
                        },
                        "locale": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/orders/{order_id}/revisions": {
      "parameters": [
        {
          "name": "order_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "fcraListRevisions",
        "tags": [
          "fcra"
        ],
        "summary": "Every revision of an order's report",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "orderId": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "integer"
                    },
                    "revisions": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FcraReportRevision"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/orders/{order_id}/notices": {
      "parameters": [
        {
          "name": "order_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "fcraOrderNotices",
        "tags": [
          "fcra"
        ],
        "summary": "Every consumer e-mail for an order",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "orderId": {
                      "type": "string"
                    },
                    "notices": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FcraNotice"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/application/form": {
      "get": {
        "operationId": "fcraApplicationForm",
        "tags": [
          "fcra"
        ],
        "summary": "What the partner application asks for",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The certifications to make, the modes to choose from, and the agreement version.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraApplicationForm"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/application": {
      "post": {
        "operationId": "fcraApply",
        "tags": [
          "fcra"
        ],
        "summary": "Apply for FCRA Partner Access",
        "description": "Any account may apply. Every certification must be made and the application signed. Our team reviews it; approval enables the account with the purposes and the mode requested.\n",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FcraApplicationCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The application, `received`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraApplication"
                }
              }
            }
          },
          "409": {
            "description": "`already_enabled` | `application_pending`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "fcraMyApplication",
        "tags": [
          "fcra"
        ],
        "summary": "Your latest application",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "application": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/FcraApplication"
                        }
                      ],
                      "nullable": true
                    },
                    "enabled": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/monitors": {
      "post": {
        "operationId": "fcraCreateMonitor",
        "tags": [
          "fcra"
        ],
        "summary": "Enroll a subject in a continuous check",
        "description": "Takes a baseline now (no live work) and re-evaluates on the interval. A new reportable candidate places an order with `source: \"continuous\"`, which runs the full controls and live work. Requires an evergreen authorization.\n",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FcraMonitorCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The monitor, `active`, with its baseline.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraMonitor"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_end_user` | `not_found` (baselineOrderId)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          },
          "422": {
            "description": "`unknown_agency` (an `agencyIds` entry that is not one of your co-agencies), `agency_inactive` (a deactivated co-agency) or `custom_scope_text_rejected` (`detail.reason` is `waiver_language`, `link` or `html`); or the standard validation body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "fcraListMonitors",
        "tags": [
          "fcra"
        ],
        "summary": "List continuous checks",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "active",
                "inactive"
              ]
            }
          },
          {
            "name": "endUserId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "monitors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FcraMonitor"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/monitors/{monitor_id}": {
      "parameters": [
        {
          "name": "monitor_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "fcraGetMonitor",
        "tags": [
          "fcra"
        ],
        "summary": "Retrieve a continuous check",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraMonitor"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "fcraDeactivateMonitor",
        "tags": [
          "fcra"
        ],
        "summary": "Unenroll",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The monitor, `inactive`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraMonitor"
                }
              }
            }
          },
          "409": {
            "description": "`not_active`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/monitors/{monitor_id}/evaluate": {
      "parameters": [
        {
          "name": "monitor_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "fcraEvaluateMonitor",
        "tags": [
          "fcra"
        ],
        "summary": "Evaluate now",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The monitor after the evaluation (`lastOrderId` set when a change placed an order).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraMonitor"
                }
              }
            }
          },
          "409": {
            "description": "`not_active`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/webhook-endpoint": {
      "get": {
        "operationId": "fcraGetWebhookEndpoint",
        "tags": [
          "fcra"
        ],
        "summary": "Your FCRA webhook endpoint",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The endpoint, or `{ \"configured\": false }`. The secret is never returned here.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraWebhookEndpoint"
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "fcraSetWebhookEndpoint",
        "tags": [
          "fcra"
        ],
        "summary": "Set your webhook URL; get its signing secret",
        "description": "The response carries `secret` when the endpoint is created and when `rotateSecret` is true — and at no other time. Store it then.\n",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FcraWebhookEndpointPut"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The endpoint. `secret` is present only when it was created or rotated — it is shown once.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraWebhookEndpoint"
                }
              }
            }
          },
          "403": {
            "description": "Only an account admin may set the endpoint (a plain-string `detail`); or `fcra_not_enabled`."
          },
          "422": {
            "description": "`url` must be an https URL on a public host (1–2000 characters); the standard validation list."
          }
        }
      },
      "delete": {
        "operationId": "fcraDeleteWebhookEndpoint",
        "tags": [
          "fcra"
        ],
        "summary": "Remove your webhook endpoint",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Whether an endpoint was removed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/events": {
      "get": {
        "operationId": "fcraListEvents",
        "tags": [
          "fcra"
        ],
        "summary": "Every FCRA event for your account, oldest first",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "An event `id`; only events after it are returned.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Events per page, 1 to 500.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of events.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "events": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FcraEvent"
                      }
                    },
                    "nextAfter": {
                      "type": "string",
                      "nullable": true,
                      "description": "The last returned event id (or your `after` echoed when the page is empty) — pass it as `after` for the next page. It does not signal the last page: stop when `events` comes back empty. `null` only on an empty first page.",
                      "example": "fev_5f1e3340306f1d02"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/fcra/events/{event_id}/resend": {
      "parameters": [
        {
          "name": "event_id",
          "in": "path",
          "required": true,
          "description": "The event's `id` (`fev_…`).",
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "fcraResendEvent",
        "tags": [
          "fcra"
        ],
        "summary": "Deliver one event to your webhook again",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The event after the delivery attempt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraEvent"
                }
              }
            }
          },
          "404": {
            "description": "`not_found` — no such event on this account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/consumer/portal/session": {
      "post": {
        "operationId": "consumerPortalSession",
        "tags": [
          "fcra"
        ],
        "summary": "Open a 30-minute consumer portal session",
        "description": "The access code from the order, the consumer's last name and full date of birth. Any mismatch is the same 401 `not_matched`; five failures in an hour for one code or from one connection lock further attempts for the hour (429 `locked`).\n",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FcraPortalSessionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A session token, sent as `Authorization: Bearer <token>` on the portal routes.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "string",
                      "example": "cps_1f8e4c7a9b2d6035e4a1c8f7b3d9e2a6"
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-25T10:14:00+00:00"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`not_matched`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          },
          "429": {
            "description": "`locked` or `rate_limited`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/consumer/portal/report": {
      "get": {
        "operationId": "consumerPortalReport",
        "tags": [
          "fcra"
        ],
        "summary": "What was furnished about the consumer in this order",
        "security": [
          {
            "ConsumerPortalAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The order, each search and every furnished record, in plain language.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraPortalReport"
                }
              }
            }
          },
          "401": {
            "description": "`no_session` or `session_expired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/consumer/portal/disputes": {
      "post": {
        "operationId": "consumerPortalCreateDispute",
        "tags": [
          "fcra"
        ],
        "summary": "Dispute records from the portal",
        "security": [
          {
            "ConsumerPortalAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FcraPortalDisputeCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The dispute, as the consumer sees it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraPortalDispute"
                }
              }
            }
          },
          "422": {
            "description": "`unknown_record`, `validation`, or the standard validation body."
          }
        }
      },
      "get": {
        "operationId": "consumerPortalListDisputes",
        "tags": [
          "fcra"
        ],
        "summary": "The consumer's disputes on this order",
        "security": [
          {
            "ConsumerPortalAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Every dispute on this order.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "disputes": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FcraPortalDispute"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/consumer/requests": {
      "post": {
        "operationId": "consumerFileOrDisputeRequest",
        "tags": [
          "fcra"
        ],
        "summary": "A consumer's file request or dispute, without an access code",
        "description": "Public. Name, email, request type and a message; nothing else is accepted. A message containing a Social Security number is refused. Identity is verified separately before anything is disclosed.\n",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FcraConsumerRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The request, recorded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "cr_7a3e91c4d2b8f605"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "file",
                        "dispute"
                      ]
                    },
                    "receivedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-22T13:40:00+00:00"
                    },
                    "dueAt": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true,
                      "example": "2026-11-21T13:40:00+00:00"
                    },
                    "supportEmail": {
                      "type": "string",
                      "example": "support@offendersearch.app"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "`unexpected_fields` or `invalid`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`, with `Retry-After`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FcraError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Your API key. The credential for every endpoint in this document."
      },
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Your API key sent as `Authorization: Bearer <key>` — accepted by the offenders.io compatibility endpoint only, for drop-in parity.\n"
      },
      "QueryKeyAuth": {
        "type": "apiKey",
        "in": "query",
        "name": "key",
        "description": "API key passed as `?key=` — offenders.io demo mode (compat endpoint only)."
      },
      "ConsumerPortalAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Consumer portal session token from `POST /v1/consumer/portal/session`, sent as `Authorization: Bearer <token>`. Valid for 30 minutes and for one order only.\n"
      }
    },
    "parameters": {
      "MapEndUser": {
        "name": "X-End-User",
        "in": "header",
        "required": false,
        "description": "Any id you use for the end user behind this request. The daily area budget is then also counted per end user (2,000 distinct areas a day), so one heavy user is limited before the account is; on the route routes, so is the number of different routes a day, and on the records route the daily open limit when one is set. Optional with a secret key; required on the route routes with a map browser key (`422 end_user_required`).\n",
        "schema": {
          "type": "string"
        }
      },
      "MapIfNoneMatch": {
        "name": "If-None-Match",
        "in": "header",
        "required": false,
        "description": "The `ETag` from an earlier answer for the same view. An unchanged view answers `304` with no body and is not billed.\n",
        "schema": {
          "type": "string"
        }
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Missing or invalid credential.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "NotFound": {
        "description": "Not found.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Unprocessable": {
        "description": "Unprocessable request — e.g. `faceId` supplied (facial search is not supported; we never fake a face match).\n",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "MapForbidden": {
        "description": "`map_not_enabled` — the Map API is off for this account. `map_paused` — paused by us. `origin_not_allowed` — a browser key used from a site not on its list.\n",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/MapError"
            }
          }
        }
      },
      "MapTooManyRequests": {
        "description": "`map_sweep_limit` — the account's daily area budget is used; clusters still work. `map_end_user_limit` — one end user's daily area budget is used. `map_end_user_route_limit` — one end user has checked their daily number of different routes. `map_open_limit` — the daily limit on record opens. `map_busy` — too many map requests at once (`Retry-After: 1`). `overloaded` — the service is at capacity (`Retry-After` set).\n",
        "headers": {
          "Retry-After": {
            "description": "Seconds to wait before retrying.",
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/MapError"
            }
          }
        }
      },
      "MapUnavailable": {
        "description": "`map_index_not_ready`, `map_unavailable` or `map_not_configured`. Retry.\n",
        "headers": {
          "Retry-After": {
            "description": "Seconds to wait before retrying.",
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/MapError"
            }
          }
        }
      },
      "PaymentRequired": {
        "description": "The account's free trial is used up, or the account has no active subscription. Returned by the gateway, in its `{\"detail\": \"...\"}` shape; the sentence says which case applies and what to do next.\n",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/GatewayError"
            },
            "example": {
              "detail": "No active subscription for this account. Start a subscription (POST /v1/billing/checkout-session) or update your payment method (POST /v1/billing/portal-session) to use the API."
            }
          }
        },
        "x-product": "criminal"
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "description": "The error body. `detail` is a sentence on most errors; a list of per-field entries (`loc`, `msg`, `type`) when a request fails field validation; and an object with a `code` on a 429 and on the `incomplete_no_results` 504.\n",
        "properties": {
          "detail": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "object"
                }
              },
              {
                "type": "object"
              }
            ],
            "description": "Human-readable error message, a list of field errors, or a coded object.",
            "example": "Missing or invalid API key. Send it in the X-API-Key header."
          }
        }
      },
      "RateLimitError": {
        "type": "object",
        "description": "A refusal that will succeed if you wait. `detail.retryAfterSeconds` always equals the `Retry-After` header — read either, but read one: retrying immediately will simply be refused again.\n",
        "properties": {
          "detail": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "rate_limited",
                  "overloaded"
                ],
                "description": "`rate_limited` is a per-caller quota and clears by itself. `overloaded` means the service is at capacity.\n"
              },
              "message": {
                "type": "string",
                "example": "Too many requests for this key. Wait 12 seconds and retry."
              },
              "retryAfterSeconds": {
                "type": "integer",
                "description": "Seconds to wait before retrying. Same as `Retry-After`.",
                "example": 12
              },
              "queueDepth": {
                "type": "integer",
                "nullable": true,
                "description": "Searches waiting ahead of this one when it was refused. Present when the search was refused before it ran.",
                "example": 7
              },
              "predictedWaitSeconds": {
                "type": "number",
                "nullable": true,
                "description": "The predicted wait, in seconds, behind that queue. Present when the search was refused before it ran.",
                "example": 9.5
              },
              "unfinishedSources": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Registries that did not finish, when the search ran, found no records and could not complete under load.",
                "example": [
                  "TX",
                  "CA"
                ]
              },
              "sourcesQueried": {
                "type": "integer",
                "description": "Registries the search queried. Present alongside `unfinishedSources`.",
                "example": 58
              }
            }
          }
        }
      },
      "SupportRequest": {
        "type": "object",
        "required": [
          "name",
          "email",
          "message"
        ],
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 120,
            "description": "Who we are replying to.",
            "example": "Dana Okafor"
          },
          "email": {
            "type": "string",
            "maxLength": 254,
            "description": "The address we reply to. It is checked for a valid shape only — we do not send anything to it to confirm it, and it is never added to a list.\n",
            "example": "dana@example.org"
          },
          "message": {
            "type": "string",
            "minLength": 10,
            "maxLength": 8000,
            "description": "What you would like to ask or tell us.",
            "example": "We screen residents at 12 facilities and want to pilot the API. Which plan fits that volume?"
          },
          "subject": {
            "type": "string",
            "maxLength": 200,
            "description": "Optional one-line summary.",
            "example": "Pilot for 12 facilities"
          },
          "topic": {
            "type": "string",
            "enum": [
              "sales",
              "support",
              "security",
              "baa",
              "other"
            ],
            "default": "support",
            "description": "Which team should read it first. Anything unrecognised is treated as `support`, so a wrong value routes the message rather than refusing it.\n"
          },
          "website": {
            "type": "string",
            "description": "Leave empty. Present so automated submissions can be told apart from people; a message that fills it in is still recorded.\n"
          },
          "renderedAt": {
            "type": "integer",
            "format": "int64",
            "description": "Optional. Unix time in milliseconds when the form was displayed. Omit it if you are calling the endpoint directly — its absence is not held against a submission.\n"
          }
        }
      },
      "SupportResult": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "received"
            ],
            "description": "`received` means the message is recorded and retrievable by `submissionId`.\n"
          },
          "submissionId": {
            "type": "string",
            "description": "The reference for this message. Quote it if you follow up about the same thread.\n",
            "example": "sup_9f2c1a4b6d8e0f31"
          },
          "supportEmail": {
            "type": "string",
            "description": "The address a reply will come from, and the address you can write to directly instead of using this endpoint.\n",
            "example": "support@offendersearch.app"
          }
        }
      },
      "Query": {
        "type": "object",
        "additionalProperties": false,
        "description": "The person/location query. All fields are optional; supply what you have. DOB/age drive the match-state (see Record.dobVerification). offenders.io parity filters (q/address/prefixMatch/fuzzy/createdAt*/updatedAt*/page/ perPage) are applied uniformly across ALL jurisdictions.\n",
        "properties": {
          "firstName": {
            "type": "string",
            "description": "Given name.",
            "example": "John"
          },
          "lastName": {
            "type": "string",
            "description": "Surname (primary match key).",
            "example": "Smith"
          },
          "dob": {
            "type": "string",
            "format": "date",
            "description": "Date of birth, `YYYY-MM-DD`. Optional, and it NARROWS — a record whose published birth evidence conflicts with this date is excluded.\n\n★ **It does not require us to hold a date of birth for the person.** The date you send is matched against every kind of birth evidence a registry publishes: a full date, a birth year alone, or a published age alone. Records with none of those are still returned on the name, flagged unverified. `matchState` on each record tells you which of those happened and how strong it was — read it there; the four outcomes are `dob_match`, `year_match`, `age_match` and `no_dob_age_year`.\n",
            "example": "1985-06-14"
          },
          "age": {
            "type": "integer",
            "description": "Age filter. Used when DOB is unavailable; matched ±1 year for birthday drift.",
            "example": 39
          },
          "city": {
            "type": "string",
            "description": "Residence city filter.",
            "example": "Chicago"
          },
          "county": {
            "type": "string",
            "description": "Residence county filter. Compared after the words County, Co, Parish and Borough are removed from both sides, so `Harris`, `Harris County` and `HARRIS CO` are the same filter. A record matches when one of its addresses is in that county; a record with no address on file does not match a county filter.",
            "example": "Harris"
          },
          "state": {
            "type": "string",
            "description": "2-letter USPS state/territory code (`FL`), case-insensitive; the full state or territory name (`Florida`) is also accepted and means exactly the same thing. A value we cannot resolve to a jurisdiction is rejected with 422 — it is never silently treated as `matches nothing`.\n\n★ IT IS A UNION, AND YOU SHOULD KNOW WHICH HALF MATCHED. `state` keeps a record when EITHER one of its `addressStates` is that state (they live there) OR its `registrationState` is (that state's registry holds them). It does NOT change which registries run — all 58 are searched and `state` narrows the answer. (Until 2026-08-05 it silently scoped the fan-out to that state's own registries, which hid anyone registered elsewhere while residing there; use `locationScoped: true` if you explicitly want the cheaper, narrower search.) Those two halves are genuinely different populations: 105,028 records are registered in a state where they have no address on file, and 70,973 records carry no address state at all and are reachable ONLY by the registration half. Every record comes back carrying both `registrationState` and `addressStates`, so you can tell which half answered without a second call — narrow to residents with `addressStates`, or to a registry's roster with `jurisdictions: [\"FL\"]`, which is the registration-only filter.\n",
            "example": "IL"
          },
          "zipcode": {
            "type": "string",
            "description": "Residence ZIP (first 5 used).",
            "example": "60614"
          },
          "address": {
            "type": "string",
            "description": "Parity: fuzzy street-address match (every token must appear in some record address)."
          },
          "lat": {
            "type": "number",
            "description": "Latitude for GIS radius search.",
            "example": 41.9
          },
          "lng": {
            "type": "number",
            "description": "Longitude for GIS radius search.",
            "example": -87.65
          },
          "radiusMiles": {
            "type": "number",
            "maximum": 100,
            "description": "Parity: GIS radius in miles. Defaults to 1 when lat/lng given; capped at 100."
          },
          "q": {
            "type": "string",
            "description": "Parity: free-text across name/alias/address/city/state/zip (all tokens must appear)."
          },
          "fuzzy": {
            "type": "boolean",
            "description": "Parity: offenders.io fuzzy toggle. true -> balanced match; false -> strict. Overrides `SearchRequest.match`."
          },
          "prefixMatch": {
            "description": "PARTIAL-NAME SEARCH. Treat the name(s) you supplied as the START of a name: `thom` returns Thomas, Thompson and Thomason. Accepts \"firstName\", \"lastName\", \"both\" (prefix-match BOTH fields at once), or a list. Matched against every recorded ALIAS as well as the registered legal name; `matchedName` on each record says which one matched. MINIMUM 3 CHARACTERS — a shorter prefix returns 422. Prefix matching is a strict superset of exact matching, and an exact match always ranks above a prefix match. `nameMatch` overrides this.\n",
            "oneOf": [
              {
                "type": "string",
                "enum": [
                  "firstName",
                  "lastName",
                  "both"
                ]
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "firstName",
                    "lastName"
                  ]
                }
              }
            ]
          },
          "nameMatch": {
            "type": "object",
            "description": "EXPLICIT PER-FIELD CONTROL over how names are matched — the fine-grained form of `prefixMatch`/`match`. Anything omitted from a field's list is OFF for that field. Exact matching is always on and cannot be disabled. Overrides both `prefixMatch` and `SearchRequest.match`.\n",
            "properties": {
              "firstName": {
                "type": "array",
                "description": "Strategies for the first name. prefix requires >=3 characters; middle requires >=2.",
                "items": {
                  "type": "string",
                  "enum": [
                    "exact",
                    "prefix",
                    "nickname",
                    "fuzzy",
                    "middle"
                  ]
                }
              },
              "lastName": {
                "type": "array",
                "description": "Strategies for the last name. prefix requires >=3 characters.",
                "items": {
                  "type": "string",
                  "enum": [
                    "exact",
                    "prefix",
                    "fuzzy"
                  ]
                }
              },
              "aliases": {
                "type": "boolean",
                "default": true,
                "description": "Also apply these strategies to every recorded alias."
              }
            }
          },
          "faceId": {
            "type": "string",
            "description": "Parity input ONLY — facial search is NOT supported; supplying it returns 422 (never a faked face match)."
          },
          "createdAtStart": {
            "type": "string",
            "format": "date-time",
            "description": "Parity: lower bound on source.recordedAt (when we first recorded the record)."
          },
          "createdAtEnd": {
            "type": "string",
            "format": "date-time",
            "description": "Parity: upper bound on source.recordedAt."
          },
          "updatedAtStart": {
            "type": "string",
            "format": "date-time",
            "description": "Parity: lower bound on source.source_updated_at (when the source last changed the record)."
          },
          "updatedAtEnd": {
            "type": "string",
            "format": "date-time",
            "description": "Parity: upper bound on source.source_updated_at."
          },
          "page": {
            "type": "integer",
            "minimum": 1,
            "description": "Parity: 1-based page number. Omit it and the whole match set is returned in a single page — up to the response cap. ★ ABOVE THE CAP, OMITTING IT IS NOT THE SAME AS ASKING FOR EVERYTHING: an unpaginated answer larger than `cappedLimit` (4,000) is trimmed to that many records and says so with `capped: true`, and `cappedOmittedSources` names the registries that contributed nothing to it. A PAGINATED request is never trimmed — it walks the entire match set and `capped` stays `false`. So `counts.records` vs `counts.recordsReturned` is the pair to branch on: if they differ, send `perPage` and page through. Most searches never reach this — a `name + DOB` query returns tens of records — but a bare common surname does. A page past `totalPages` returns an empty `records` array (changed 2026-08-05; it used to re-serve the last page).\n"
          },
          "perPage": {
            "type": "integer",
            "minimum": 1,
            "description": "Parity: page size. Defaults to 20 when paginating. Sending it turns pagination ON, which is what makes an over-cap match set fully reachable. Clamped to `cappedLimit`, so a single page can never rebuild the oversized response the cap exists to prevent.\n"
          },
          "ageTolerance": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10,
            "default": 1,
            "description": "How many years of slack the age comparison allows: when the query carries a `dob` and the record publishes only an `age`, and equally when the query carries an `age` instead of a `dob` (default 1, i.e. ±1 year). Eleven registries publish an age and no date at all, so a `name + DOB` search has to compare a searched DATE against a published AGE; how much slack that allows is a risk decision, and it is yours. The default of 1 is not arbitrary — a published age with an unpublished birthday is consistent with two birth years, and the registry may have computed it a refresh before we read it, so the age is anchored to the date we read that page rather than to today. Raise it for a high-recall screening pass: more same-name strangers, fewer missed true matches.\n"
          },
          "onAgeMismatch": {
            "type": "string",
            "enum": [
              "drop",
              "flag"
            ],
            "default": "drop",
            "description": "What to do with a record that matches on NAME but whose published age contradicts the searched `dob` — or, on an `age` search, falls outside `ageTolerance`. `drop` (default) omits it. `flag` RETURNS it, labelled `matchState: \"age_mismatch\"`, and lets you judge — \"silently omitted\" and \"checked, and the age contradicts your date\" are different facts. A flagged record is always `unverified` and can never be reported as DOB-confirmed.\n"
          },
          "dobTolerance": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2,
            "default": 0,
            "description": "Birth-date typo tolerance, for registries that publish a FULL date of birth. `0` (default) keeps today's exact rule: a full date that differs from your `dob` is dropped. `1` or `2` returns a record whose date is a likely typo of yours instead of dropping it — the same month and day with the year off by up to that many years (`1970-08-27` for `1969-08-27`), or the day and month swapped (`1969-08-12` for `1969-12-08`). Such a record is labelled `matchState: \"dob_near_match\"`, is always `unverified`, and `matchBasis` says how it differed (`dob:near:year+1` = the registry's year is one later than yours, `dob:near:year-2`, `dob:near:dayMonthSwapped`). A different month AND day is not a typo and is still dropped. A year-only record within the same ± years is returned the same way.\n"
          }
        }
      },
      "LiveBlock": {
        "type": "object",
        "additionalProperties": false,
        "description": "Request LIVE re-verification of named jurisdictions AT QUERY TIME. Omit `live` entirely for the REGULAR answer (the cached, continuously-updated result — no cadence language, no surcharge). Send `live` to re-check the named registries live and merge the fresh records through the SAME matcher: base call + **$0.02 per COMPLETED source**, with a **$2.00 per-search ceiling** (`min(completed × $0.02, $2.00)`). A source that FAILS is reported and NOT billed. When more than 2 sources are requested (or a source is not sync-eligible), the search runs ASYNCHRONOUSLY — a `200` whose body is `{ searchId, status:\"pending\", mode:\"async\", liveSourcesRequested, poll }` — otherwise it returns synchronously with `usage` + `meterEvents`. This is the same two-mode model as the Criminal Search product.\n",
        "properties": {
          "jurisdictions": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            },
            "description": "Registry ids / two-letter USPS codes to re-verify live. A code expands to every registry that covers it.\n",
            "example": [
              "TX"
            ]
          },
          "scope": {
            "type": "string",
            "enum": [
              "matched"
            ],
            "nullable": true,
            "description": "`matched` re-verifies the registries that produced the Regular (cached) hits, instead of naming them explicitly.\n"
          },
          "evidence": {
            "type": "string",
            "enum": [
              "none",
              "pdf"
            ],
            "nullable": true,
            "description": "`pdf`: besides the live check, print each registry named in `live.jurisdictions` (up to 20) — its own public website, every result page and each matching registrant's detail page — to one PDF per registry behind a cover page, and return the documents with the records. The search then always answers `202` and is returned by `GET /v1/searches/{searchId}`, whose body carries `evidence[]`. $0.25 per completed registry document, $5.00 ceiling per search, on top of the live search's normal charge; an incomplete document bills nothing. Omit it, or send `none`, for today's search, byte for byte.\n"
          }
        }
      },
      "LiveUsage": {
        "type": "object",
        "description": "The live-check billing summary, present ONLY on a live result. `liveChecks` is the TRUE completed-source count even when the charge is capped (the denominator is never rounded away).\n",
        "properties": {
          "liveChecks": {
            "type": "integer",
            "example": 1
          },
          "liveChargeUsd": {
            "type": "number",
            "example": 0.02
          },
          "capped": {
            "type": "boolean",
            "example": false
          },
          "display": {
            "type": "string",
            "example": "1 live checks · $0.02"
          }
        }
      },
      "EvidenceAccepted": {
        "type": "object",
        "description": "The 202 body of `POST /v1/search` when the request sent `live.evidence: \"pdf\"`: a job handle to poll on this host.\n",
        "required": [
          "searchId",
          "status",
          "mode",
          "registries",
          "pollUrl"
        ],
        "properties": {
          "searchId": {
            "type": "string",
            "example": "evs_7d41e2",
            "description": "The job's id. Keep it: it is the id you poll, and the id the documents are downloaded under."
          },
          "status": {
            "type": "string",
            "enum": [
              "pending"
            ],
            "description": "Always `pending` on acceptance."
          },
          "mode": {
            "type": "string",
            "enum": [
              "async"
            ],
            "description": "Always `async`: a live evidence search never answers inline."
          },
          "registries": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "CA",
              "NV"
            ],
            "description": "The registries that will be printed — `live.jurisdictions` as resolved, one entry per registry."
          },
          "pollUrl": {
            "type": "string",
            "example": "/v1/searches/evs_7d41e2",
            "description": "Path of `GET /v1/searches/{searchId}` for this job, on this host."
          }
        }
      },
      "EvidenceSearchResponse": {
        "description": "The body of GET /v1/searches/{searchId} for a search that sent `live.evidence: \"pdf\"`: the full search response exactly as POST /v1/search returns it, plus `evidence[]`, `sourceSearchId` and `registries`. `usage` is an EvidenceLiveUsage — the LiveUsage fields plus `liveEvidence` and `liveEvidenceUsd`.\n",
        "allOf": [
          {
            "$ref": "#/components/schemas/SearchResponse"
          },
          {
            "type": "object",
            "required": [
              "evidence"
            ],
            "properties": {
              "usage": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/EvidenceLiveUsage"
                  }
                ],
                "nullable": true,
                "description": "The live charges for this search, including the evidence documents."
              },
              "evidence": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/EvidenceDocument"
                },
                "description": "One EvidenceDocument per registry named in `live.jurisdictions`, complete or incomplete. `[]` while the job is `pending` or `running`.\n"
              },
              "sourceSearchId": {
                "type": "string",
                "nullable": true,
                "example": "srch_9f2c1a7b",
                "description": "The id of the live search on this account that produced `records[]`. Present once the job has finished.\n"
              },
              "registries": {
                "type": "array",
                "nullable": true,
                "items": {
                  "type": "string"
                },
                "example": [
                  "CA",
                  "NV"
                ],
                "description": "The registries this search prints, as acknowledged on the `202`. Present while the job is `pending` or `running`.\n"
              }
            }
          }
        ]
      },
      "EvidenceLiveUsage": {
        "description": "The LiveUsage fields, plus the live evidence charge.",
        "allOf": [
          {
            "$ref": "#/components/schemas/LiveUsage"
          },
          {
            "type": "object",
            "properties": {
              "liveEvidence": {
                "type": "integer",
                "example": 1,
                "description": "Live evidence documents that completed and were billed on this search."
              },
              "liveEvidenceUsd": {
                "type": "number",
                "example": 0.25,
                "description": "The live evidence charge for this search, in US dollars: $0.25 per completed registry document, at most $5.00. Separate from `liveChargeUsd`.\n"
              }
            }
          }
        ]
      },
      "EvidenceDocument": {
        "type": "object",
        "description": "One registry's live evidence document: the registry's own public website, printed as shown to a PDF behind a cover page. One entry per registry named in `live.jurisdictions`, in `evidence[]`. A `complete` document carries the capture and download fields; an `incomplete` one carries `incompleteReason` and `detail` and is never billed.\n",
        "required": [
          "jurisdiction",
          "status",
          "billed"
        ],
        "properties": {
          "jurisdiction": {
            "type": "string",
            "example": "CA",
            "description": "The registry this document covers, as the two-letter code or registry id sent in `live.jurisdictions`."
          },
          "status": {
            "type": "string",
            "enum": [
              "complete",
              "incomplete"
            ],
            "description": "`complete`: the PDF was produced and can be downloaded. `incomplete`: it was not; read `incompleteReason`."
          },
          "kind": {
            "type": "string",
            "enum": [
              "text",
              "image",
              "mixed"
            ],
            "nullable": true,
            "description": "How the registry pages were produced. `text`: printed from the page, searchable. `image`: each page is a full-page capture rendered as an image (some registries only work this way). `mixed`: both in one document. Present only when `status` is `complete`.\n"
          },
          "pages": {
            "type": "integer",
            "nullable": true,
            "example": 3,
            "description": "Pages of registry content in the PDF, after the cover page. Present only when `status` is `complete`."
          },
          "resultPages": {
            "type": "integer",
            "nullable": true,
            "example": 2,
            "description": "How many of `pages` are result pages. Present only when `status` is `complete`."
          },
          "detailPages": {
            "type": "integer",
            "nullable": true,
            "example": 1,
            "description": "How many of `pages` are registrant detail pages. Present only when `status` is `complete`."
          },
          "capturedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "example": "2026-10-18T14:02:11+00:00",
            "description": "When the registry's pages were captured, in UTC. Present only when `status` is `complete`."
          },
          "sourceUrl": {
            "type": "string",
            "nullable": true,
            "example": "https://…",
            "description": "The registry website the search was run on. Present only when `status` is `complete`."
          },
          "pageUrls": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            },
            "description": "The URL of every page captured, in document order. Present only when `status` is `complete`.",
            "example": [
              "https://…/search?lastName=RIVERA&page=1",
              "https://…/registrant/X24A0926"
            ]
          },
          "sha256": {
            "type": "string",
            "nullable": true,
            "description": "SHA-256 of the PDF, in hex; the same value is printed on the cover page. Present only when `status` is `complete`.",
            "example": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
          },
          "bytes": {
            "type": "integer",
            "nullable": true,
            "example": 412330,
            "description": "Size of the PDF in bytes. Present only when `status` is `complete`."
          },
          "downloadUrl": {
            "type": "string",
            "nullable": true,
            "example": "/v1/searches/evs_7d41e2/evidence/CA.pdf",
            "description": "Path of `GET /v1/searches/{searchId}/evidence/{jurisdiction}.pdf` for this document, on this host, valid for 30 days. Present only when `status` is `complete`.\n"
          },
          "billed": {
            "type": "boolean",
            "description": "`true` when this document was billed ($0.25). Always `false` on an incomplete document.",
            "example": true
          },
          "chargeUsd": {
            "type": "number",
            "nullable": true,
            "example": 0.25,
            "description": "The charge for this document in US dollars. Present only when `status` is `complete`."
          },
          "pdfBase64": {
            "type": "string",
            "nullable": true,
            "description": "The PDF, base64-encoded, when the document is 4 MB or smaller. `null` above that — use `downloadUrl`. Present only when `status` is `complete`.\n",
            "example": "JVBERi0xLjcKJeLjz9MKMSAwIG9iago8PC9UeXBlL0NhdGFsb2c…"
          },
          "inline": {
            "type": "boolean",
            "nullable": true,
            "description": "`true` when `pdfBase64` carries the document; `false` when it is available only by `downloadUrl`. Present only when `status` is `complete`.",
            "example": true
          },
          "incompleteReason": {
            "type": "string",
            "nullable": true,
            "enum": [
              "no_recipe",
              "renderer_unavailable",
              "source_unreachable",
              "blocked",
              "timed_out",
              "no_results_page",
              "render_failed",
              "query_unsupported"
            ],
            "description": "Why no document was produced; set exactly when `status` is `incomplete`. `no_recipe`: this registry cannot be printed yet. `renderer_unavailable`: the printing service was not available — retry. `source_unreachable`: the registry website did not answer — retry. `blocked`: the registry website refused the visit. `timed_out`: printing did not finish in time — retry. `no_results_page`: the registry website showed no results page for this query. `render_failed`: the pages were reached but could not be printed. `query_unsupported`: this registry's website cannot search on the fields the query supplied.\n"
          },
          "detail": {
            "type": "string",
            "nullable": true,
            "description": "A sentence for logs explaining the incomplete reason. Its wording changes; branch on `incompleteReason`, never on this.",
            "example": null
          }
        }
      },
      "MeterEvent": {
        "type": "object",
        "description": "A billable unit the API emits for the gateway to persist. On a live result the `live_source` event carries the completed-source quantity and the $2.00 per-search ceiling in `chargeCeilingUsd`.\n",
        "properties": {
          "kind": {
            "type": "string",
            "example": "live_source"
          },
          "quantity": {
            "type": "integer",
            "example": 1
          },
          "chargeCeilingUsd": {
            "type": "number",
            "nullable": true,
            "example": 2
          }
        }
      },
      "SearchRequest": {
        "type": "object",
        "required": [
          "query"
        ],
        "additionalProperties": false,
        "properties": {
          "query": {
            "$ref": "#/components/schemas/Query"
          },
          "jurisdictions": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            },
            "description": "Jurisdiction codes — a registry id, or any two-letter code that registry COVERS, in any case. null/omit = the full dataset. ★ AN UNRECOGNISED VALUE IS A 422 (changed 2026-08-05), never an empty result. `[\"XX\"]` and `[\"TEXAS\"]` previously returned `status: \"complete\", records: 0, sourcesQueried: 0, warnings: []` — indistinguishable from \"this person is not a registered offender\" — for one wrong token, while `[\"tx\"]` returned 1,219. GET /v1/sources lists every id.\n",
            "example": [
              "IL",
              "IN"
            ]
          },
          "locationScoped": {
            "type": "boolean",
            "default": false,
            "description": "OPT-IN ONLY. If true AND `query.state` is set, run only the registries that COVER that state instead of all 58. `query.state` alone does NOT turn this on — it is a residence FILTER, not a registry selector, and inferring the scope from it (the behaviour until 2026-08-05) hid every registrant whose registry is not the state they live in: 7.0% of records, and 36% of a matched out-of-state-residence sample returned ZERO. When this narrows the fan-out the response reports `counts.sourcesSkippedByScope` and a \"NARROWED SEARCH\" warning, because a registry that was never asked contributes a 0 meaning UNKNOWN, not NO MATCH.\n"
          },
          "recordTypes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "sex_offender"
              ]
            },
            "default": [
              "sex_offender"
            ],
            "description": "Record types to search on THIS endpoint, which searches the sex-offender registries only. Criminal records are not a recordType here — they are a separate live product at `POST /v1/criminal/search`, because they carry a different record shape (no photograph or tier, and a `recordType` of their own naming jail / prison / court / warrant). ★ ANY OTHER VALUE IS A 422 (changed 2026-08-05) — note the underscore: `[\"sexoffender\"]` used to return a clean, complete zero.\n"
          },
          "live": {
            "$ref": "#/components/schemas/LiveBlock"
          },
          "match": {
            "type": "string",
            "enum": [
              "strict",
              "balanced",
              "broad"
            ],
            "default": "balanced",
            "description": "Fuzzy-match tolerance applied uniformly across ALL jurisdictions. ★ AN UNRECOGNISED VALUE IS A 422 (changed 2026-08-05). A typo used to fall through to `balanced`: `\"strick\"` returned 16 records where the `strict` the caller asked for returns 11 — a silent WIDENING, and the same fallthrough narrows in the other direction. strict=exact; balanced=nicknames/variants/initials/typos(dist 1) on first name, exact last; broad=also prefix/typo on last name. (query.prefixMatch/query.fuzzy override this — see Query.)\n\n★ THE COMPLETE, ENUMERATED LIST OF WHAT EACH MODE DOES TO A NAME. Nothing outside this table is applied to a name in any mode. Every transformation is reported per record in `matchDetail.strategies`, so you can always see which one produced a given hit — and filter on it.\nGIVEN NAME (`firstName`)\n  exact     — equal, case- and accent-insensitive.               strict, balanced, broad\n  nickname  — a curated given-name equivalence table (123 groups,\n              418 names): Bob/Bobby/Rob/Robert, Tony/Anthony,\n              Peggy/Margaret, Bill/Will/William. It is a fixed list,\n              not an algorithm; the equivalents we hold for any\n              record are published on that record as `nicknames`, so\n              you can read the table straight off the wire.\n                                                                 balanced, broad\n  initial   — one letter against a full name, either direction:\n              `J` matches `John`, and `J` on file is matched by\n              `John`.                                            balanced, broad\n  prefix    — the stored name STARTS WITH what you sent, minimum\n              3 characters: `Thom` -> `Thomas`, `Marcel` ->\n              `Marcellous`. Anchored at the start, never a\n              substring.                                         balanced, broad\n  fuzzy     — Damerau-Levenshtein edit distance (a swap of two\n              adjacent letters counts as ONE edit, so `Jhon` ->\n              `John`). BUDGET: **1 edit in `balanced`, 2 in\n              `broad`.** Not phonetic — see the `broad` warning\n              below for why the second edit is opt-in.            balanced (1), broad (2)\n  middle    — the given name you sent is the person's MIDDLE name.\n              81.1% of the records we hold carry one, and many\n              people are known by theirs, so `firstName=Wayne`\n              returns the man registered as `Dean Wayne Ellison`.\n              WHOLE TOKEN, EXACTLY, minimum 2 characters: `Wayne`\n              matches the `Wayne` of `Wayne Allen`; it does not\n              match `Waynette`, `Wayn` or the initial `W`. Never\n              prefixed, never fuzzy: some names are overwhelmingly\n              MIDDLE names (`Lee` is 20x commoner in the middle slot\n              than the first), so for exactly the names this matches\n              it draws on a much larger pool — which is where\n              spelling latitude is least affordable.\n              Reported as `firstName: \"middle\"` and capped at 0.60.\n                                                                 balanced, broad\n  absent    — the record publishes no given name at all, so your\n              query could not be DISPROVED. Kept and flagged; never\n              a confirmation.                                     every mode\n\nSURNAME (`lastName`)\n  exact     — equal, or equal to one whole token of a compound\n              surname (`Smith` matches `Hamilton-Smith`, and never\n              `Goldsmith`).                                       strict, balanced, broad\n  prefix    — starts-with, minimum 3 characters.                  broad only\n  fuzzy     — edit distance, budget SCALED BY LENGTH: 0 edits at\n              <=4 characters, 1 at 5-7, 2 at >=8. `Hernandez` ->\n              `Fernandez` matches; `Ross` -> `Rose` does not.     broad only\n  There is no nickname table for surnames, and asking for one\n  (`nameMatch.lastName: [\"nickname\"]`) is a 422.\n\nALIASES — searched in `balanced` and `broad`, not in `strict`, and with `exact`/`prefix`/`fuzzy` only. Aliases arrive unstructured and in mixed word order, so every token is tested and we cannot tell you which token was the given name — which is why `nickname` and `initial` are not offered on them. An alias-only hit is reported as `alias:<strategy>` and caps `matchConfidence` at 0.55.\n★ WHAT WE DO NOT DO, STATED PLAINLY, BECAUSE IT IS THE QUESTION EVERY EVALUATION ASKS. No phonetic or Soundex matching (`Smyth` -> `Smith` works because it is one edit; `Schmidt` -> `Smith` does not and will not). No transliteration. No middle-name field. No cross-field matching — a `firstName` query is never tested against a surname. No inference of one name from another beyond the fixed nickname table above. If you need a variant we do not cover, send it as a second query; we would rather you saw two honest answers than one widened one.\n\n★ CORRECTION, 2026-08-05 — `balanced` USED TO FUZZ THE GIVEN NAME AT 2 EDITS, WHICH IS NOT WHAT THIS DOCUMENT HAS EVER SAID. Every client-facing surface promised edit distance 1 for `balanced`; the engine ran 2. Measured on 4,000 production records over 12 surnames and 25 given names, the second edit returned 2,504 records where 1 returns 1,274 — and of the 1,230 it added, ZERO were nickname-table equivalents and 98.0% carried an entirely unrelated given name (`juan`->`john`, `carl`->`paul`, `gary`->`mark`, `rick`->`eric`). Two edits on a four-letter name replace half of it. `balanced` now behaves as documented. If you were relying on the wider behaviour, ask for `broad` — it is the same budget, named, and its cost is documented below. Recall was measured before the change on a control cohort: 21 of 21 people from a customer's own audit corpus, and 40 of 40 blind registrants queried by their registered given name, are all still returned.\n\n★ PREFER `balanced` (the default), ESPECIALLY FOR A NATIONAL SEARCH. `balanced` already handles the variants people reach for `broad` to solve — nicknames (Tony/Anthony), initials, first-name prefixes and first-name typos. Measured against 34,894 competitor records, `balanced` matched 98.28% and `broad` recovered only 38 more (0.11%).\n\n★ `broad` FUZZES THE SURNAME, AND THAT COSTS PRECISION. Its surname edit-distance budget scales with length (0 edits at <=4 characters, 1 at 5-7, 2 at >=8), which is why `Hernandez`/`Fernandez` matches but `Ross`/`Rose` does not. Even so, `broad` returns roughly 13.5% surname false positives by design: at 6 letters a single edit cannot separate `Siegel` from `Riegel` any more than `Smith` from `Smyth`. Every such hit is labelled `lastName:fuzzy` in `matchBasis` — filter on it before acting. In this API a false positive (naming an innocent person as a registered offender) is a materially worse error than a miss.\n\n★ `broad` MAY NOT FINISH AT NATIONAL SCOPE. It cannot use the indexed surname range, so it reads far more candidate rows per registry; a 57-registry fan-out can exceed the per-registry deadline. When that happens the response says so (`status: partial`, `counts.sourcesIncomplete > 0`, a `warnings[]` sentence naming each registry) — it is never silently short. Production 2026-08-04, {\"firstName\":\"Tony\",\"lastName\":\"Wilson\"}: balanced returned 182 records `complete`; broad returned 32 with `sourcesIncomplete: 29`. Scope `broad` with `query.state` to use it safely.\n"
          },
          "include": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "stateData",
                "raw",
                "extensive"
              ]
            },
            "description": "Accepted for compatibility and has no effect since 2026-10-25: `stateData` is populated on every record by default, and `offenses[]` and `images[]` come back on every response. To drop `stateData` for a lighter payload send `exclude: [\"stateData\"]`; the response reports what it left out in top-level `omittedFields`."
          },
          "exclude": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "stateData"
              ]
            },
            "description": "Record fields to leave out of this response. The only value is `stateData` — the 36-field per-state block (vehicles, extra photos, exclusion zones, free-text history) that is on every record by default. Send it for a lighter payload on large result sets; the response then lists it in `omittedFields`. Any other value is a `422`."
          },
          "proof": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProofRequest"
              }
            ],
            "nullable": true,
            "description": "Optional inline request for the per-registry look-alike proof add-on (billing required — 402 otherwise). This is NOT the customer verification report — for that use `POST /v1/report` (consolidated, requires `requesterName`). Omit for no extra charge.\n"
          },
          "subjectId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "description": "Your id for the person being screened — the resident, visitor, applicant or employee id from your own system. Sending it turns clearances on for this search: a person a reviewer marked `not_this_person` for this subject leaves `records[]` (or is annotated — see `clearanceMode`), the response carries `cleared[]` and `counts.clearedSuppressed`, and a kept record a clearance names carries a `clearance` object. Omit it and the response is exactly what it was before clearances existed: no `cleared` key, no `clearedSuppressed`, no `clearance` on any record. Stored only as a per-account hash, never as the id you sent.\n",
            "example": "resident-48213"
          },
          "clientId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "description": "Your id for the facility, tenant or client this subject belongs to. A platform that screens for many facilities sends it so that one facility's clearances never reach another facility's results; a direct customer omits it. Meaningful only with `subjectId`. Stored only as a per-account hash.\n",
            "example": "facility-07"
          },
          "clearanceMode": {
            "type": "string",
            "enum": [
              "suppress",
              "annotate",
              "ignore"
            ],
            "default": "suppress",
            "description": "What a `not_this_person` clearance does to the record it names. `suppress` (the default whenever `subjectId` is sent) removes the record from `records[]` and lists it in `cleared[]`. `annotate` keeps the record and attaches its `clearance` object, for an interface that shows cleared people greyed out. `ignore` answers as if no clearances existed. A `this_person` verdict, and a cleared person who has re-surfaced (`clearance.stale: true`), are kept and annotated in every mode.\n"
          },
          "deadlineMs": {
            "type": "integer",
            "default": 120000,
            "minimum": 1000,
            "maximum": 600000,
            "description": "Target time to wait, in ms. Default 2 minutes (120000). ★ SINCE 2026-10-15 THIS IS A TARGET, NOT A CUT-OFF, on the cache-served search: a search that would otherwise come back partial keeps working past it, up to the ~40 s the gateway allows, and returns complete. Healthy searches finish in well under a second either way; a value above ~40 s does not extend the search. ★ BOUNDED TO 1000-600000 SINCE 2026-08-05 — outside that is a 422. `0` and `-1` were previously accepted and silently ignored, and on the cache-served sync path the per-registry probe deadline governs anyway, so a sub-second value could never have meant what it said.\n"
          },
          "onDeadline": {
            "type": "string",
            "enum": [
              "partial",
              "error"
            ],
            "default": "partial",
            "description": "On deadline: partial=return what completed (status=partial); error=return 504. ★ Any other value is a 422 (changed 2026-08-05); it used to fall through to `partial`.\n"
          }
        }
      },
      "ReportRequest": {
        "description": "Generate a verification report for a search that was ALREADY run: pass the `searchId` returned by a prior `POST /v1/search` (or `/v1/searches`) call — up to 7 days afterward. The viewer identity (`viewerName`/`viewerEmail`, or the legacy `requesterName`) is OPTIONAL and is printed at the top of the PDF as a record of who viewed it — it is NOT an access gate. A legacy one-shot mode is still supported: omit `searchId` and pass an inline `query` (+ optional `jurisdictions`/`locationScoped`) to run the search inline. Provide EITHER a `searchId` OR a `query`. (`freshness` is retired — accepted and ignored.)\n",
        "type": "object",
        "properties": {
          "searchId": {
            "type": "string",
            "nullable": true,
            "description": "Id of a prior /v1/search (or /v1/searches) call to report on (within the 7-day window).",
            "example": "srch_9f2c1a7b3e4d"
          },
          "query": {
            "$ref": "#/components/schemas/Query"
          },
          "jurisdictions": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            },
            "description": "Legacy one-shot mode only (ignored when searchId is given)."
          },
          "locationScoped": {
            "type": "boolean",
            "default": false
          },
          "viewerName": {
            "type": "string",
            "nullable": true,
            "description": "OPTIONAL — name of the person viewing/running the report (printed on the PDF).",
            "example": "Jane Doe, HR Compliance"
          },
          "viewerEmail": {
            "type": "string",
            "nullable": true,
            "description": "OPTIONAL — email of the viewer (printed on the PDF).",
            "example": "jane@acme.example"
          },
          "requesterName": {
            "type": "string",
            "nullable": true,
            "description": "Legacy alias for viewerName (optional)."
          },
          "purpose": {
            "type": "string",
            "nullable": true,
            "description": "Optional stated purpose for the lookup (printed on the PDF).",
            "example": "Volunteer background screening"
          },
          "reference": {
            "type": "string",
            "nullable": true,
            "description": "Optional caller reference / case id (printed on the PDF).",
            "example": "case-2026-0417"
          }
        }
      },
      "AsyncSearchRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SearchRequest"
          },
          {
            "type": "object",
            "properties": {
              "webhookUrl": {
                "type": "string",
                "format": "uri",
                "nullable": true,
                "description": "Optional URL to notify when the async search completes.",
                "example": "https://hooks.example.com/searches"
              }
            }
          }
        ]
      },
      "AsyncSearchAccepted": {
        "type": "object",
        "description": "The 202 body returned by POST /v1/searches.",
        "properties": {
          "searchId": {
            "type": "string",
            "example": "srch_9f2c1a7b"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "running"
            ],
            "description": "Always `pending` on acceptance; `running` appears only on a later poll."
          },
          "jurisdictionsQueried": {
            "type": "integer",
            "description": "How many jurisdictions this search will query.",
            "example": 58
          },
          "estimatedCompletionSec": {
            "type": "integer",
            "example": 20
          },
          "resultsUrl": {
            "type": "string",
            "description": "Poll this for status + results.",
            "example": "/v1/searches/srch_9f2c1a7b"
          }
        }
      },
      "SearchResponse": {
        "type": "object",
        "description": "Synchronous result, or the state of an async job. While pending/running, `records`/`sourceStatus` are empty and `counts` is zeroed; on error, `error` is set and other fields may be omitted.\n",
        "properties": {
          "searchId": {
            "type": "string",
            "example": "srch_9f2c1a7b"
          },
          "status": {
            "type": "string",
            "enum": [
              "complete",
              "partial",
              "running",
              "pending",
              "error"
            ],
            "description": "complete=every registry was searched to the end; partial=at least one was NOT (deadline or candidate-cap truncation) or a source errored; pending/running=async job in flight; error=async job failed. ★ `partial` is NEVER about how old the data is — a snapshot's age does not affect `status`. When `status` is `partial`, read `counts.sourcesIncomplete` before treating an empty `records` as an answer (API-CONTRACT.md §5.0).\n"
          },
          "elapsedMs": {
            "type": "integer",
            "description": "Server processing time for the search, in ms.",
            "example": 412
          },
          "usage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LiveUsage"
              }
            ],
            "nullable": true,
            "description": "Present ONLY on a LIVE result (the `live` block was sent and ran synchronously). Its presence is the machine-readable signal that this answer was re-verified live. Absent on a Regular (cached) answer.\n"
          },
          "meterEvents": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MeterEvent"
            },
            "description": "Present ONLY on a LIVE result — the billable units for this search (a `live_source` event carrying the completed-source quantity and the $2.00 per-search ceiling). Absent on a Regular answer.\n"
          },
          "counts": {
            "type": "object",
            "description": "Roll-up counts.",
            "properties": {
              "records": {
                "type": "integer",
                "description": "TOTAL matched records, BEFORE the page slice — not `records.length`. The envelope also carries `page`, `perPage` and `totalPages`, so you do not need to compute the page count yourself.\n",
                "example": 1
              },
              "recordsReturned": {
                "type": "integer",
                "description": "How many records THIS RESPONSE carries. Equal to `counts.records` on virtually every search; when `capped` is true it is the cap and `counts.records` is the true match count, so the two together tell you exactly how much of the answer you are holding. Always present.\n",
                "example": 1
              },
              "sourcesQueried": {
                "type": "integer",
                "description": "Registries queried in this search. A default search — INCLUDING one with `query.state` — queries all 58. Only an explicit `jurisdictions` list or an explicit `locationScoped: true` reduces it.\n",
                "example": 58
              },
              "sourcesSkippedByScope": {
                "type": "integer",
                "description": "Registries NOT queried because the caller sent `locationScoped: true`. Always present; 0 on every default search. Above 0 the answer excludes anyone registered by a registry outside the requested state, however they match the residence filter — those registries contributed nothing because they were not searched, which is not the same as finding no match.\n",
                "example": 0
              },
              "sourcesIncomplete": {
                "type": "integer",
                "description": "Registries that could NOT BE SEARCHED TO THE END — either the registry did not answer within its 15s deadline, or the query matched more than 15,000 candidate rows in that registry and only the first 15,000 were examined (2,000 for the speculative typo arm of `match: \"broad\"`). This is NOT the same as paging: `page`/`perPage` slice an answer you can walk in full, and never cost you a record. See `incompleteReason`. Anything above 0 means `records` is a LOWER BOUND: a matching person may exist in that registry and simply never have been reached. ★ AN EMPTY `records` ARRAY WITH `sourcesIncomplete > 0` IS NOT EVIDENCE THAT A PERSON IS UNREGISTERED. `sourceStatus[].incomplete` identifies which registries, and `warnings[0]` states it in prose. See API-CONTRACT.md §5.0.\n",
                "example": 0
              },
              "sourcesComplete": {
                "type": "integer",
                "description": "★ HOW MANY REGISTRIES ACTUALLY ANSWERED THIS REQUEST — the positive count, and the one to build a retry policy on. Always present. `status: \"complete\"` means exactly `sourcesComplete == sourcesQueried`; both come from the same internal test, so the word and the number can never disagree. READ IT AS A RATIO. `status: \"partial\"` is one word covering everything from \"one registry was slow\" to \"almost none of them answered\" — on 2026-08-05 the identical every-US-registry body returned 207 records with 57 of 58 registries answering, and 9 records with 7 of 58 answering, and BOTH said `partial`. `sourcesComplete/sourcesQueried` is what tells those apart: hold-and-retry on a low ratio, accept a high one. DO NOT compute this as `sourcesQueried - sourcesIncomplete`. That subtraction over-counts: a registry that errored, or that is closed to commercial use (`status: \"restricted\"`), or that does not cover your query (`\"no_coverage\"`) contributed nothing and sets no `incomplete` flag, so the subtraction credits it as having answered. This field does not. It is a fact about THIS REQUEST'S fan-out and says nothing about when any registry was last collected.\n",
                "example": 58
              },
              "clearedSuppressed": {
                "type": "integer",
                "description": "Records removed from `records[]` by a `not_this_person` clearance for the `subjectId` sent. Present only when the request carried `subjectId`; `0` in `annotate` and `ignore` modes. `counts.records` already excludes them, so `records + clearedSuppressed` is the count before clearances. Each one is listed in `cleared[]`.\n",
                "example": 0
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Plain-language notices about anything that SHORTENED this answer — one sentence per condition, naming the registries. ALWAYS present; `[]` means nothing did, so `warnings == []` is a valid completeness check and the cheapest one available. The loudest entry, always first when present, begins \"INCOMPLETE SEARCH:\" and means one or more registries could not be searched to the end. Freshness never produces a warning. On a live search, a `NOT FOUND IN LIVE CHECK:` sentence names the registries whose completed live check did not return records we hold (`records[].liveResult: \"not_found_live\"`, `sourceStatus[].notFoundLive`); it does not change `status`.\n",
            "example": []
          },
          "page": {
            "type": "integer",
            "description": "The page you asked for, echoed back. `1` when the caller did not paginate. ★ CHANGED 2026-08-05: a `query.page` past `totalPages` now returns an EMPTY `records` array instead of being CLAMPED to the last page. The clamp re-served the last page under every page number you sent (pages 5, 6 and 50 of a 4-page result all carried page 4's records), so the canonical `while records: page += 1` client NEVER TERMINATED — and /v1/search meters one billable call per request, so every spin was charged. `counts.records` and `totalPages` are unchanged, and walking 1..totalPages returns exactly the same records it always did.\n",
            "example": 1
          },
          "perPage": {
            "type": "integer",
            "description": "Page size actually applied. NOTE: when the caller did NOT paginate this equals the TOTAL record count (the whole set was returned in one page), not the 20 default.\n",
            "example": 1
          },
          "totalPages": {
            "type": "integer",
            "description": "Total pages at this `perPage`. `1` when the caller did not paginate.",
            "example": 1
          },
          "sourceStatus": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SourceStatus"
            },
            "description": "Per-source outcome for this search."
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Record"
            }
          },
          "proof": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProofBundle"
              }
            ],
            "description": "Proof bundle when `proof` was requested; otherwise {status:none}."
          },
          "error": {
            "type": "string",
            "nullable": true,
            "description": "Set only when an async job failed (status=error).",
            "example": null
          },
          "capped": {
            "type": "boolean",
            "description": "TRUE when the search matched more records than one response may carry and the list was cut to `cappedLimit`. Always present, `false` on virtually every search. **Branch on this field, not on prose and not by comparing counts.** When it is true, `counts.records` is still the true number of people who matched — you are holding the first `cappedLimit` of them. A capped response is not an error and not a `partial`: every record in it is a real match, and the registries were all searched to the end. To see the rest, narrow the search (see `cappedReason`).\n",
            "example": false
          },
          "cappedReason": {
            "type": "string",
            "nullable": true,
            "enum": [
              "responseLimit"
            ],
            "description": "Why the response was capped; `null` when `capped` is false. `responseLimit` is the fixed ceiling on how many records one response may carry. It exists so that a whole-registry sweep cannot be issued as a single call; it is not a limit on how much of the corpus you may reach, only on how much of it arrives at once.\n"
          },
          "cappedLimit": {
            "type": "integer",
            "nullable": true,
            "description": "The ceiling that was applied (currently 4000), or `null` when `capped` is false. Read it from the response rather than hard-coding it.\n",
            "example": null
          },
          "cappedOmittedSources": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The registries whose records are ENTIRELY absent from this response because of the cap — sorted, and `[]` on every uncapped search (always present). `capped` / `cappedLimit` tell you HOW MANY records did not fit; this tells you WHOSE. Records are ordered by match confidence rather than by registry, so a registry's whole contribution can fall below the line together. ★ NO PAGE OF THIS RESPONSE REACHES A REGISTRY NAMED HERE: `totalPages` counts only the `cappedLimit` records carried, so walking every page does not recover them. Their `sourceStatus[].matched` counts are still exact. The recovery is to NARROW the search until the answer fits — add `state`, `city`, `zipCode`, `firstName` or `dob`/`age`, or name registries directly with `jurisdictions`. Example: `{\"lastName\":\"Smith\"}` matches 11,338 people nationally and this list names the registries holding the rest; the same query with `\"state\": \"GA\"` returns 894 records with `capped: false`.\n",
            "example": []
          },
          "omittedFields": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The record FIELDS this response does not carry because the request excluded them — `[]` on a default search (the full record is the default since 2026-10-25), `[\"stateData\"]` when the request sent `exclude: [\"stateData\"]`. Always present. ★ READ IT BEFORE TREATING A NULL NESTED BLOCK AS A FACT ABOUT THE REGISTRANT. `stateData: null` is byte-identical for \"you did not ask\" and \"this registry publishes none\"; this key is the only thing that separates them. `images` and `offenses` are never omitted, so `[]` there is always a fact about the registrant.\n",
            "example": []
          },
          "cleared": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ClearedEntry"
            },
            "description": "Present only when the request carried `subjectId`. One entry per record a `not_this_person` clearance removed from `records[]`, so an interface can say \"2 previously cleared people hidden\" and link each to its clearance. `[]` when nothing was suppressed, including every search in `annotate` or `ignore` mode.\n"
          }
        }
      },
      "SearchAsyncAcknowledgement": {
        "type": "object",
        "description": "The `200` body of `POST /v1/search` when its `live` block resolved to more sources than run inline (more than two, or any async-only registry). The search is a background job: poll `GET /v1/searches/{searchId}` (API key) every 2–5 seconds until the body is a `SearchResponse`. Nothing is billed until live sources complete.\n",
        "required": [
          "searchId",
          "status",
          "mode",
          "poll"
        ],
        "properties": {
          "searchId": {
            "type": "string",
            "example": "srch_9a7b2c4d1e3f5a6b7c8d"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending"
            ]
          },
          "mode": {
            "type": "string",
            "enum": [
              "async"
            ]
          },
          "liveSourcesRequested": {
            "type": "integer",
            "description": "How many live sources the block resolved to.",
            "example": 5
          },
          "poll": {
            "type": "string",
            "description": "The path to poll, relative to the host — `/v1/searches/{searchId}`.",
            "example": "/v1/searches/srch_9a7b2c4d1e3f5a6b7c8d"
          },
          "reason": {
            "type": "string",
            "description": "Why it went async, as a sentence.",
            "example": "5 live sources (> 2 or not sync-eligible) — running asynchronously"
          }
        }
      },
      "SourceStatus": {
        "type": "object",
        "description": "One source's outcome within a search.",
        "properties": {
          "source": {
            "type": "string",
            "description": "Jurisdiction / source code.",
            "example": "IL"
          },
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "error",
              "restricted",
              "no_coverage",
              "complete",
              "partial"
            ],
            "description": "ok=searched (records may be []); error=network/parse failure; restricted=legal gate (surfaced, not dropped); no_coverage=registry doesn't cover this query. A row appended by a `live` re-check reads `complete` (finished) or `partial` (`incomplete: true`) instead. ★ `ok` DOES NOT MEAN THE SEARCH FINISHED — a registry that timed out or whose candidate set was truncated still reports `ok`, because `status` describes whether the registry RESPONDED. Read `incomplete`.\n"
          },
          "matched": {
            "type": "integer",
            "description": "Records this source contributed, before cross-source merge. When `incomplete` is true this is a LOWER BOUND.",
            "example": 1
          },
          "fromCache": {
            "type": "boolean",
            "description": "True when served from the current snapshot.",
            "example": true
          },
          "note": {
            "type": "string",
            "nullable": true,
            "description": "Free-text detail, reworded without notice. NEVER branch on it. It no longer carries any statement about the age of our data: a filter on the way out replaces such wording, so `note` describes only what happened to the search. Use `incomplete` / `incompleteReason` for search completeness, and `record.source.recordedAt` for a record's own provenance.\n",
            "example": null
          },
          "incomplete": {
            "type": "boolean",
            "description": "True when this registry WAS NOT SEARCHED TO THE END — its `matched` count is a LOWER BOUND and a matching person may exist here that you were not shown. ★ INDEPENDENT OF `status`: an incomplete source still reports `status: ok`, because `status` describes whether the registry RESPONDED, not whether the search FINISHED. Read this field, not `status`, to decide whether an empty result means \"nobody matched\". See API-CONTRACT.md §5.0.\n",
            "example": false
          },
          "incompleteReason": {
            "type": "string",
            "nullable": true,
            "enum": [
              "deadline",
              "truncated",
              "excluded",
              "not_searched",
              "unavailable",
              "error"
            ],
            "description": "★ WHY THIS REGISTRY DID NOT FINISH — a CLOSED enum, and the field to branch on. `incompleteReason` is non-null if and only if `incomplete` is true; the two are always set together, so `incomplete` is your boolean gate and this is the reason you act on. Do NOT parse `note` for any of this: `note` is free text, it has been reworded before, and one of its sentences said \"stale\" about a deadline for months.\n\n**The six values, and what to DO about each:**\n\n`deadline` — this registry did not answer within its 15-second deadline and contributed zero (or, if we had a cached answer to fall back on, a short) result. ★ RETRYABLE: retry the same request, or raise `deadlineMs`.\n\n`truncated` — your query matched more candidate rows in this registry's prefilter than one search may examine, so only the first 15,000 were searched and that window is NOT ranked — a match outside it is not returned. This is NOT a page: there is no \"next 15,000\" to ask for, which is exactly what distinguishes it from `perPage`. ★ RETRYING IS NOT THE FIX — narrow the query instead, most effectively by adding a surname. Shapes that trip it: a `firstName` with no `lastName`; a `city`/`zipCode`/`dob`/`age` with no name at all; short or common surname tokens searched nationally. Under `match: \"broad\"` it is also reported when the speculative typo arm — which carries its own, much smaller 2,000-row budget so it can never spend the whole candidate cap — matched more misspelling candidates than that budget allows.\n\n★ A `dob` OR `age` IS NEVER THE THING THAT GETS CUT. When your query constrains the birth year, the records whose birth year MATCHES are examined first, to the full 15,000; only the leftover budget goes to records whose registry publishes no birth date. Those unknown-birth-date records are still returned when the name matches — a registry that publishes no DOB cannot rule a person out, so they come back flagged `dobVerification: \"unverified_no_dob_or_age\"` — but they can no longer displace somebody whose birth date is exactly the one you asked about. So if you see `truncated` on a query carrying a DOB, the records that were cut are from the unknown-birth-date group. See API-CONTRACT.md §5.0.\n\n`excluded` — a retired option on your own request dropped this registry; send the request without it. Remove the parameter and its records come back. Nothing is wrong on our side.\n\n`not_searched` — we had nothing to search for this registry at all. An immediate retry will not help: this is a coverage failure on our side and it already alerts us. Treat the answer as a lower bound and re-run later.\n\n`unavailable` — we could not READ this registry for this request (a transient backend or transport fault). It contributed nothing. ★ RETRYABLE.\n\n`error` — this registry returned an error for this request (network / parse). It contributed nothing. ★ RETRYABLE with backoff; a persistent one is ours and is alerting.\n\n**`null`** when `incomplete` is false — this registry was searched to the end and its `matched` count is exact.\n\n★ ADDED 2026-08-05: `unavailable` and `error`. Before that date a registry that FAILED was reported `status: \"error\"` with `incomplete: false` and `incompleteReason: null`, so it was missing from `counts.sourcesIncomplete` and from the `INCOMPLETE SEARCH:` warning, and the only description of what had happened was the wording of `note`. `excluded` and `not_searched` could always be emitted but were **missing from this enum** — if you generated types from an older copy of this spec, regenerate them.\n\n★ THERE IS NO `stale` MEMBER, AND THERE WILL NOT BE ONE. This field describes THIS REQUEST'S FAN-OUT — did each registry answer, and was it searched to the end. It is not, and will never be, a statement about how old our snapshot of a registry is. Those are different questions: a registry swept ten minutes ago can still be incomplete, and a registry swept yesterday was still searched to the end and its `0` is a real `0`. If you want a registry's currency, ask for it directly at `GET /v1/sources` -> `health.lastSuccessAt` (no API key required), or read `record.source.recordedAt` for a single record.\n",
            "example": null
          },
          "cappedOmitted": {
            "type": "boolean",
            "description": "True when this registry matched people and NONE of its records are in this response, because the response cap (`capped` / `cappedLimit`) cut the list before any of them. Always present, `false` on virtually every search. ★ THIS IS NOT `incomplete`, AND THE DIFFERENCE IS THE ACTION YOU TAKE. `incomplete` means the registry could not be searched to the end, so its `matched` is a lower bound. Here the registry WAS searched to the end and its `matched` is EXACT — what is missing is the records, not the search. So `status` stays `complete` and `counts.sourcesIncomplete` does not count it. ★ AND PAGING CANNOT REACH IT: `totalPages` counts only the records this response carries, so a registry flagged here is on no page of it. Narrow the search instead — add `state`, `city`, `zipCode`, `firstName` or `dob`/`age`, or name registries with `jurisdictions` — and the answer fits under the ceiling with nothing left out. The rolled-up list of every registry flagged here is `cappedOmittedSources` on the response.\n",
            "example": false
          },
          "notFoundLive": {
            "type": "integer",
            "description": "Present ONLY on a row whose live check completed in this search: how many of this answer's records from this source the live answer did NOT include (each carries `liveResult: \"not_found_live\"`). `0` when every record was returned. Absent on a row that was not checked live, could not complete, or was answered from file.\n",
            "example": 0
          }
        }
      },
      "Name": {
        "type": "object",
        "properties": {
          "first": {
            "type": "string",
            "example": "Jordan"
          },
          "middle": {
            "type": "string",
            "example": "Lee"
          },
          "last": {
            "type": "string",
            "example": "Rivera"
          },
          "suffix": {
            "type": "string",
            "example": "Jr."
          },
          "full": {
            "type": "string",
            "description": "Computed: first middle last suffix, joined.",
            "example": "Jordan Lee Rivera Jr."
          }
        }
      },
      "Address": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "default": "residence",
            "description": "Address kind. This is an OPEN vocabulary, not a closed enum — treat it as a string with a common case. Values observed in production, by frequency: `residence` (~85%), `employment` (~8%), `other` (~4%), `incarceration`, `H`, `O`, `school`, `transient`, `RL`. The single-letter values are raw registry codes that are not yet normalized. Match `residence` explicitly and bucket everything else rather than switching exhaustively.\n",
            "example": "residence"
          },
          "line1": {
            "type": "string",
            "example": "4120 Elm St"
          },
          "city": {
            "type": "string",
            "example": "Chicago"
          },
          "county": {
            "type": "string",
            "example": "Cook"
          },
          "state": {
            "type": "string",
            "example": "IL"
          },
          "zipcode": {
            "type": "string",
            "example": "60614"
          },
          "lat": {
            "type": "number",
            "nullable": true,
            "description": "Populated only for GIS/geocoded sources.",
            "example": 41.9241
          },
          "lng": {
            "type": "number",
            "nullable": true,
            "example": -87.6512
          }
        }
      },
      "Offense": {
        "type": "object",
        "description": "Structured offense (richer than offenders.io's single packed `crime` string).\n",
        "properties": {
          "crime": {
            "type": "string",
            "example": "AGGRAVATED CRIMINAL SEXUAL ABUSE"
          },
          "statute": {
            "type": "string",
            "example": "720 ILCS 5/11-1.60"
          },
          "riskLevel": {
            "type": "string",
            "description": "The registry's RISK CLASSIFICATION for this registrant, verbatim (`\"Tier 3\"`, `\"Level 2\"`, `\"MODERATE\"`), or `\"\"`. **Not comparable across states** — each is a different statutory scale, and there is no cross-state severity ranking in this API. **Many states run no risk scheme at all and return `\"\"`; that is a fact about the statute, not about the registrant, and it never means low risk.** It is also NOT a registration status: for whether a registrant is confined, absconded, deported or deceased, read `stateData.status`. **Florida** defines a statutory *designation* rather than a tier, so Florida records return `riskLevel: \"\"` and carry `\"Sexual Predator\"` / `\"Sexual Offender\"` / `\"Juvenile Sexual Offender\"` in `stateData.designation` (and the `flags.predator` boolean).\n",
            "example": "Tier 3"
          },
          "tier": {
            "type": "string",
            "description": "The registry's TIER, where it publishes one separately from `riskLevel`, verbatim (`\"Tier 3\"`, `\"II\"`), or `\"\"`. Frequently a duplicate of `riskLevel`; same cross-state caveat.\n",
            "example": "Tier 3"
          },
          "convictionDate": {
            "type": "string",
            "description": "ISO-8601. `YYYY-MM-DD`, or the reduced-precision `YYYY-MM` / `YYYY` when the registry publishes only a month or a year, or `\"\"`. Read `datePrecision.convictionDate` to tell those apart without measuring the string length. ★ BREAKING 2026-08-04 — this used to be the registry's string passed through verbatim, so one response could carry \"2003-03-31\", \"10/11/1988\", \"11-29-1987\" and \"Aug. 10, 1987\" in the same key. The original text is still available in `datesAsPublished`.\n",
            "example": "2011-06-02"
          },
          "offenseDate": {
            "type": "string",
            "description": "Date the OFFENCE was committed — a different fact from `convictionDate` and never a substitute for it. Published by TN (whose offences table is headed literally \"DATE OF OFFENSE\"), PA, IL, MO, KS and NY. ISO-8601, same rules as `convictionDate`. ★ BREAKING 2026-08-04 — format changed; it was ISO on only 45.4% of its populated values before.\n",
            "example": "2010-11-19"
          },
          "registrationDate": {
            "type": "string",
            "description": "ISO-8601, same rules as `convictionDate`. ★ Format changed 2026-08-04.",
            "example": "2012-01-09"
          },
          "releaseDate": {
            "type": "string",
            "description": "ISO-8601, same rules as `convictionDate`. ★ Format changed 2026-08-04.",
            "example": "2011-12-20"
          },
          "datePrecision": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "enum": [
                "exact",
                "year_month",
                "year",
                "none",
                "unparseable"
              ]
            },
            "description": "How much of each date this registry actually published. One entry for every date key on this object — `convictionDate`, `offenseDate`, `registrationDate`, `releaseDate` — always all four, always present. `exact` = a full `YYYY-MM-DD`. `year_month` = the value is `YYYY-MM`; no day was published and none was invented. `year` = the value is `YYYY`. `none` = the registry published nothing, or published a placeholder meaning \"no date\" (`0001-01-01`, `01/01/9999`). `unparseable` = the registry published something that is not a date; the value is `\"\"` and the original text is in `datesAsPublished`. Same idea as `dobPrecision`.\n",
            "example": {
              "convictionDate": "exact",
              "offenseDate": "exact",
              "registrationDate": "exact",
              "releaseDate": "exact"
            }
          },
          "datesAsPublished": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "The registry's ORIGINAL text for any date key whose published form is not byte-identical to what we now emit — e.g. `{\"convictionDate\": \"10/11/1988\"}`. `{}` when every date round-tripped unchanged. Nothing is ever discarded to normalise: values we cannot read as dates (Tennessee's 40 offence-date cells holding a crime description, Wisconsin's `registrationEnds` of \"15 Years\") appear here rather than being blanked. Use it when you need the registry's literal rendering, or to audit anything marked `unparseable`. Since 2026-08-05 this text is STORED rather than re-derived on each response, so it survives the normalisation permanently — the source's own rendering is not something we can lose by changing a parser later.\n",
            "example": {
              "convictionDate": "06/02/2011"
            }
          },
          "caseNumber": {
            "type": "string",
            "example": "11CR0421"
          },
          "victimAge": {
            "type": "string",
            "example": "14"
          },
          "victimSex": {
            "type": "string",
            "example": "Female"
          },
          "jurisdiction": {
            "type": "string",
            "description": "Conviction jurisdiction — the two-letter STATE code, never the county and never a court name. Where a registry publishes a composite (a county and a state in one column, or a category label wrapped around the code) the parts are separated into `convictionCounty` / `convictionCity` / `federal` and this field carries the state alone. It is left as the registry's own text ONLY where the source value carries a fact with no other field to hold it — e.g. Florida's `Interstate, GA` (an interstate compact transfer) or Texas's `Military (YY)`.\n",
            "example": "IL"
          },
          "convictionCounty": {
            "type": "string",
            "description": "County in which the conviction was entered, as the registry publishes it. A different fact from the registrant's residence county (`addresses[].county`). Registries head this column very differently and it is captured from each of them: OK `CASE_REFERENCE_COUNTY`, the OffenderWatch cluster \"County of Conviction\", FL/ND \"Jurisdiction & State\", IL \"Conviction State or IL County\", ID \"Place of Conviction\", MS \"Location\", NE \"Jurisdiction\", NC \"County - State\", KS a \"County\" column beside a \"State\" column, MI/WI/IA a dedicated county column. Out-of-state convictions keep their own county and their own `jurisdiction` — a Florida registrant convicted in Cherokee County, Georgia is served as `convictionCounty: \"Cherokee\"`, `jurisdiction: \"GA\"`.\n",
            "example": "Cook"
          },
          "convictionCity": {
            "type": "string",
            "description": "City in which the conviction was entered (OK `CONVICTION_CITY`; AK names the venue city in the convicting court's own name, e.g. \"SUPERIOR COURT PALMER\").\n",
            "example": "Chicago"
          },
          "convictionCount": {
            "type": "string",
            "description": "How many convictions this offence row represents. MA publishes it as \"No. of Convictions\"; the OffenderWatch cluster and MT publish it as \"Counts\". One offence ROW is not one conviction.\n",
            "example": "1"
          },
          "federal": {
            "type": "boolean",
            "nullable": true,
            "description": "True when the registry marks the conviction as FEDERAL rather than state (OK's per-offence \"Fed?\" Y/N column). `null` = not published.\n",
            "example": false
          }
        }
      },
      "SourceRef": {
        "type": "object",
        "description": "Provenance stamp — mandatory on every record's primary source.",
        "properties": {
          "jurisdiction": {
            "type": "string",
            "description": "Jurisdiction code, e.g. IL.",
            "example": "IL"
          },
          "registryName": {
            "type": "string",
            "example": "Illinois Sex Offender Registry"
          },
          "recordUrl": {
            "type": "string",
            "format": "uri",
            "description": "The registry's own link to this registrant, for a reviewer to follow; on some registries a registry-wide page. A link, not a key — store personRef.",
            "example": "https://…/registrant/X24A0926"
          },
          "personRef": {
            "type": "string",
            "nullable": true,
            "description": "The person behind this registry's listing, `prs_` + 20 hex — the same value when the registry republishes the listing under a new number. null when this entry carries none.",
            "example": "prs_3c9e1f0a7b2d4e6f8a1b"
          },
          "recordedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "createdAt basis — when we first recorded it.",
            "example": "2026-01-15T06:12:40+00:00"
          },
          "lastCheckedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "example": "2026-10-24T05:03:12+00:00"
          },
          "sourceUpdatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "updatedAt basis — when the source last changed the record.",
            "example": "2026-09-30T00:00:00+00:00"
          }
        }
      },
      "StateData": {
        "type": "object",
        "description": "Parity: offenders.io extensive stateData (retained only for include=stateData/extensive).",
        "properties": {
          "stateOffenderId": {
            "type": "string",
            "example": "X24A0926"
          },
          "status": {
            "type": "string",
            "description": "Where the registrant stands with the registry, in the registry's own words, or `\"\"`. This is the key that answers *is this person still at liberty?* — and it is distinct from `offense.riskLevel`, which carries a risk classification. Free text, per state: **Florida (FDLE)** publishes nine values — `\"Released - Subject to Registration\"`, `\"Confinement\"`, `\"Supervised - FL Dept of Corrections\"`, `\"Supervised - US Probation\"`, `\"Supervised - FL Dept of Juvenile Justice\"`, `\"Deported\"`, `\"Deceased\"`, `\"Absconded\"`, `\"Civil Commitment\"` — while other states use their own (`\"Compliant\"`, `\"Non-Compliant\"`, …). **Match on the exact strings a given state publishes; there is no cross-state enum.** Two of these conditions also have booleans you can read without string matching: `flags.absconder` and, where published, `stateData.incarcerationStatus`.\n\n★ **Georgia (GBI)** publishes this instead of an address for registrants it records as moved out of state, deceased, homeless, incarcerated outside Georgia, or out of the country — e.g. `\"*** MOVED OUT OF STATE ***\"`, `\"*** INCARCERATED - OUT OF STATE ***\"`, `\"ABSCONDER (Address Unknown)\"`. Georgia's coverage is built from GBI's per-registrant pages as well as its bulk export, so these registrants are returned like any other; read `stateData.status` for why `addresses[]` may be empty on them, and note that address- and radius-filtered queries cannot reach them.\n",
            "example": "Active"
          },
          "designation": {
            "type": "string",
            "description": "The registry's statutory CLASSIFICATION of the offender, verbatim — e.g. `\"Sexual Predator\"`, `\"Sexual Offender\"`, `\"Juvenile Sexual Offender\"` — or `\"\"`. Distinct from a risk tier. Where a registry distinguishes a predator class, `flags.predator` mirrors it as a boolean.\n",
            "example": "Sexual Offender"
          },
          "registrationEnds": {
            "type": "string",
            "description": "When the registration TERM ends. ISO-8601 (`YYYY-MM-DD` / `YYYY-MM` / `YYYY`) or `\"\"`. ★ READ `datePrecision.registrationEnds` BEFORE YOU TRUST AN EMPTY VALUE HERE. 49,961 records publish something in this field that is not a date at all but a DURATION or a lifetime marker — Wisconsin \"15 Years\" / \"25 Years\" / \"Life\" (25,218), Oklahoma \"Lifetime\" (6,606), North Dakota \"LIFETIME\" (742). Those come back as `\"\"` with precision `unparseable` and the literal text in `datesAsPublished`, because a date-typed key must hold a date or nothing. They are NOT missing data, and reading `\"\"` here as \"no end date on file\" would be wrong for exactly those registrants — check `datesAsPublished.registrationEnds`, and see also `isLifetimeRegistration` and `registrationDuration`.\n",
            "example": "2032-01-09"
          },
          "datePrecision": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "enum": [
                "exact",
                "year_month",
                "year",
                "none",
                "unparseable"
              ]
            },
            "description": "How much of each date this registry published, one entry for every date key on this object — `registrationEnds`, `lastVerificationDate`, `addressVerificationDate`, `sentenceCompletionDate`, `registrationStarts` — always all five, always present. Values as documented on `Offense.datePrecision`.\n",
            "example": {
              "registrationEnds": "exact",
              "lastVerificationDate": "exact",
              "addressVerificationDate": "exact",
              "sentenceCompletionDate": "exact",
              "registrationStarts": "exact"
            }
          },
          "datesAsPublished": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "The registry's ORIGINAL text for any date key on this object whose published form differs from what we now emit; `{}` when none do. This is where \"Life\", \"15 Years\" and \"Lifetime\" live after normalisation — they are preserved, not discarded.\n",
            "example": {}
          },
          "verificationRequirement": {
            "type": "string",
            "example": "Annual"
          },
          "lawAgency": {
            "type": "string",
            "example": "Cook County Sheriff's Office"
          },
          "judgmentOfConvictionUrl": {
            "type": "string",
            "format": "uri",
            "example": "https://…/judgments/11CR0421.pdf"
          },
          "vehicles": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true,
              "properties": {
                "plate": {
                  "type": "string",
                  "description": "Plate as printed, usually state-prefixed: \"UT F814NW\".",
                  "example": "IL CR4 7721"
                },
                "make": {
                  "type": "string",
                  "description": "\"Ford\", \"Kawasaki\", \"General Motors\".",
                  "example": "Ford"
                },
                "model": {
                  "type": "string",
                  "description": "\"F150\", \"Motorcycle\" — free text, sometimes a class rather than a model.",
                  "example": "F150"
                },
                "year": {
                  "type": "string",
                  "description": "STRING, not an integer: \"2018\".",
                  "example": "2018"
                },
                "color": {
                  "type": "string",
                  "description": "\"White\", \"Black Green (Light)\" — registry vocabulary, not normalized.",
                  "example": "White"
                }
              }
            },
            "description": "Vehicles the registrant has reported to the registry. Keys are not guaranteed: the five above are what the OffenderWatch cluster prints, and other registries publish different ones — always read defensively. `[]` is AMBIGUOUS and carries three different facts that the response cannot separate: this person reported no vehicle, this registry does not publish vehicles at all, or the detail page has not been fetched for this record yet. Treat `[]` as \"no vehicle known\", never as \"no vehicle owned\". Populated in 22 jurisdictions; among records that HAVE a detail page, roughly 27-69% carry at least one (FL 27%, PA 44%, OH 58%, LA 61%).\n",
            "example": [
              {
                "plate": "IL CR4 7721",
                "make": "Ford",
                "model": "F150",
                "year": "2018",
                "color": "White"
              }
            ]
          },
          "photos": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            },
            "example": [
              {
                "url": "https://api.offendersearch.app/v1/media/rec_ab12cd34ef56gh78ij90/2.jpg"
              }
            ]
          },
          "complianceStatus": {
            "type": "string",
            "description": "e.g. compliant | non-compliant.",
            "example": "compliant"
          },
          "isLifetimeRegistration": {
            "type": "boolean",
            "nullable": true,
            "description": "True when registration is for life.",
            "example": false
          },
          "lastVerificationDate": {
            "type": "string",
            "description": "When the offender last verified, ISO-8601 or `\"\"`. ★ Format changed 2026-08-04: it was ISO on 85.9% of its populated values and `MM/DD/YYYY` on the rest, despite this description having claimed \"ISO date\" all along. It is ISO now.\n",
            "example": "2026-03-14"
          },
          "addressVerificationDate": {
            "type": "string",
            "description": "When the address was verified (e.g. KS \"Current as of\"), ISO-8601 or `\"\"`. ★ Format changed 2026-08-04 — previously ISO on 96.2% of populated values, `MM/DD/YYYY` on the rest.\n",
            "example": "2026-03-14"
          },
          "incarcerationStatus": {
            "type": "string",
            "description": "e.g. incarcerated | released (e.g. SD IsInJail).",
            "example": "released"
          },
          "comments": {
            "type": "string",
            "description": "Free-text registry remarks.",
            "example": "Registrant verified in person at the annual check."
          },
          "criminalHistory": {
            "type": "string",
            "description": "Narrative / prior-history summary.",
            "example": "One prior conviction, Cook County, 2011."
          },
          "adjudication": {
            "type": "string",
            "description": "e.g. adult | juvenile.",
            "example": "adult"
          },
          "registrationDuration": {
            "type": "string",
            "description": "e.g. 10 years | lifetime.",
            "example": "20 years"
          },
          "skinTone": {
            "type": "string",
            "description": "IA skin-tone descriptor (e.g. light | medium | dark).",
            "example": "medium"
          },
          "residencyRestriction": {
            "type": "string",
            "description": "IA residency constraint (free text).",
            "example": "May not reside within 2,000 feet of a school or child care facility."
          },
          "employmentRestriction": {
            "type": "string",
            "description": "IA employment constraint (free text).",
            "example": "May not work or volunteer at a facility serving minors."
          },
          "exclusionZones": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IA geographic zones the offender is barred from.",
            "example": [
              "Within 2",
              "000 feet of Lincoln Park Elementary"
            ]
          },
          "district": {
            "type": "string",
            "description": "DC police district.",
            "example": "3D"
          },
          "psa": {
            "type": "string",
            "description": "DC Police Service Area.",
            "example": "305"
          },
          "quadrant": {
            "type": "string",
            "description": "DC quadrant (NW | NE | SW | SE).",
            "example": "NW"
          },
          "birthCity": {
            "type": "string",
            "description": "Place of birth — city (WY DCI prints a 'Place Of Birth' row on every detail page).",
            "example": "Peoria"
          },
          "birthState": {
            "type": "string",
            "description": "Place of birth — state.",
            "example": "IL"
          },
          "birthCountry": {
            "type": "string",
            "description": "Place of birth — country.",
            "example": "United States"
          },
          "sentenceCompletionDate": {
            "type": "string",
            "description": "Date the SENTENCE completes (OK's \"Completion of Sentence\" row, present on roughly half of Oklahoma profiles). Distinct from `registrationEnds` (the registration TERM) and from `offense.releaseDate` (release from custody). ISO-8601 or `\"\"`. ★ BREAKING 2026-08-04 — Oklahoma publishes this as `MM-DD-YYYY`, so 100% of its populated values changed shape.\n",
            "example": "2014-12-20"
          },
          "registrationStarts": {
            "type": "string",
            "description": "Date registration began — the partner of `registrationEnds`. ISO-8601 or `\"\"`. ★ EXPANDED 2026-08-09 from one jurisdiction to sixteen: Oklahoma (\"Orig Reg Date\"), Virginia (\"Initial Registration Start Date\"), Pennsylvania (\"Registration Start\"), Kansas (\"Registered Since\"), Wisconsin, North Carolina, Georgia, Illinois, Indiana, Delaware, Alaska, Puerto Rico, New Mexico, Wyoming, Guam and the District of Columbia. It is the FIRST registration, not the most recent one: registries that publish only a latest-registration or address event date (e.g. Oregon, Texas) leave this `\"\"` rather than filling it with a different fact. ★ BREAKING 2026-08-04 — was `MM-DD-YYYY` on 100% of its populated values.\n",
            "example": "2012-01-09"
          },
          "professionalLicenses": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Professional / occupational licences the registrant holds, as free text exactly as the state prints them. Prose, not a structured licence table — do not parse. `[]` means the registry lists none for this person, or does not publish the section. ★ EXPANDED 2026-08-09: **Utah** (`Professional Licenses` tab — type, and often an expiry, e.g. `CDL Class A - Expires: 04-13-2030`) and **Hawaii** (`License Type` — the occupation alone, e.g. `PHYSICIAN`, `REAL ESTATE SALESPERSON`, `ELECTRICIAN JOURNEYMAN INDUSTRIAL`; no number and no expiry is published, so none is reported).\n",
            "example": [
              "Barber"
            ]
          },
          "shoeSize": {
            "type": "string",
            "example": "10½",
            "description": "Shoe size as Texas DPS records it, in the physical-description block beside height, weight, hair and eye colour. **Texas only** — `\"\"` on every other jurisdiction, always, so an empty string here cannot be read as \"this person has no shoe size on file\" outside TX. A STRING, not a number: half sizes use the `½` character (`\"09½\"`) and leading zeros are kept as published. DPS's explicit `UNKNOWN` literal is normalised to `\"\"`. Fill: 72,289 of 107,939 present Texas registrants (67.0%), from the twice-weekly bulk export, so there is no detail-fetch lag.\n"
          },
          "build": {
            "type": "string",
            "example": "Large",
            "description": "Body build as the registry prints it, in the physical-description block beside skin tone, hair and eye colour. **Minnesota only**, and within Minnesota only its DOC community-notification cohort — 381 of 1,450 present Minnesota records (26.3%; 88.4% of that cohort's 431). The BCA non-compliant cohort served under the same `MN` code publishes no build at all. FREE TEXT, not an enum: the live vocabulary measured over the whole cohort on 2026-08-04 is Medium 209, Large 77, Stocky 27, Slender 25, Small 22, Husky 13, Lean 7, Muscular 1. Minnesota's own `Unknown` literal is normalised to `\"\"`. An empty string means \"this registry does not publish a build\" — never \"average build\".\n"
          },
          "shoeWidth": {
            "type": "string",
            "example": "D",
            "description": "Shoe width as Texas DPS records it — a US last code (`D`, `EEE`, `B`), not a measurement. **Texas only**, same empty-string caveat and same `UNKNOWN` normalisation as `shoeSize`. NOTE: `\"\"` on 100% of records until the next Texas bulk drop — the reader landed 2026-08-04 and no export has been ingested since.\n"
          }
        }
      },
      "Record": {
        "type": "object",
        "description": "One normalized offender record (offenders.io-parity superset + our extensions).\n\n**Every key is always present — we never omit a key.** Read the empty values carefully, because they mean different things:\n\n* `\"\"` on a string field means **the source registry does not publish that field for this record**. Registries differ enormously (Maine publishes no sex/race/height at all). This is a property of the source, not a transient gap on our side.\n* `null` on `dob` means the registry publishes no date of birth — check `age`, since many portals publish age only.\n* `null` on `flags.absconder` / `flags.predator` means **unknown / not published**. It is NOT the same as `false`, which means the registry affirmatively says the person is not an absconder/predator.\n* `null` on `matchedName` means your query supplied no name; `null` on `matchState` means your query supplied no `dob` or `age`.\n* `stateData` is populated by default. A `null` there means the registry publishes none of it — unless the request sent `exclude: [\"stateData\"]`, in which case the response's top-level `omittedFields` says so (`[\"stateData\"]` vs `[]`). `offenses` and `images` are NOT omitted — both come back on every response, so `[]` there is a fact about the registrant.\n",
        "properties": {
          "recordId": {
            "type": "string",
            "description": "Our id for THIS RESULT, `rec_` + 20 hex. Use it with `GET /v1/records/{recordId}`, and cite it when you mean a specific result: a dispute, a report, a line in an audit file.\n*** NOT THE KEY FOR A PERSON — that is `personRef`. *** recordId is derived from the MERGE: when one person is found in several registries those rows merge and one WINS, and recordId (like uuid) describes the winner. Which row wins depends on which registries were in YOUR search, so narrowing the scope changes the id for the same human with nothing else changed. A synthetic example — Jordan Rivera, dob 1988-04-12, registered in TX and SC: a search of every US registry -> rec_6d066763131ebe8c77ea (uuid 07428710); jurisdictions:[\"SC\"] -> rec_b0b4abc2433b71400670 (uuid 583650). One person, two ids, no defect — and the SC entry of `sources[]` carries the same `personRef` both times.\nCONSEQUENCE: collecting ids from state-scoped queries and then checking them against a result from a wider scope reports a correct merge as a MISSING RECORD. Compare results as PEOPLE — `personRef` with its `jurisdiction` — never as recordId sets across different scopes.\nDETERMINISTIC WITHIN ONE SCOPE: re-run the same request and you get the same ids. Store the scope with the id.\nA registry identifier the registry has since replaced still resolves on `GET /v1/records/{recordId}` to the person's current record.\nBREAKING 2026-08-04: the jurisdiction was added, so every recordId for a record carrying a uuid changed once. It previously hashed the uuid ALONE, which collapsed registrants that different registries had given the same id onto ONE recordId - source id 20059 returned rec_a82c17793c3bd390eef1 for both a Pennsylvania and a Wisconsin registrant. 147,624 records were affected. Stored ids from before that date will not match; re-key.\n",
            "example": "rec_ab12cd34ef56gh78ij90"
          },
          "personRef": {
            "type": "string",
            "description": "The person behind this listing within the registry named in `source`: `prs_` + 20 hex. It stays the same when that registry republishes the listing under a new number, and it does not depend on the query scope, so it is THE identifier to store to recognise the same person next time. Each `sources[]` entry carries its own `personRef`; this one belongs to `source`. Scoped to one registry: the same human on two registries has two.\n",
            "example": "prs_3c9e1f0a7b2d4e6f8a1b"
          },
          "uuid": {
            "type": "string",
            "description": "The REGISTRY's own id for the listing, verbatim; \"\" (18%) when that registry publishes none. Unique only WITH its jurisdiction — 55,893 ids are shared across jurisdictions (147,624 records), so `20059` is a Florida, a Pennsylvania AND a Wisconsin registrant. Registries also RE-ISSUE ids in bulk: when that happens the listing carries the new value, the old one still resolves on `GET /v1/records/{recordId}`, and `personRef` does not change. Treat a stored `uuid` as a cache to refresh, not as a primary key.\nIt is the PRIMARY registry's id for the assembled record, so like recordId it changes when the registries covered by your search change. Neither is the identifier to store for a person — `personRef` is.\n",
            "example": "IL:X24A0926"
          },
          "recordType": {
            "type": "string",
            "enum": [
              "sex_offender"
            ],
            "default": "sex_offender"
          },
          "matchConfidence": {
            "type": "number",
            "nullable": true,
            "description": "OUR relevance score for this match (offenders.io has none). Null when unscored. CAPPED by how the name matched, so a widened match is never reported as certainty: exact on the registered name = no cap; nickname <= 0.75; prefix / fuzzy / middle name / no first name published <= 0.60; alias-only <= 0.55. The cap is lifted only when you supplied a `dob` and the record's full DOB matched it. A partial-name hit is a CANDIDATE match, never identity verification.\n",
            "example": 0.92
          },
          "matchBasis": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Why the record is in the result set, PER FIELD, so a widened search is never silent. Name tokens are `<field>:<how>`: `lastName:exact` / `firstName:exact` (the field equals what you sent), `lastName:prefix` / `firstName:prefix` (the field STARTS WITH what you sent), `firstName:nickname` (a nickname equivalence, e.g. bob -> Robert), `lastName:fuzzy` / `firstName:fuzzy` (spelling variant or typo), `firstName:middle` (the given name you sent is the person's MIDDLE name, matched as a whole token of the registered legal name), `firstName:absent` (the record publishes no first name, so it could not be disproved — kept and flagged), and `alias:exact` / `alias:prefix` (an ALIAS matched, not the registered name). Also carries the legacy `lastName`/ `firstName`/`dob` tokens for which identity fields the record itself provides, plus `name_match`, `alias_match`, `middle_name_match`, or `unverified_no_dob_or_age`. Example: `[\"lastName:prefix\",\"firstName:nickname\",\"name_match\"]`.\n**Parsing note — this array mixes two vocabularies.** The bare `lastName` / `firstName` / `dob` tokens describe which identity fields the RECORD populates; they do NOT mean that field matched your query and they appear even when you did not search on it (a record can carry the `dob` token on a search with no `dob`). To read match quality reliably, use only the tokens containing a colon, plus `name_match`, `alias_match` and `unverified_no_dob_or_age`.\n**Prefer `matchDetail`**, which is this same information already split into its separate vocabularies.\n",
            "example": [
              "lastName:exact",
              "firstName:exact",
              "dob",
              "name_match"
            ]
          },
          "matchDetail": {
            "type": "object",
            "description": "The UNMIXED reading of `matchBasis` — the same information, already split into the three separate things that array encodes, so you never have to know which token shape means what. Always present. `matchBasis` is left byte-for-byte unchanged for existing integrations; NEW CODE SHOULD READ THIS FIELD.\n\nCaution on `strategies.lastName: \"exact\"` — it means the queried surname equalled the record's surname OR one TOKEN of a compound/hyphenated surname (\"Hamilton-Smith\" matches a \"Smith\" query, uncapped). It is not a guarantee of string equality; whole-surname matches simply sort first.\n",
            "properties": {
              "strategies": {
                "type": "object",
                "additionalProperties": {
                  "type": "string",
                  "enum": [
                    "exact",
                    "nickname",
                    "initial",
                    "prefix",
                    "fuzzy",
                    "middle",
                    "absent"
                  ]
                },
                "description": "HOW each field matched, as `{field: strategy}`. The three possible keys are `lastName`, `firstName` and `alias`; `alias` is present ONLY when an alias rather than the registered name produced the hit.\n\nThe strategy vocabulary is CLOSED — these seven values are all that can appear, and an unrecognised engine token would surface under `other` instead. Listed strongest first, with the ceiling each imposes on `matchConfidence` and the fields it can appear on:\n\n* `exact` (rank 1, no cap) — the field equals your value, or equals one\n  token of a compound surname. On `lastName`, `firstName`, `alias`. On\n  in every `match` mode and cannot be disabled.\n\n* `nickname` (rank 2, <= 0.75) — a known given-name equivalence\n  (bob -> Robert). **`firstName` only**: there is no surname nickname\n  table, and requesting one on `lastName` is a 422.\n\n* `initial` (rank 2, <= 0.60) — a single letter against a full given\n  name (J -> John), either direction. `firstName` only.\n\n* `prefix` (rank 3, <= 0.60) — the field STARTS WITH your value,\n  minimum 3 characters. On `lastName`, `firstName`, `alias`.\n\n* `fuzzy` (rank 4, <= 0.60) — spelling variant or typo within a\n  length-scaled edit-distance budget. On `lastName`, `firstName`,\n  `alias`.\n\n* `middle` (rank 5, <= 0.60) — the given name you sent is the\n  person's MIDDLE name, matched as a whole token of the registered\n  legal name (minimum 2 characters; never prefixed, never fuzzy, and\n  an initial is not a name in either direction). `firstName` only.\n  `matchedNameType` stays `\"legal\"` — a middle name IS part of the\n  registered name — and `signals` additionally carries\n  `matchedMiddleName`. It ranks below every first-name strategy on\n  purpose: some names sit overwhelmingly in the middle slot (`Lee`\n  is 20x commoner there than as a first name), so for those names\n  this arm draws on a much larger pool and a coincidence is\n  correspondingly likelier. Tried only after the registered first\n  name and every alias have failed, so a stronger basis is always the\n  one reported.\n\n* `absent` (rank 6, <= 0.60) — the record publishes NO first name, so\n  your query could not be disproved; the record is kept and flagged,\n  never confirmed. `firstName` only.\n\n\nBy `match` preset: `strict` enables `exact` alone (and aliases are off). `balanced` adds `nickname`, `initial`, `prefix`, `fuzzy` and `middle` on `firstName` only. `broad` additionally allows `prefix` and `fuzzy` on `lastName`. `absent` can occur in any mode. `initial` and `absent` are engine behaviours and cannot be named in `nameMatch`, which accepts `exact`/`prefix`/`nickname`/`fuzzy`/`middle` on `firstName` and `exact`/`prefix`/`fuzzy` on `lastName`.\n\nRank is the ordering contract, not a score: results sort by surname rank then given-name rank, and legal-name hits sort before alias-only hits. An alias-only hit caps confidence at 0.55, the lowest value the engine produces. Every cap is lifted only when you supplied a `dob` and the record's full date of birth matched it.\n\nFor picking an auto-accept threshold, gate on this object rather than on `matchConfidence` alone (several strategies share one ceiling): auto-accept `exact` on every queried field with `matchedNameType: \"legal\"`; review anything `nickname`, `initial`, `prefix`, `fuzzy` or `middle`; never auto-accept an alias-only hit or `firstName: \"absent\"`. See API-CONTRACT.md section 3.8.\n",
                "example": {
                  "lastName": "exact",
                  "firstName": "nickname"
                }
              },
              "fieldsPresent": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Which identity fields the RECORD carries (`lastName`, `firstName`, `dob`). Pure data completeness — says nothing about your query.\n",
                "example": [
                  "lastName",
                  "firstName",
                  "dob"
                ]
              },
              "signals": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "matchedLegalName",
                    "matchedAlias",
                    "matchedMiddleName",
                    "unverifiable",
                    "linkedByRegistryId"
                  ]
                },
                "description": "Boolean-ish flags about the match as a whole. `linkedByRegistryId` means the record was pulled in through a registry id that links it to a matched record rather than by its own name. `matchedMiddleName` accompanies `strategies.firstName: \"middle\"` and is repeated here so a caller who screens on `signals` alone still sees that the given name matched the person's middle name rather than their first.\n"
              },
              "matchedNameType": {
                "type": "string",
                "nullable": true,
                "enum": [
                  "legal",
                  "alias"
                ],
                "description": "Whether the registered legal name or an alias produced the hit. Null when no name was queried."
              },
              "verification": {
                "type": "string",
                "nullable": true,
                "description": "The raw `dobVerification` token, or null when no dob/age was queried.",
                "example": "dob_match"
              },
              "other": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Present ONLY if the engine emitted a token this mapping does not recognise, so a new token can never silently vanish. Normally absent.\n",
                "example": []
              }
            }
          },
          "matchedName": {
            "type": "object",
            "nullable": true,
            "description": "WHICH name matched your query, and whether it was the registered legal name or an alias. null when the query supplied no name. Read this alongside matchBasis so an alias or partial-name hit is never mistaken for a registered-name match.\n",
            "properties": {
              "value": {
                "type": "string",
                "description": "The literal name string that matched.",
                "example": "Jordan Lee Rivera"
              },
              "type": {
                "type": "string",
                "enum": [
                  "legal",
                  "alias"
                ],
                "description": "legal = the registered name; alias = one of the record's aliases."
              }
            }
          },
          "name": {
            "$ref": "#/components/schemas/Name"
          },
          "aliases": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Known aliases as the registry publishes them (flat strings, mixed shapes — \"SURNAME, GIVEN\" and \"Given Surname\" both occur; do not parse positionally). IMPORTANT: [] is TWO different facts and this response cannot tell them apart — either the registry publishes no alias field, or it does and this person has none on file. 69% of records carry at least one, but the rate is a property of the source: KY 99%, AK/NE 89%, ID 46%, SD 44%, and WV 2% because the WV registry has no alias field at all and the only names it publishes sit inside the offence narrative. Per-jurisdiction detail in docs/FIELD-DICTIONARY.md section 5.\n",
            "example": [
              "RIVERA, JORDAN",
              "Jordy Rivera"
            ]
          },
          "nicknames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "OUTPUT-ONLY. First-name nickname/variant expansion, computed at serialize-time from `name.first` for name-search recall (parity with offenders.io `firstName_nicknames`; e.g. \"Jonathan\" -> [\"john\",\"nathan\"]). Computed at serialize-time and never populated from source data. Empty when nothing was expanded.\n",
            "readOnly": true,
            "example": [
              "john",
              "johnny",
              "jack"
            ]
          },
          "dob": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "description": "Date of birth — **a full ISO-8601 `YYYY-MM-DD` date, or `null`. Never anything else.** If this field has a value, a registry printed a complete date; you can hand it straight to a date parser.\n\n* `\"1964-08-13\"` — a full date the registry printed. `dobPrecision: exact`.\n* `null` — no full date was published. **The record may still tell you a\n  great deal about when this person was born:** read `birthYear` (present\n  whenever the year is known) and `age` (published by many registries that\n  publish no date at all). `dobPrecision` says which.\n\n\n★ **You never have to compensate for a null here when you search.** A `dob` you send is matched against every kind of birth evidence we hold, not just against this field — see `matchState` for the four outcomes and exactly how strong each one is. A registrant we know only as \"born 1976\", or only as \"aged 47 when we read the page\", is still returned by a search for a full date consistent with that, and is labelled so you can see the birthday was not confirmed.\n\n★ **We never publish a month or a day a registry did not print.** A year-only registrant has no month and no day at any layer of our system, so this field can never hand you a fabricated New Year's Day that is byte-identical to a real one.\n\n**Comparing us against another vendor on this field?** Read `dobPrecision` on both sides or the comparison is meaningless — a vendor that pads a birth year to January 1st and reports it as an exact date will appear to have a date of birth for people whose birthday nobody knows.\n",
            "example": "1988-04-12"
          },
          "birthYear": {
            "type": "integer",
            "nullable": true,
            "minimum": 1900,
            "maximum": 2100,
            "example": 1988,
            "description": "The registrant's **year of birth, whenever we know it — by any route.** Populated both when a registry published only a birth year and when it published a full date (in which case this is that date's year), so year logic reads one field and never has to branch on what a particular registry happens to publish.\n\n`dobPrecision` — not this field — tells you which of those two it was: `year` means a registry published the year itself and no more; `exact` means we read it off the full date in `dob`.\n\n**It is never derived from `age`.** An age is not a date: converting one into a birth year bakes in the moment we read the page and is wrong the day after the person's next birthday. So an age-only record has `birthYear: null` — and is still reachable by a `dob` search, because that widening happens when we MATCH your query rather than in what we publish as fact. See `matchState: age_match`.\n\n`null` means we do not know the year.\n"
          },
          "dobPrecision": {
            "type": "string",
            "enum": [
              "exact",
              "year",
              "year_month",
              "unknown"
            ],
            "description": "How much of `dob` the REGISTRY actually published — the authoritative reading of that field, and the only thing that can distinguish a real 1 January birthday from a year-only record.\n\n* `exact` — a registry published a full date. `dob` is `YYYY-MM-DD` and\n  `birthYear` is that date's year. A search for that date reports\n  `matchState: dob_match`.\n\n* `year` — a registry published a birth year and nothing more. `dob` is\n  `null`, `birthYear` holds the year. A search for **any** date inside\n  that year still reaches the record, reported as\n  `matchState: year_match` — never `dob_match`, because a year cannot\n  confirm a birthday.\n\n* `year_month` — defined for completeness; no source currently uses it.\n* `unknown` — no birth date and no birth year on file. `dob` and\n  `birthYear` are both `null`. **Read `age`**, which several registries\n  publish instead of a date; a search carrying a `dob` still reaches\n  those records when the published age is consistent with it\n  (`matchState: age_match`).\n\n\nA genuine 1 January birthday is served as `exact`, like any other date, and is not affected by anything above — `dobPrecision` is the only thing that can distinguish it from a year-only record, which is why it is authoritative rather than decorative.\n\n**A merge can IMPROVE this value.** One record may combine several registries' entries for the same person (see `sources`). Where a year-only registry and a full-DOB registry both hold that person and agree on the year, the record carries the **full date** at `exact` — the better source wins. The same person can therefore be `year` under a registry-scoped query and `exact` on a search of every US registry. We never publish a year for a date we hold, and we never invent a date to replace a year; if two sources disagree on the birth year the record keeps its own rather than blending them.\n"
          },
          "age": {
            "type": "string",
            "description": "Age as published (a string, `\"\"` when none); captured especially when DOB is unavailable. Note the request field `Query.age` is an integer — a typed client needs two types.",
            "example": "38"
          },
          "sex": {
            "type": "string",
            "description": "Free text, registry vocabulary, NOT an enum. \"\" when we hold nothing. \"Male\" and \"M\" (and \"F\"/\"Female\") occur in the SAME response when a search spans registries — normalize before grouping. MAINE and the DISTRICT OF COLUMBIA are a special case worth knowing: neither registry's own website publishes a sex anywhere, yet their records carry one in an \"M\"/\"F\"/\"U\" vocabulary rather than the registry's own words. Fill measured 2026-08-04: ME 99.7% (2,880 of 2,888), DC 97.2% (1,028 of 1,058); the residue is left empty rather than guessed.\n",
            "example": "Male"
          },
          "race": {
            "type": "string",
            "description": "Free text, registry vocabulary, NOT an enum. \"\" when unknown. IMPORTANT: several registries (California among them) publish ONE column covering race and ethnicity; we route Hispanic values to `ethnicity` and everything else to `race`, so for those states the two keys are MUTUALLY EXCLUSIVE and reading `race` alone drops every Hispanic registrant. California measured 2026-08-04: race 51%, ethnicity 48%, either 99.4%. Compute coverage on (race || ethnicity). ME and DC publish NO race on any surface they render (checked live 2026-08-04 on both of Maine's profile renderings, and on DC's ArcGIS layer, roster and CSOSA bulletin) and their federal feeds carry none either, so \"\" is final there, and there is no ethnicity to fall back to. A record held only by the national index carries no race, ethnicity, height, weight, eyeColor, hairColor or marks, whichever of its 158 member jurisdictions the person is registered in. A person held by BOTH a state registry and the national index is returned as ONE record carrying the STATE registry's physical description, with both registries listed in `sources[]`; a person only the national index reaches carries \"\" for these keys. Tribal registrants are read from the tribe's own per-registrant page and carry them normally.\n",
            "example": "White"
          },
          "ethnicity": {
            "type": "string",
            "description": "Free text. \"\" is the common case (67%). Observed values include \"Hispanic\", \"Non-Hispanic\", \"Not Hispanic\", \"Unknown\" — normalize before grouping. See `race` for the single-column registries.\n",
            "example": "Hispanic"
          },
          "height": {
            "type": "string",
            "example": "5'11\""
          },
          "weight": {
            "type": "string",
            "example": "185 lbs"
          },
          "eyeColor": {
            "type": "string",
            "example": "Brown"
          },
          "hairColor": {
            "type": "string",
            "example": "Black"
          },
          "marks": {
            "type": "string",
            "description": "Scars, marks and tattoos as recorded by the registry — free text, no vocabulary, no fixed separator; can run to several hundred characters. IMPORTANT: \"\" is TWO different facts and this response cannot tell them apart — either the registry publishes no such field at all, or it does and this person has none on file. It is NOT evidence that a person has no tattoos. Verified NOT PUBLISHED by KY, NE, WV, ID, SD, AK, TX, IL, VA, GA, MA and the national index; published by ~28 other states, each at its own rate. See `race` for how the national index and a state registry combine into one record. Per-jurisdiction detail, and how each was verified, in docs/FIELD-DICTIONARY.md section 6.5.\n",
            "example": "Tattooed Arm, left upper; Scar on Chest; Pierced ear, left"
          },
          "addresses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Address"
            },
            "example": [
              {
                "type": "residence",
                "line1": "4120 Elm St",
                "city": "Chicago",
                "county": "Cook",
                "state": "IL",
                "zipcode": "60614",
                "lat": 41.9241,
                "lng": -87.6512
              }
            ]
          },
          "registrationState": {
            "type": "string",
            "readOnly": true,
            "description": "WHICH REGISTRY holds this record — the registering state or territory, NOT where the person lives. Always present; `\"\"` when the registry is not a state (see below). The value is in exactly the vocabulary `query.state` accepts, so you can send it straight back as a filter and find this record again.\n\n★ `registrationState` and `addressStates` are deliberately two fields, and neither is called `state`. They disagree often: of the 846,485 records held by a two-letter state registry (2026-08-04), 105,028 (12.4%) have NO address in the registering state — they are registered there and living elsewhere — and a further 8,564 carry both a home-state and an out-of-state address. 36,525 of Florida's 92,690 registrants have no Florida address on file. A single `state` key would answer one of those two questions and be read as the other.\n\n`\"\"` on 35,153 records (2.34%): 29,097 national-index records that name no member registry, and every record of the `TRIBAL` registry (5,980 present, spread over 98 tribal registries — re-verified 2026-08-05). A tribe is its own registering authority and is not a state; we do not map one to the other because we have not verified that containment, and a wrong verdict of that kind is worse than an honest blank because nobody re-examines it.\n\n★ THE BLANK WITHHOLDS NOTHING, and that is why it is the right answer. The registering authority is published per record on `sources[].registryName` (\"Cherokee Nation Sex Offender Registry\", \"Navajo Nation Sex Offender Registry\", …) and `sources[].recordUrl` — finer than a state code would have been — `addressStates` still says where the person lives, and `source.jurisdiction` is populated on 100% of records (it is the literal string `TRIBAL` for these; send `jurisdictions: [\"TRIBAL\"]` to scope to them).\n",
            "example": "IL"
          },
          "addressStates": {
            "type": "array",
            "readOnly": true,
            "items": {
              "type": "string"
            },
            "description": "Every DISTINCT state appearing in `addresses[]`, first-seen order, no duplicates. Always present; never null.\n\nThe plural is load-bearing. 23,058 records carry addresses in two or more states (22,626 in two, 432 in three or more), because residence, employment and school addresses are published independently and need not agree. This array does not say which is which — read `addresses[]` and its `type` for that. Treating `addressStates[0]` as \"where they live\" is the mistake this field exists to prevent.\n\n`[]` means NO address on file carries a state — 70,973 records (4.72%). It does NOT mean the person has no address, and it does NOT mean we did not look: it means the registry published no parseable state. Those records are still returned by `state=XX` when `registrationState` matches, which is the only thing that reaches them.\n\nValues are canonicalised to the `query.state` vocabulary, but a token we do not recognise is passed through upper-cased rather than dropped, because registries publish real non-state codes here — Florida writes `YY` for out-of-country on 5,005 addresses.\n",
            "example": [
              "IL"
            ]
          },
          "offense": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Offense"
              }
            ],
            "description": "Primary/first offense (always present)."
          },
          "offenses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Offense"
            },
            "description": "Every offense, the primary one first — the same object as `offense`, which is `offenses[0]`. Always returned; `include` is NOT required. (It was until 2026-08-14, and an empty array beside a populated `offense` read as a positive \"no convictions\" for registrants with several.)\n",
            "example": [
              {
                "crime": "AGGRAVATED CRIMINAL SEXUAL ABUSE",
                "statute": "720 ILCS 5/11-1.60",
                "riskLevel": "Tier 3",
                "tier": "Tier 3",
                "convictionDate": "2011-06-02",
                "offenseDate": "2010-11-19",
                "registrationDate": "2012-01-09",
                "releaseDate": "2011-12-20",
                "datePrecision": {
                  "convictionDate": "exact",
                  "offenseDate": "exact",
                  "registrationDate": "exact",
                  "releaseDate": "exact"
                },
                "datesAsPublished": {
                  "convictionDate": "06/02/2011"
                },
                "caseNumber": "11CR0421",
                "victimAge": "14",
                "victimSex": "Female",
                "jurisdiction": "IL",
                "convictionCounty": "Cook",
                "convictionCity": "Chicago",
                "convictionCount": "1",
                "federal": false
              }
            ]
          },
          "stateData": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/StateData"
              },
              {
                "type": "null"
              }
            ],
            "description": "Extensive per-state detail, populated on every record by default (since 2026-10-25). `null` only when the request sent `exclude: [\"stateData\"]` — then `omittedFields` names it — or when the registry publishes none of it.\n"
          },
          "flags": {
            "type": "object",
            "description": "Registry flags. `null` means the registry does not publish the flag (UNKNOWN) — it is not equivalent to `false`, which means the registry affirmatively reports the person is not flagged.\n",
            "properties": {
              "absconder": {
                "type": "boolean",
                "nullable": true,
                "example": false
              },
              "predator": {
                "type": "boolean",
                "nullable": true,
                "example": false
              }
            }
          },
          "housingStatus": {
            "type": "string",
            "nullable": true,
            "enum": [
              "homeless",
              "incarcerated",
              "housed"
            ],
            "description": "Normalised housing status for the registrant, derived from whichever field the source registry uses to state it — registries express this in different places and different words, and this field answers the question the same way for all of them.\n\n`null` means the registry does not publish a housing status. It does NOT mean the person is housed: only an affirmative statement from the registry produces `housed`.\n",
            "example": "housed"
          },
          "images": {
            "type": "array",
            "description": "Photo URLs. Always returned — `include` is NOT required (it was until 2026-08-04). A photo we host (`https://photos.offendersearch.app/v1/media/…`) comes signed: the `exp` and `sig` on the end let it load in a plain `<img>` tag with no API key, for at least 7 days and any number of loads. Use the url exactly as returned. After it expires, search again for a fresh link, or fetch the bare url with your `X-API-Key`.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "format": "uri",
                  "example": "https://photos.offendersearch.app/v1/media/CA/rec_ab12cd34ef56gh78ij90.jpg?exp=1793750400&sig=jKjI6ZTXwG4oOHG3ZHmN45UN"
                }
              }
            },
            "example": [
              {
                "url": "https://photos.offendersearch.app/v1/media/CA/rec_ab12cd34ef56gh78ij90.jpg?exp=1793750400&sig=jKjI6ZTXwG4oOHG3ZHmN45UN"
              }
            ]
          },
          "source": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SourceRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "The PRIMARY source only - the registry whose copy won the merge. A record that spans three registries still has exactly one `source`. To learn every registry a person is on, read `sources[]`, not this.\n"
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SourceRef"
            },
            "description": "EVERY registry this person appears on, one entry per registry, each with that registry's jurisdiction, name and record URL. A registry that publishes several rows for one person contributes a single entry. Observed: 63% one source, 36% two, 1% three. Two or more distinct registries add +0.10 to matchConfidence. `source` is the PRIMARY registry only - read `sources[]` when the question is which registries a person appears on.\nTHE REGISTRY IS `registryName`. `jurisdiction` is where the person is REGISTERED, so a state registry and the national index's listing of the same registrant share it - a record can carry \"SC\" twice, once per registry. Count registries by registryName; no `jurisdiction` value names the national index.\n`sources[]` reflects the registries your search covered: a search of every US registry returns the person's full registry list, a state-scoped search returns that state's entry. This is also why recordId differs between the two — and why each entry carries its own `personRef`, which does not.\nrecordUrl: on FL, CA, GA, MO and OR it is a registry-wide page rather than the registrant's own; on OK, ME, VA and AZ it is per-registrant for most records; some IL records carry none. Everywhere else it is the registrant's page and is the link to verify against.\nTwo registry listings become ONE record when the registry's own identifier links them (matchDetail.signals: [\"linkedByRegistryId\"]) or when both carry a full published date of birth that agrees along with the name. They stay separate otherwise - including when the only thing they share is a name and a birth YEAR, since two different registrants can share one. So a registrant known only by birth year, held by two registries with no matching identifier, appears once per registry. Deduplicate on name + birth year + address if you need a single row.\n",
            "example": [
              {
                "jurisdiction": "IL",
                "registryName": "Illinois Sex Offender Registry",
                "recordUrl": "https://…/registrant/X24A0926",
                "personRef": "prs_3c9e1f0a7b2d4e6f8a1b",
                "recordedAt": "2026-01-15T06:12:40+00:00",
                "lastCheckedAt": "2026-10-24T05:03:12+00:00",
                "sourceUpdatedAt": "2026-09-30T00:00:00+00:00"
              }
            ]
          },
          "matchState": {
            "type": "string",
            "nullable": true,
            "enum": [
              "dob_match",
              "year_match",
              "age_match",
              "no_dob_age_year",
              "age_mismatch",
              "dob_near_match",
              "dob_mismatch",
              null
            ],
            "description": "**How this record matched the `dob` (or `age`) you sent — the complete list of strategies, in descending order of strength.** Read this field, not `dobVerification`, which carries the raw token for backward-compat.\n\n★ **THE THING TO UNDERSTAND ABOUT A `name + dob` SEARCH:** registries do not all publish a date of birth. Some publish a birth year, some publish only an age, some publish neither. **A `dob` you send is matched against all of them**, so one query reaches every kind of record, and this field tells you exactly how strong the evidence was in each case. Nothing is widened silently: a weaker match is always labelled as one.\n\n* `dob_match` — the record holds a **full date of birth** and it equals\n  the date you sent. The strongest state. `dobPrecision: exact`.\n\n* `year_match` — the record holds a **birth year only**, and the date you\n  sent falls inside that year. The year agrees; the birthday was never\n  published and is therefore **not confirmed**. `dobPrecision: year`,\n  `birthYear` set, `dob` null.\n\n* `age_match` — the record holds **no birth date at all, but a published\n  age**, and that age is consistent with the date you sent. Because the\n  registry did not publish a birthday, an age is consistent with **two**\n  birth years (the person may or may not have had their birthday when the\n  page was published), and **both are accepted** — so this state is\n  approximately a two-year window around the date you asked for, not a\n  confirmation of it. `dobPrecision: unknown`, `birthYear` null, `age` set.\n\n* `no_dob_age_year` — the record has **no date, no year and no age**:\n  there was nothing to check your date against. It is returned anyway,\n  because the NAME matched (see `matchBasis`) and an absence of evidence\n  cannot rule the person out — but nothing about the birth date has been\n  verified. `unverified` is `true` on these.\n\n* `age_mismatch` — the record matched on NAME, publishes only an **age**,\n  and that age **contradicts** the date you sent. Returned ONLY when you\n  ask for it with `onAgeMismatch: \"flag\"`; by default such a record is\n  dropped. Always `unverified` — it came back on the name, and it can\n  never be reported as a confirmed identification. Use it when you would\n  rather see a contradiction and judge it than have it silently omitted.\n\n* `dob_near_match` — you sent `dobTolerance`, and the record’s **full** birth\n  date is a likely typo of yours: the year off by up to `dobTolerance`, or\n  the day and month swapped. Returned instead of dropped, always\n  `unverified`; `matchBasis` says how it differed (`dob:near:year+1`).\n\n* `dob_mismatch` — the record HAD a date, a year or an age, and it\n  **conflicted** with what you sent. These are **filtered out** of\n  `records`; the value is documented so you know a true conflict is\n  excluded rather than shown.\n\n* `null` — your query carried no `dob` and no `age`, so there was nothing\n  to match on.\n\n\n**If you only want confirmed birthdays, keep `dob_match`.** If you are screening and a missed person is the expensive error, keep `year_match`, `age_match` and `no_dob_age_year` too — that is what they are for, and it is why they are separate values rather than one \"matched\" flag.\n"
          },
          "dobVerification": {
            "type": "string",
            "enum": [
              "",
              "dob_match",
              "year_match",
              "age_match",
              "unverified_no_dob_or_age",
              "dob_mismatch(filtered)",
              "age_mismatch(filtered)",
              "age_mismatch(flagged)",
              "dob_near_match"
            ],
            "description": "The engine's raw DOB/age verification token — read `matchState` instead, which is the clean vocabulary (`dob_match`, `year_match`, `age_match`, `no_dob_age_year`, `age_mismatch`, `dob_mismatch`, or `null` when nothing was scored). The `(filtered)` tokens surface only where the contract exposes rejected candidates. DOB/age match-state vs. the query (Goal 5). Meanings: `dob_match` = record's full DOB equals the query DOB; `year_match` = record is year-only (dobPrecision=year) and the year equals the query DOB's year; `age_match` = matched on age (±1yr) when no full DOB was available; `no_dob_age_year` = record had no DOB, age, or year to check against; `dob_mismatch` = the record had a DOB/age that did NOT match (such records are filtered out of `records`, so this surfaces only where the contract exposes rejected candidates); `unverified_no_dob_or_age` = kept-but-flagged, nothing to verify; `\"\"` = no DOB/age filter was supplied. ★ **CORRECTED 2026-08-06.** This field previously carried a note saying `year_match` and `no_dob_age_year` were \"RESERVED\" and not emitted. They are emitted, and have been for some time — a year-only record answers `year_match` and a record with nothing to verify answers `unverified_no_dob_or_age` (published as `no_dob_age_year` on `matchState`). Branch on `matchState`, whose vocabulary is the clean one.\n",
            "example": "dob_match"
          },
          "unverified": {
            "type": "boolean",
            "description": "True when the record had NO DOB and NO age to verify against — shown anyway, flagged.",
            "example": false
          },
          "liveResult": {
            "type": "string",
            "enum": [
              "confirmed_live",
              "not_found_live",
              "not_checked"
            ],
            "description": "Present ONLY on a search that ran live checks (a `live` block); absent on a cached search. What this search's live check said about this record: `confirmed_live` = the live answer carried it (it is the live copy); `not_found_live` = its registry was checked live in this search, the check completed, and the answer did NOT include it — the record is still returned, from our records, and the response's `warnings[]` carries a `NOT FOUND IN LIVE CHECK:` sentence. It may have been sealed, expunged, or fall outside what the registry's live search returns; `not_checked` = its registry was not checked live in this search, or its check could not complete.\n",
            "example": "confirmed_live"
          },
          "clearance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordClearance"
              }
            ],
            "description": "The clearance that names this person, present only when the request carried `subjectId` and this record was kept despite — or because of — a verdict: `annotate` mode, a `this_person` verdict, or a cleared person who has re-surfaced (`stale: true`). Absent on every other record.\n"
          }
        }
      },
      "ClearanceCreate": {
        "type": "object",
        "description": "The `POST /v1/clearances` body: which person (`personRef`), from which search (`searchId`), is or is not which subject (`subjectId`, and `clientId` for a platform serving many facilities).\n",
        "additionalProperties": false,
        "required": [
          "subjectId",
          "personRef",
          "searchId",
          "verdict"
        ],
        "properties": {
          "product": {
            "type": "string",
            "enum": [
              "sex_offender",
              "criminal"
            ],
            "default": "sex_offender",
            "description": "The dataset the verdict belongs to: `sex_offender` for a person returned by `POST /v1/search` or `POST /v1/batch`, `criminal` for one returned by `POST /v1/criminal/search`. A criminal `personRef` is scoped to one source, so a criminal clearance clears that source's records for the person.\n"
          },
          "subjectId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "description": "Your id for the person being screened. The same value you will send on later searches for them. Stored only as a per-account hash.\n",
            "example": "resident-48213"
          },
          "clientId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "description": "Your facility, tenant or client id, when you screen for more than one. A clearance recorded with a `clientId` applies only to searches that send the same one. Stored only as a per-account hash.\n",
            "example": "facility-07"
          },
          "personRef": {
            "type": "string",
            "minLength": 24,
            "maxLength": 24,
            "description": "The person the verdict is about — the `personRef` the search returned (`prs_` and 20 hex characters). The verdict applies to this person and no one else, never to a name or a date of birth.\n",
            "example": "prs_3c9e1f0a7b2d4e6f8a1b"
          },
          "recordId": {
            "type": "string",
            "maxLength": 64,
            "description": "The `recordId` of the Sex Offender result the reviewer looked at, for the audit trail. Leave it out for a criminal `personRef` — a criminal record has no `recordId` (its `externalId` is not accepted here).",
            "example": "rec_6d066763131ebe8c77ea"
          },
          "searchId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "The search that showed this person. It must be in this account's 14-day history and its stored results must contain `personRef` — otherwise `404 search_not_found` or `409 person_not_in_search`.\n",
            "example": "srch_9f2c1a7b"
          },
          "verdict": {
            "type": "string",
            "enum": [
              "not_this_person",
              "this_person"
            ],
            "description": "`not_this_person` — the returned person is someone else; later searches for the subject suppress (or annotate) them. `this_person` — the returned person IS the subject; later searches keep them and annotate the record so your interface can show the confirmed match.\n"
          },
          "reviewer": {
            "type": "string",
            "maxLength": 120,
            "description": "Who decided, in your own terms — a user id, a desk, a role.",
            "example": "admissions-desk"
          },
          "note": {
            "type": "string",
            "maxLength": 500,
            "description": "Why, in the reviewer's words.",
            "example": "Photo and registry address do not match the resident."
          }
        }
      },
      "Clearance": {
        "type": "object",
        "description": "One verdict: the person behind a `personRef` is, or is not, the subject being screened. Returned by every `/v1/clearances` route. `subjectId` and `clientId` are echoed only on the request that carried them (create and list); on `GET /v1/clearances/{clearanceId}` they are `null`, because only a per-account hash of them is stored.\n",
        "properties": {
          "id": {
            "type": "string",
            "description": "`clr_` followed by an opaque id.",
            "example": "clr_7d2f41c0a9b3e8f6"
          },
          "product": {
            "type": "string",
            "enum": [
              "sex_offender",
              "criminal"
            ]
          },
          "verdict": {
            "type": "string",
            "enum": [
              "not_this_person",
              "this_person"
            ]
          },
          "personRef": {
            "type": "string",
            "description": "The person the verdict is about.",
            "example": "prs_3c9e1f0a7b2d4e6f8a1b"
          },
          "recordId": {
            "type": "string",
            "nullable": true,
            "description": "The result the reviewer looked at, when one was cited.",
            "example": "rec_6d066763131ebe8c77ea"
          },
          "searchId": {
            "type": "string",
            "description": "The search that showed the person.",
            "example": "srch_9f2c1a7b"
          },
          "subjectId": {
            "type": "string",
            "nullable": true,
            "description": "Echoed from the request that carried it; `null` on `GET /v1/clearances/{clearanceId}`.",
            "example": "resident-48213"
          },
          "clientId": {
            "type": "string",
            "nullable": true,
            "description": "Echoed from the request that carried it; `null` when none was sent and on `GET /v1/clearances/{clearanceId}`.",
            "example": "facility-07"
          },
          "reviewer": {
            "type": "string",
            "nullable": true,
            "example": "Casey Nguyen"
          },
          "note": {
            "type": "string",
            "nullable": true,
            "example": "Different middle name and date of birth; the photo is not the applicant."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-21T15:42:07+00:00"
          },
          "revokedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "`null` while the clearance applies; set by `DELETE /v1/clearances/{clearanceId}`.",
            "example": null
          },
          "supersedes": {
            "type": "string",
            "nullable": true,
            "description": "The id of the clearance this one replaced — a second verdict for the same subject, client and `personRef` supersedes the first. `null` for a first verdict.\n",
            "example": null
          }
        }
      },
      "ClearedEntry": {
        "type": "object",
        "description": "One record a `not_this_person` clearance removed from `records[]` for the `subjectId` sent. The `recordId` is the one the record carries in this response's scope.\n",
        "properties": {
          "personRef": {
            "type": "string",
            "description": "The cleared person, as the search identified them.",
            "example": "prs_3c9e1f0a7b2d4e6f8a1b"
          },
          "clearanceId": {
            "type": "string",
            "description": "The clearance that applied. `GET /v1/clearances/{clearanceId}` returns it.",
            "example": "clr_7d2f41c0a9b3e8f6"
          },
          "verdict": {
            "type": "string",
            "enum": [
              "not_this_person"
            ],
            "description": "Always `not_this_person`; a `this_person` verdict never removes a record."
          },
          "clearedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the clearance was recorded.",
            "example": "2026-10-21T15:42:07+00:00"
          },
          "recordId": {
            "type": "string",
            "description": "The `recordId` the suppressed record carries in this response's scope, so you can cite or fetch it.",
            "example": "rec_6d066763131ebe8c77ea"
          }
        }
      },
      "RecordClearance": {
        "type": "object",
        "description": "The clearance that names this record's person, attached to the record when the request carried `subjectId` and the record was kept: in `clearanceMode: \"annotate\"`, on a `this_person` verdict, or because a cleared person has re-surfaced (`stale: true`). A record no clearance names carries no `clearance` key, and a search without `subjectId` never carries one.\n",
        "properties": {
          "clearanceId": {
            "type": "string",
            "example": "clr_7d2f41c0a9b3e8f6"
          },
          "verdict": {
            "type": "string",
            "enum": [
              "not_this_person",
              "this_person"
            ]
          },
          "clearedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the verdict was recorded.",
            "example": "2026-10-21T15:42:07+00:00"
          },
          "stale": {
            "type": "boolean",
            "description": "`true` when this person was cleared as `not_this_person` and is shown anyway, because something about them changed since the clearance or this search matched them more strongly than the search that was cleared. Review the record again and record a new verdict; until you do, the person stays in `records[]`.\n",
            "example": false
          },
          "staleReason": {
            "type": "string",
            "nullable": true,
            "enum": [
              "identity_changed",
              "offenses_changed",
              "status_changed",
              "stronger_match",
              null
            ],
            "description": "Why the person re-surfaced. `identity_changed` — their name or date of birth changed. `offenses_changed` — their offenses changed. `status_changed` — their registration status, tier or absconder/predator flag changed. `stronger_match` — this search matched the person more strongly than the search that was cleared (the subject's date of birth now matches where only the name did). `null` when `stale` is `false`.\n"
          }
        }
      },
      "ProofRequest": {
        "type": "object",
        "description": "Request body for the per-registry look-alike proof add-on (NOT the consolidated verification report — see ReportRequest / `POST /v1/report`). Available to billing-enabled accounts; each rendered document is billed as one PDF (+$0.02). Name the registries and the format — proof is never generated for all sources implicitly.\n",
        "required": [
          "registries"
        ],
        "properties": {
          "registries": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string"
            },
            "description": "Jurisdiction codes to render proof for (e.g. [\"IL\",\"IN\"]). Each renderable one is billed.",
            "example": [
              "IL",
              "IN"
            ]
          },
          "format": {
            "type": "string",
            "enum": [
              "pdf",
              "html"
            ],
            "default": "pdf"
          }
        }
      },
      "ProofBundle": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "none",
              "rendering",
              "ready"
            ],
            "description": "ready=at least one doc rendered; none=nothing billable rendered. `rendering` is reserved and never emitted today (the call is synchronous)."
          },
          "billedDocuments": {
            "type": "integer",
            "description": "Count of proof docs billed on this request.",
            "example": 1
          },
          "documents": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "registry": {
                  "type": "string",
                  "example": "IL"
                },
                "format": {
                  "type": "string",
                  "enum": [
                    "pdf",
                    "html"
                  ]
                },
                "url": {
                  "type": "string",
                  "description": "Fetch via GET /v1/proof-docs/{token}. Empty when the registry has no template yet.",
                  "example": "/v1/proof-docs/pf_3f9a1c7e2b4d6a8c"
                },
                "note": {
                  "type": "string",
                  "description": "Present (e.g. \"no proof template for registry\") when the doc was skipped and not billed.",
                  "example": "no proof template for registry"
                }
              }
            },
            "example": [
              {
                "registry": "IL",
                "format": "pdf",
                "url": "/v1/proof-docs/pf_3f9a1c7e2b4d6a8c",
                "note": ""
              }
            ]
          }
        }
      },
      "SourceInfo": {
        "type": "object",
        "description": "One jurisdiction from the public coverage catalog.",
        "properties": {
          "id": {
            "type": "string",
            "example": "IL"
          },
          "name": {
            "type": "string",
            "example": "Illinois Sex Offender Registry"
          },
          "covers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "State/territory codes this source covers (some sources cover many).",
            "example": [
              "IL"
            ]
          },
          "registries": {
            "type": "integer",
            "example": 1,
            "description": "How many distinct registries this source entry represents — 1 for a state registry; more for an entry that groups several registries (the tribal registries)."
          },
          "scope": {
            "type": "string",
            "enum": [
              "state",
              "national"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "building",
              "live"
            ]
          },
          "legal": {
            "type": "object",
            "properties": {
              "commercialUse": {
                "type": "string",
                "enum": [
                  "allowed",
                  "restricted",
                  "prohibited",
                  "unknown"
                ]
              }
            }
          },
          "health": {
            "type": "object",
            "properties": {
              "lastSuccessAt": {
                "type": "string",
                "format": "date-time",
                "nullable": true,
                "description": "When this registry was last ingested successfully — this registry's currency, live. null if it never has been. This endpoint needs no API key, so it is auditable before purchase.",
                "example": "2026-10-25T04:12:09+00:00"
              },
              "typicalLatencyMs": {
                "type": "integer",
                "nullable": true,
                "description": "p50 latency from local diagnostics. null when not measured on this instance.",
                "example": 180
              },
              "ageSeconds": {
                "type": "number",
                "nullable": true,
                "description": "Age of the current snapshot, in seconds. null = never ingested (unknown, never 'fresh').",
                "example": 5400
              },
              "freshFor": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "daily",
                    "weekly"
                  ]
                },
                "description": "The freshness tiers this registry's current snapshot falls inside — a restatement of `ageSeconds` in tier labels. `[]` = never ingested. NOT A FILTER: a registry contributes its records to a search whatever this says, at every tier. Read it to KNOW a registry's age, not to predict which registries will answer. See API-CONTRACT.md §2.\n"
              }
            }
          }
        }
      },
      "MonitorCreateRequest": {
        "type": "object",
        "description": "The body of `POST /v1/monitors` — one product, one predicate, at least one channel.",
        "required": [
          "product",
          "type"
        ],
        "properties": {
          "product": {
            "type": "string",
            "enum": [
              "sex-offender",
              "criminal"
            ],
            "description": "The dataset this monitor watches."
          },
          "type": {
            "type": "string",
            "enum": [
              "person",
              "location"
            ],
            "description": "The predicate. `person` requires `person`; `location` requires `location`."
          },
          "person": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MonitorPersonCriteria"
              }
            ],
            "nullable": true,
            "example": {
              "firstName": "Jordan",
              "lastName": "Rivera",
              "dob": "1988-04-12"
            }
          },
          "location": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MonitorLocationCriteria"
              }
            ],
            "nullable": true
          },
          "minConfidence": {
            "type": "string",
            "nullable": true,
            "enum": [
              "dob_match",
              "year_match",
              "age_match",
              "name_match",
              "any"
            ],
            "description": "The weakest match strength a person monitor alerts on. Unset (and `any`): `year_match` when `person.dob` is set, `name_match` when it is not.\n"
          },
          "label": {
            "type": "string",
            "nullable": true,
            "description": "Your own name for the monitor, echoed back.",
            "example": "Jordan Rivera — new hire"
          },
          "channels": {
            "$ref": "#/components/schemas/MonitorChannels"
          }
        }
      },
      "MonitorPersonCriteria": {
        "type": "object",
        "description": "Who a person monitor watches.",
        "required": [
          "lastName"
        ],
        "properties": {
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "example": "Rivera"
          },
          "dob": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "description": "`YYYY-MM-DD`."
          }
        }
      },
      "MonitorLocationCriteria": {
        "type": "object",
        "description": "The centre and radius a location monitor watches.",
        "properties": {
          "address": {
            "type": "string",
            "nullable": true,
            "description": "Stored with the monitor as sent. On its own, a ZIP code or \"City, ST\" is placed at its centre; a street address must come with `lat` and `lng` or the call is a 422.\n"
          },
          "lat": {
            "type": "number",
            "nullable": true,
            "description": "The centre the radius is evaluated around."
          },
          "lng": {
            "type": "number",
            "nullable": true
          },
          "radiusMiles": {
            "type": "number",
            "default": 3,
            "description": "Greater than 0 and at most 100."
          }
        }
      },
      "MonitorChannels": {
        "type": "object",
        "description": "Where alerts are delivered. At least one email address or a `webhookUrl`.",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true,
            "description": "One recipient address.",
            "example": "compliance@example.com"
          },
          "emails": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            },
            "description": "More recipient addresses."
          },
          "webhookUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true
          }
        }
      },
      "Monitor": {
        "type": "object",
        "description": "One standing watch. A person monitor carries `person` and no `location` key; a location monitor carries `location` and no `person` key. `recentAlerts` is present only on `GET /v1/monitors/{monitorId}`.\n",
        "properties": {
          "id": {
            "type": "string",
            "example": "mon_b8f40d7afb9dc0d8"
          },
          "product": {
            "type": "string",
            "enum": [
              "sex-offender",
              "criminal"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "person",
              "location"
            ]
          },
          "minConfidence": {
            "type": "string",
            "nullable": true,
            "enum": [
              "dob_match",
              "year_match",
              "age_match",
              "name_match",
              "any"
            ]
          },
          "label": {
            "type": "string",
            "nullable": true,
            "example": "Jordan Rivera — new hire"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "canceled"
            ]
          },
          "channels": {
            "type": "object",
            "properties": {
              "emails": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "example": [
                  "compliance@example.com"
                ]
              },
              "webhookUrl": {
                "type": "string",
                "format": "uri",
                "example": "https://hooks.example.com/monitors"
              },
              "webhookSecret": {
                "type": "string",
                "description": "The monitor's webhook signing secret (`whsec_…`). Present ONLY on the `201` that created the monitor and on the response of `POST /v1/monitors/{monitorId}/webhook-secret`; never on GET or list. Every delivery to `webhookUrl` is signed with it (`X-Offendersearch-Signature: t=<unix>,v1=<hex>`).",
                "example": "whsec_…"
              }
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-02T14:05:33+00:00"
          },
          "canceledAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "example": null
          },
          "person": {
            "type": "object",
            "properties": {
              "firstName": {
                "type": "string",
                "nullable": true,
                "example": "Jordan"
              },
              "lastName": {
                "type": "string",
                "example": "Rivera"
              },
              "dob": {
                "type": "string",
                "format": "date",
                "nullable": true,
                "example": "1988-04-12"
              }
            }
          },
          "location": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string",
                "nullable": true,
                "example": "Austin, TX"
              },
              "lat": {
                "type": "number",
                "nullable": true,
                "example": 30.2672
              },
              "lng": {
                "type": "number",
                "nullable": true,
                "example": -97.7431
              },
              "radiusMiles": {
                "type": "number",
                "example": 3
              }
            }
          },
          "recentAlerts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MonitorAlert"
            }
          }
        }
      },
      "MonitorAlert": {
        "type": "object",
        "description": "One person's latest event on one monitor, within one registry or source. There is one alert per monitor and person per registry: a change to that person updates the same alert (same `id`) with the new `eventType`, and a registry republishing the listing under a new number changes nothing.\n",
        "properties": {
          "id": {
            "type": "string",
            "example": "hit_7fa176c8889c7569"
          },
          "eventType": {
            "type": "string",
            "enum": [
              "new",
              "changed",
              "removed"
            ]
          },
          "matchLabel": {
            "type": "string",
            "nullable": true,
            "enum": [
              "dob_match",
              "year_match",
              "age_match",
              "name_match",
              "in_radius"
            ]
          },
          "record": {
            "$ref": "#/components/schemas/MonitorAlertRecord"
          },
          "firstSeenAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-23T06:40:12+00:00"
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-23T06:40:12+00:00"
          },
          "notifiedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "example": "2026-10-23T06:41:02+00:00"
          }
        }
      },
      "MonitorAlertRecord": {
        "type": "object",
        "description": "The matched record, summarised, with the `personRef` the alert is keyed on. On a `removed` event it carries only `event` and `jurisdiction`.\n",
        "properties": {
          "name": {
            "type": "string",
            "example": "JORDAN RIVERA"
          },
          "jurisdiction": {
            "type": "string",
            "example": "TX"
          },
          "locality": {
            "type": "string",
            "description": "City only — never a street address.",
            "example": "Austin"
          },
          "matchLabel": {
            "type": "string",
            "enum": [
              "dob_match",
              "year_match",
              "age_match",
              "name_match",
              "in_radius"
            ]
          },
          "matchConfidence": {
            "type": "number",
            "nullable": true,
            "example": 0.97
          },
          "personRef": {
            "type": "string",
            "nullable": true,
            "description": "The person this alert is about, within the publishing registry or source — the same personRef the matching record carries in search results. Unchanged when a registry republishes the listing under a new number. Present on removed records too, so a removal can be matched to the person it concerned.",
            "example": "prs_3c9e1f0a7b2d4e6f8a1b"
          },
          "recordId": {
            "type": "string",
            "nullable": true,
            "description": "Sex-offender monitors only — the recordId of the matching record at the time of the event, for GET /v1/records/{recordId}. null on a criminal monitor.",
            "example": "rec_ab12cd34ef56gh78ij90"
          },
          "recordType": {
            "type": "string",
            "nullable": true,
            "description": "Criminal monitors (2026-10-19, additive): the matched record's `recordType` — `court_case`, `doc_inmate`, `jail_booking`, `healthcare_exclusion` and the other values the criminal record carries. `null` when the record names none; absent on a sex-offender monitor and on a `removed` event.\n",
            "example": "healthcare_exclusion"
          },
          "exclusion": {
            "type": "object",
            "description": "Present only when `recordType` is `healthcare_exclusion`: the exclusion list's own facts, so the alert can say \"added to an exclusion list, authority 1128(a)(1)\". The event phrases on these records are added to / updated on / removed from an exclusion list.\n",
            "properties": {
              "authority": {
                "type": "string",
                "description": "The authority as the list labels it, e.g. `1128(a)(1)`.",
                "example": "1128(a)(1)"
              },
              "convictionBased": {
                "type": "boolean",
                "description": "Whether the basis is a criminal conviction. Only conviction-based exclusions alert.",
                "example": true
              },
              "excludedOn": {
                "type": "string",
                "nullable": true,
                "description": "ISO date the exclusion took effect.",
                "example": "2021-03-19"
              }
            },
            "example": {
              "authority": "1128(a)(1)",
              "convictionBased": true,
              "excludedOn": "2021-03-19"
            }
          },
          "event": {
            "type": "string",
            "enum": [
              "removed"
            ],
            "example": null
          },
          "externalId": {
            "type": "string",
            "nullable": true,
            "description": "The record's own id at its source — set for criminal records (the same externalId the Criminal Records API returns), null for registry records.",
            "example": null
          }
        }
      },
      "MonitorWebhookDelivery": {
        "type": "object",
        "description": "The JSON body POSTed to a monitor's `channels.webhookUrl`, one request per alert, with `Content-Type: application/json`, `User-Agent: Offendersearch-Monitor/1` and `X-Offendersearch-Signature: t=<unix seconds>,v1=<hex>` — the HMAC-SHA256, keyed with the monitor's `webhookSecret`, of the string `<t>.<raw request body>`. The same scheme signs FCRA events, so one verifier serves every OffenderSearch webhook. Verify before acting; refuse a timestamp older than your tolerance.\n",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "monitor.alert"
            ]
          },
          "event": {
            "type": "string",
            "enum": [
              "new",
              "changed",
              "removed"
            ]
          },
          "alertId": {
            "type": "string",
            "description": "The id of the alert this delivery reports — `hit_` + 16 hex, the same value GET /v1/monitors/{id}/alerts lists. De-duplicate deliveries on it.",
            "example": "hit_7fa176c8889c7569"
          },
          "monitorId": {
            "type": "string",
            "example": "mon_b8f40d7afb9dc0d8"
          },
          "monitorLabel": {
            "type": "string",
            "nullable": true,
            "example": "Jordan Rivera — new hire"
          },
          "product": {
            "type": "string",
            "enum": [
              "sex-offender",
              "criminal"
            ]
          },
          "detail": {
            "$ref": "#/components/schemas/MonitorAlertRecord"
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-23T06:40:12+00:00"
          },
          "sentAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-23T06:41:02+00:00"
          }
        }
      },
      "MapError": {
        "type": "object",
        "description": "The error body of every `/v1/map/*` route. `detail` is an object: read `detail.code`, show `detail.message`. Some codes add fields of their own. No error response is billed.\n",
        "properties": {
          "detail": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": true,
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_bbox",
                  "invalid_center",
                  "invalid_radius",
                  "invalid_zoom",
                  "invalid_filter",
                  "invalid_format",
                  "invalid_detail",
                  "invalid_page",
                  "invalid_shape",
                  "invalid_route",
                  "invalid_path",
                  "invalid_polyline",
                  "invalid_profile",
                  "invalid_measure",
                  "invalid_corridor",
                  "invalid_stops",
                  "route_too_long",
                  "route_too_many_points",
                  "route_too_many_stops",
                  "route_batch_too_large",
                  "route_too_dense",
                  "route_too_many_people",
                  "end_user_required",
                  "map_not_enabled",
                  "map_paused",
                  "origin_not_allowed",
                  "unknown_marker",
                  "unknown_group",
                  "marker_expired",
                  "group_expired",
                  "record_no_longer_listed",
                  "map_sweep_limit",
                  "map_end_user_limit",
                  "map_end_user_route_limit",
                  "map_open_limit",
                  "map_busy",
                  "overloaded",
                  "map_index_not_ready",
                  "map_unavailable",
                  "map_not_configured",
                  "minimum_not_accepted",
                  "payment_method_required",
                  "payment_failed",
                  "business_account_required",
                  "admin_required"
                ],
                "description": "**422 — the request:** `invalid_bbox`, `invalid_center`, `invalid_radius`, `invalid_zoom`, `invalid_filter`, `invalid_format`, `invalid_detail`, `invalid_page`, `invalid_shape`. **422 — a route:** `invalid_route`, `invalid_path`, `invalid_polyline`, `invalid_profile`, `invalid_measure`, `invalid_corridor`, `invalid_stops`, `route_too_long`, `route_too_many_points`, `route_too_many_stops`, `route_batch_too_large`, `route_too_dense` (too many addresses to count exactly; split the route), `route_too_many_people` (more than 300 pins; `counts` holds the exact counts), `end_user_required` (a browser key sent no `X-End-User`). **403:** `map_not_enabled` (the Map API is off for this account), `map_paused` (paused by us), `origin_not_allowed` (a browser key used from a site not on its list). **404:** `unknown_marker`, `unknown_group` (not an id this account was given). **410:** `marker_expired`, `group_expired` (older than 24 hours), `record_no_longer_listed` (the registry no longer lists the person). **429:** `map_sweep_limit` (the account's daily area budget is used; clusters still work), `map_end_user_limit` (one end user's daily area budget is used), `map_end_user_route_limit` (one end user has checked their daily number of different routes), `map_open_limit` (the daily limit on record opens is reached), `map_busy` (too many map requests at once; `Retry-After: 1`), `overloaded` (the service is at capacity; `Retry-After` set). **503 — retry:** `map_index_not_ready`, `map_unavailable`, `map_not_configured`. **Turning it on:** `minimum_not_accepted` (422), `payment_method_required` (402), `payment_failed` (402), `business_account_required` (403), `admin_required` (403).\n"
              },
              "message": {
                "type": "string",
                "description": "Plain-language explanation."
              },
              "retryAfterSeconds": {
                "type": "integer",
                "description": "On 429s that carry `Retry-After`: the same number of seconds."
              },
              "budget": {
                "type": "integer",
                "description": "On `map_sweep_limit`, `map_end_user_limit`, `map_end_user_route_limit` and `map_open_limit`: the daily limit that was reached."
              },
              "counts": {
                "type": "object",
                "additionalProperties": true,
                "description": "On `route_too_many_people`: the exact `total`, `corridorTotal`, `stopsTotal`, `breakdown`, `legs`, `stops`, `approximate.count` and `units` of the route."
              },
              "maxMarkers": {
                "type": "integer",
                "description": "On `route_too_many_people`: the most pins one answer carries."
              },
              "routeIndex": {
                "type": "integer",
                "description": "On a `POST /v1/map/routes` refusal: the route it is about, from 0."
              },
              "dashboardUrl": {
                "type": "string",
                "description": "On `map_not_enabled` and `origin_not_allowed`."
              },
              "docsUrl": {
                "type": "string",
                "description": "On `map_not_enabled`."
              },
              "billingUrl": {
                "type": "string",
                "description": "On `payment_method_required` and `payment_failed`."
              }
            }
          }
        },
        "example": {
          "detail": {
            "code": "marker_expired",
            "message": "That marker id has expired. Request the map view again for a new one, or keep the recordRef from an opened record."
          }
        }
      },
      "MapBreakdown": {
        "type": "object",
        "description": "Of a count: how many have an exact street address, and housing status where the registry states it.\n",
        "properties": {
          "street": {
            "type": "integer",
            "description": "People with an exact street address.",
            "example": 12
          },
          "housed": {
            "type": "integer",
            "example": 10
          },
          "homeless": {
            "type": "integer",
            "example": 1
          },
          "incarcerated": {
            "type": "integer",
            "example": 1
          }
        }
      },
      "MapCluster": {
        "type": "object",
        "description": "A count for one grid cell. Returned in `clusters` mode.",
        "properties": {
          "id": {
            "type": "string",
            "example": "c9_551_775"
          },
          "lat": {
            "type": "number",
            "example": 39.965
          },
          "lng": {
            "type": "number",
            "example": -83.001
          },
          "count": {
            "type": "integer",
            "description": "People in the cluster.",
            "example": 14
          },
          "bbox": {
            "type": "array",
            "description": "The extent of the people in the cluster: `[west, south, east, north]`.",
            "items": {
              "type": "number"
            },
            "minItems": 4,
            "maxItems": 4,
            "example": [
              -83.012,
              39.958,
              -82.99,
              39.972
            ]
          },
          "expansionZoom": {
            "type": "integer",
            "description": "Fit the map to `bbox` at this zoom and the cluster comes apart.",
            "example": 14
          },
          "breakdown": {
            "$ref": "#/components/schemas/MapBreakdown"
          }
        }
      },
      "MapMember": {
        "type": "object",
        "description": "One person behind a many-people or approximate-area pin. `label`, `housingStatus` and `hasPhoto` are present only from zoom 15.\n",
        "properties": {
          "id": {
            "type": "string",
            "description": "Marker id (`mk_…`). Opens with `GET /v1/map/records/{markerId}`.",
            "example": "mk_4f2a9c1e7b3d5086"
          },
          "addressType": {
            "type": "string",
            "enum": [
              "home",
              "work",
              "school",
              "other"
            ]
          },
          "label": {
            "type": "string",
            "description": "First initial and last name, e.g. `S. Jones`.",
            "example": "J. Rivera"
          },
          "housingStatus": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "housed",
              "homeless",
              "incarcerated",
              null
            ],
            "description": "`null` when the registry does not say."
          },
          "hasPhoto": {
            "type": "boolean",
            "example": true
          }
        }
      },
      "MapMarker": {
        "type": "object",
        "description": "One pin for one person at one address. In `pins` mode (zoom 13–14) it is a position only. In `markers` mode (zoom 15+) it also carries `label`, `housingStatus`, `hasPhoto` and `registryState`. A person with two mapped addresses has two pins; `total` counts them once.\n",
        "properties": {
          "id": {
            "type": "string",
            "description": "Marker id (`mk_…`). Works for 24 hours, for the account it was issued to.",
            "example": "mk_4f2a9c1e7b3d5086"
          },
          "lat": {
            "type": "number",
            "example": 39.9612
          },
          "lng": {
            "type": "number",
            "example": -82.9988
          },
          "precision": {
            "type": "string",
            "enum": [
              "street"
            ],
            "description": "Always `street`: an exact pin is drawn only for an exact street address."
          },
          "addressType": {
            "type": "string",
            "enum": [
              "home",
              "work",
              "school",
              "other"
            ]
          },
          "label": {
            "type": "string",
            "description": "First initial and last name, e.g. `J. Smith`. Only at zoom 15+.",
            "example": "J. Rivera"
          },
          "housingStatus": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "housed",
              "homeless",
              "incarcerated",
              null
            ],
            "description": "Only at zoom 15+. `null` when the registry does not say."
          },
          "hasPhoto": {
            "type": "boolean",
            "description": "Only at zoom 15+.",
            "example": true
          },
          "registryState": {
            "type": [
              "string",
              "null"
            ],
            "description": "Only at zoom 15+. Two-letter code of the registry that lists the person.",
            "example": "OH"
          },
          "distanceMiles": {
            "type": "number",
            "description": "Radius mode only: miles from `center`.",
            "example": 0.42
          }
        }
      },
      "MapGroupPin": {
        "type": "object",
        "description": "A pin that stands for several people at one address: `id` is `null` and `groupId` is set. `members` is inline for up to 10 people at zoom 15+; otherwise use `GET /v1/map/groups/{groupId}`.\n",
        "properties": {
          "id": {
            "type": "null",
            "description": "Always `null` on a many-people pin.",
            "example": null
          },
          "lat": {
            "type": "number",
            "example": 39.9631
          },
          "lng": {
            "type": "number",
            "example": -82.9969
          },
          "precision": {
            "type": "string",
            "enum": [
              "street"
            ]
          },
          "count": {
            "type": "integer",
            "description": "People at this address.",
            "example": 3
          },
          "groupId": {
            "type": "string",
            "description": "Group id (`mg_…`). Works for 24 hours, for the account it was issued to.",
            "example": "mg_8e1b6d04c7a2f935"
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MapMember"
            }
          },
          "distanceMiles": {
            "type": "number",
            "description": "Radius mode only: miles from `center`.",
            "example": 0.8
          }
        }
      },
      "MapArea": {
        "type": "object",
        "description": "People whose only coordinate is the middle of a ZIP, city or county, plus anyone in custody or without a fixed address. Never drawn as an exact pin.\n",
        "properties": {
          "lat": {
            "type": "number",
            "example": 39.9676
          },
          "lng": {
            "type": "number",
            "example": -83.0008
          },
          "count": {
            "type": "integer",
            "example": 27
          },
          "precision": {
            "type": "string",
            "enum": [
              "zip",
              "city",
              "county"
            ]
          },
          "label": {
            "type": "string",
            "description": "The area's name.",
            "example": "43215"
          },
          "groupId": {
            "type": "string",
            "description": "Group id (`mg_…`) for `GET /v1/map/groups/{groupId}`.",
            "example": "mg_2c7d91a5e4b0f638"
          },
          "distanceMiles": {
            "type": "number",
            "description": "Radius mode only: miles from `center`.",
            "example": 1.3
          }
        }
      },
      "MapUnplaced": {
        "type": "object",
        "description": "People in the states this view touches who have no mappable address.",
        "properties": {
          "count": {
            "type": "integer",
            "example": 112
          },
          "states": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "OH"
            ]
          }
        }
      },
      "MapViewportResponse": {
        "type": "object",
        "description": "What to draw for one view (`format=json`). Returned by `GET /v1/map/viewport` and `POST /v1/map/area`.\n",
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "clusters",
              "pins",
              "markers",
              "count"
            ],
            "description": "`clusters` at zoom 3–12, or for a closer view holding more than 300 pins. `pins` at zoom 13–14. `markers` at zoom 15+. `count` with `detail=count`.\n"
          },
          "zoom": {
            "type": "integer",
            "description": "The effective zoom this view was answered at."
          },
          "bbox": {
            "type": "array",
            "description": "`[west, south, east, north]` of the view answered.",
            "items": {
              "type": "number"
            },
            "minItems": 4,
            "maxItems": 4
          },
          "datasetVersion": {
            "type": "string",
            "format": "date",
            "description": "The version of the data that answered.",
            "example": "2026-10-12"
          },
          "total": {
            "type": "integer",
            "description": "People in the view (in `clusters` mode: in the clusters returned). In radius mode: people inside the circle.\n"
          },
          "breakdown": {
            "$ref": "#/components/schemas/MapBreakdown"
          },
          "clusters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MapCluster"
            }
          },
          "markers": {
            "type": "array",
            "description": "Pins, sorted by distance from the centre of the view. An entry is one person's pin, or a many-people pin (`id: null` with a `groupId`).\n",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/MapMarker"
                },
                {
                  "$ref": "#/components/schemas/MapGroupPin"
                }
              ]
            }
          },
          "areas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MapArea"
            }
          },
          "unplaced": {
            "$ref": "#/components/schemas/MapUnplaced"
          },
          "center": {
            "type": "array",
            "description": "Radius mode only: `[lat, lng]`.",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2
          },
          "radiusMiles": {
            "type": "number",
            "description": "Radius mode only."
          },
          "withinRadius": {
            "type": "integer",
            "description": "Radius mode only: people inside the circle. Exact."
          },
          "shape": {
            "type": "string",
            "enum": [
              "polygon",
              "route"
            ],
            "description": "`POST /v1/map/area` only."
          },
          "totalIsEstimate": {
            "type": "boolean",
            "description": "`POST /v1/map/area` in `clusters` mode only: `true`."
          },
          "sandbox": {
            "type": "boolean",
            "description": "Present and `true` on a test-mode answer."
          },
          "notice": {
            "type": "string",
            "example": "A pin shows a registered address, not a person's current location."
          }
        },
        "example": {
          "mode": "clusters",
          "zoom": 9,
          "bbox": [
            -83.5,
            39.6,
            -82.4,
            40.3
          ],
          "datasetVersion": "2026-10-12",
          "total": 1840,
          "breakdown": {
            "street": 1502,
            "housed": 310,
            "homeless": 96,
            "incarcerated": 41
          },
          "clusters": [
            {
              "id": "c9_551_775",
              "lat": 39.9612,
              "lng": -82.9988,
              "count": 412,
              "bbox": [
                -83.06,
                39.91,
                -82.97,
                39.98
              ],
              "expansionZoom": 11,
              "breakdown": {
                "street": 350,
                "housed": 80,
                "homeless": 22,
                "incarcerated": 9
              }
            }
          ],
          "markers": [],
          "areas": [],
          "unplaced": {
            "count": 96,
            "states": [
              "OH"
            ]
          },
          "notice": "A pin shows a registered address, not a person's current location."
        }
      },
      "MapGeoJson": {
        "type": "object",
        "description": "The same answer as a GeoJSON `FeatureCollection` of points (`format=geojson`, content type `application/geo+json`). Cluster features carry `cluster: true`, `cluster_id`, `point_count`, `point_count_abbreviated`, `expansion_zoom`, `bbox` and `breakdown_*`. Marker features carry the marker fields plus `kind` (`marker` or `group`). Area features carry `kind: \"area\"`. Everything else is under `meta`. A route answer (`POST /v1/map/route` with `format: \"geojson\"`) has the same shape: one point per marker (`kind: \"marker\"`), group (`kind: \"group\"`) and approximate area (`kind: \"area\"`), with the rest of the route answer under `meta`.\n",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FeatureCollection"
            ]
          },
          "features": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "Feature"
                  ]
                },
                "geometry": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "Point"
                      ]
                    },
                    "coordinates": {
                      "type": "array",
                      "description": "`[lng, lat]`.",
                      "items": {
                        "type": "number"
                      },
                      "example": [
                        -82.9988,
                        39.9612
                      ]
                    }
                  }
                },
                "properties": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "meta": {
            "type": "object",
            "description": "The viewport response without `clusters`, `markers` and `areas`.",
            "additionalProperties": true
          }
        }
      },
      "MapAreaRequest": {
        "type": "object",
        "description": "Send one of `polygon` or `route`.",
        "properties": {
          "polygon": {
            "type": "array",
            "description": "3 to 200 points, each `[lng, lat]` (GeoJSON order). The ring is closed for you.",
            "minItems": 3,
            "maxItems": 200,
            "items": {
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "example": [
              [
                -83.01,
                39.95
              ],
              [
                -82.99,
                39.95
              ],
              [
                -82.99,
                39.97
              ],
              [
                -83.01,
                39.97
              ]
            ]
          },
          "route": {
            "type": "object",
            "required": [
              "points",
              "bufferMiles"
            ],
            "properties": {
              "points": {
                "type": "array",
                "description": "2 to 200 points, each `[lng, lat]`.",
                "minItems": 2,
                "maxItems": 200,
                "items": {
                  "type": "array",
                  "items": {
                    "type": "number"
                  },
                  "minItems": 2,
                  "maxItems": 2
                },
                "example": [
                  [
                    -83.0007,
                    39.9612
                  ],
                  [
                    -82.9988,
                    39.965
                  ],
                  [
                    -82.993,
                    39.97
                  ]
                ]
              },
              "bufferMiles": {
                "type": "number",
                "minimum": 0.05,
                "maximum": 5,
                "description": "The distance either side of the route, in miles.",
                "example": 0.25
              }
            }
          },
          "zoom": {
            "type": "number",
            "minimum": 0,
            "maximum": 22,
            "description": "As on `GET /v1/map/viewport`."
          },
          "format": {
            "type": "string",
            "enum": [
              "json",
              "geojson"
            ],
            "default": "json"
          },
          "detail": {
            "type": "string",
            "enum": [
              "full",
              "count"
            ],
            "default": "full"
          },
          "housing": {
            "description": "As on `GET /v1/map/viewport`. A comma-separated string or a list.",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "housed",
                    "homeless",
                    "incarcerated"
                  ]
                }
              }
            ]
          },
          "precision": {
            "type": "string",
            "enum": [
              "street",
              "any"
            ],
            "description": "`street` keeps only people with an exact street address. `any`, or leaving it out, keeps everyone."
          },
          "sandbox": {
            "type": "boolean",
            "default": false,
            "description": "`true` answers in test mode."
          }
        }
      },
      "MapRouteRequest": {
        "type": "object",
        "description": "The body of `POST /v1/map/route`, and of each entry in `POST /v1/map/routes`. Send at most one of `path`, `points` and `polyline`; without any, two or more `stops` are joined by straight lines.\n",
        "properties": {
          "path": {
            "description": "The line: a GeoJSON LineString (or a Feature holding one), or a list of `[lng, lat]` points. Up to 50,000 points; a longer line is simplified to within about 5 metres when it has more than 2,000.\n",
            "oneOf": [
              {
                "type": "object"
              },
              {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "type": "number"
                  }
                }
              }
            ]
          },
          "points": {
            "type": "array",
            "description": "The line as `[[lng, lat], …]`: the same list `POST /v1/map/area` takes.",
            "items": {
              "type": "array",
              "items": {
                "type": "number"
              }
            },
            "example": [
              [
                -83.0007,
                39.9612
              ],
              [
                -82.9988,
                39.965
              ],
              [
                -82.993,
                39.97
              ]
            ]
          },
          "polyline": {
            "type": "string",
            "description": "The line as an encoded polyline: Google Directions `overview_polyline.points`, or a Mapbox, OSRM or Valhalla `polyline6` geometry."
          },
          "polylinePrecision": {
            "type": "integer",
            "enum": [
              5,
              6
            ],
            "default": 5,
            "description": "5 for Google, 6 for Mapbox, OSRM and Valhalla."
          },
          "stops": {
            "type": "array",
            "description": "The stops, in route order: `{id, lng, lat}` objects, or `[lng, lat]` pairs. Walk: up to 50. Bus: up to 150.",
            "items": {
              "$ref": "#/components/schemas/MapRouteStopInput"
            },
            "example": [
              {
                "id": "s1",
                "lng": -83.0007,
                "lat": 39.9612
              },
              {
                "id": "s2",
                "lng": -82.993,
                "lat": 39.97
              }
            ]
          },
          "profile": {
            "type": "string",
            "enum": [
              "walk",
              "bus"
            ],
            "default": "walk",
            "description": "Sets the limits and the default stop radius: walk 15 miles, 50 stops, 500 feet; bus 60 miles, 150 stops, 1,000 feet."
          },
          "measure": {
            "type": "string",
            "enum": [
              "corridor",
              "stops",
              "both"
            ],
            "description": "What is counted. Left out: `both` when `stopRadiusFeet` is sent (or `stops` when there is no line), otherwise `corridor`."
          },
          "corridorMiles": {
            "type": "number",
            "minimum": 0.02,
            "maximum": 0.25,
            "default": 0.1,
            "description": "The distance either side of the line, in miles."
          },
          "stopRadiusFeet": {
            "type": "number",
            "minimum": 100,
            "maximum": 2640,
            "description": "The radius around each stop, in feet. Left out: 500 for walk, 1,000 for bus."
          },
          "parcelAllowanceFeet": {
            "type": "number",
            "minimum": 0,
            "maximum": 500,
            "default": 0,
            "description": "Feet added to the stop radius, for the distance between a geocoded address point and its property line."
          },
          "detail": {
            "type": "string",
            "enum": [
              "full",
              "count"
            ],
            "default": "full",
            "description": "`full` for counts and pins, `count` for counts only. The same price."
          },
          "format": {
            "type": "string",
            "enum": [
              "json",
              "geojson"
            ],
            "default": "json",
            "description": "`geojson` answers a single route as a FeatureCollection."
          },
          "housing": {
            "description": "As on `GET /v1/map/viewport`. A comma-separated string or a list.",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "housed",
                    "homeless",
                    "incarcerated"
                  ]
                }
              }
            ]
          },
          "precision": {
            "type": "string",
            "enum": [
              "street",
              "any"
            ],
            "description": "`street` leaves out the people counted under `approximate`."
          },
          "sandbox": {
            "type": "boolean",
            "default": false,
            "description": "`true` answers in test mode."
          },
          "externalId": {
            "type": "string",
            "maxLength": 100,
            "description": "Your own id for the route, echoed in the answer."
          }
        }
      },
      "MapRouteStopInput": {
        "type": "object",
        "description": "One stop on a route, in the request. A `[lng, lat]` pair is accepted too.",
        "required": [
          "lng",
          "lat"
        ],
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 64,
            "description": "Your id for the stop, unique in the route. Left out: `s1`, `s2`, …"
          },
          "lng": {
            "type": "number",
            "example": -83.0007
          },
          "lat": {
            "type": "number",
            "example": 39.9612
          },
          "label": {
            "type": "string",
            "description": "Accepted and never echoed: answers name stops by `id` only."
          }
        }
      },
      "MapRouteMarker": {
        "type": "object",
        "description": "One person at one exact street address near a route. Never a name. `distanceMiles`, `leg` and `alongMiles` are present when the pin is in the corridor; `nearestStop` and `stopDistanceFeet` when the route has stops.\n",
        "properties": {
          "id": {
            "type": "string",
            "description": "Marker id (`mk_…`). Opens with `GET /v1/map/records/{markerId}`. Works for 24 hours.",
            "example": "mk_4f2a9c1e7b3d5086"
          },
          "lat": {
            "type": "number",
            "example": 39.9612
          },
          "lng": {
            "type": "number",
            "example": -82.9988
          },
          "precision": {
            "type": "string",
            "enum": [
              "street"
            ]
          },
          "addressType": {
            "type": "string",
            "enum": [
              "home",
              "work",
              "school",
              "other"
            ]
          },
          "distanceMiles": {
            "type": "number",
            "description": "Straight-line miles from the address to the line.",
            "example": 0.04
          },
          "leg": {
            "type": "integer",
            "description": "The leg the nearest point of the line is on, from 1.",
            "example": 1
          },
          "alongMiles": {
            "type": "number",
            "description": "Miles from the start of the line to its nearest point.",
            "example": 0.6
          },
          "nearestStop": {
            "type": "string",
            "description": "The `id` of the closest stop.",
            "example": "s1"
          },
          "stopDistanceFeet": {
            "type": "integer",
            "description": "Straight-line feet to that stop.",
            "example": 240
          }
        }
      },
      "MapRouteGroup": {
        "type": "object",
        "description": "Several people at one exact street address near a route, as one pin.",
        "properties": {
          "groupId": {
            "type": "string",
            "description": "Group id (`mg_…`) for `GET /v1/map/groups/{groupId}`.",
            "example": "mg_8e1b6d04c7a2f935"
          },
          "lat": {
            "type": "number",
            "example": 39.9631
          },
          "lng": {
            "type": "number",
            "example": -82.9969
          },
          "precision": {
            "type": "string",
            "enum": [
              "street"
            ]
          },
          "count": {
            "type": "integer",
            "description": "People at this address.",
            "example": 3
          },
          "distanceMiles": {
            "type": "number",
            "example": 0.07
          },
          "leg": {
            "type": "integer",
            "example": 2
          },
          "alongMiles": {
            "type": "number",
            "example": 1.9
          },
          "nearestStop": {
            "type": "string",
            "example": "s2"
          },
          "stopDistanceFeet": {
            "type": "integer",
            "example": 410
          }
        }
      },
      "MapRouteArea": {
        "type": "object",
        "description": "People mapped only to the centre of a ZIP code, city or county in the map tiles the route touches.",
        "properties": {
          "groupId": {
            "type": "string",
            "description": "Group id (`mg_…`) for `GET /v1/map/groups/{groupId}`.",
            "example": "mg_2c7d91a5e4b0f638"
          },
          "lat": {
            "type": "number",
            "example": 39.9676
          },
          "lng": {
            "type": "number",
            "example": -83.0008
          },
          "precision": {
            "type": "string",
            "enum": [
              "zip",
              "city",
              "county"
            ]
          },
          "place": {
            "type": "string",
            "description": "The area's name.",
            "example": "43215"
          },
          "count": {
            "type": "integer",
            "example": 9
          }
        }
      },
      "MapRouteLeg": {
        "type": "object",
        "description": "The line between two stops (the whole line when there are fewer than two).",
        "properties": {
          "leg": {
            "type": "integer",
            "description": "From 1.",
            "example": 1
          },
          "fromStop": {
            "type": [
              "string",
              "null"
            ],
            "example": "s1"
          },
          "toStop": {
            "type": [
              "string",
              "null"
            ],
            "example": "s2"
          },
          "lengthMiles": {
            "type": "number",
            "example": 1.8
          },
          "count": {
            "type": "integer",
            "description": "People in the corridor whose nearest point of the line is on this leg.",
            "example": 4
          }
        }
      },
      "MapRouteStop": {
        "type": "object",
        "description": "One stop, as answered.",
        "properties": {
          "stopId": {
            "type": "string",
            "example": "s1"
          },
          "alongMiles": {
            "type": [
              "number",
              "null"
            ],
            "description": "Miles from the start of the line. `null` with no line.",
            "example": 0
          },
          "count": {
            "type": [
              "integer",
              "null"
            ],
            "description": "People within the stop's reach. `null` when stops are not measured.",
            "example": 2
          },
          "nearestFeet": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Feet to the closest of them. `null` when there is none.",
            "example": 240
          },
          "markerIds": {
            "type": "array",
            "description": "With `detail=full` when stops are measured: the marker and group ids within reach.",
            "items": {
              "type": "string"
            },
            "example": [
              "mk_4f2a9c1e7b3d5086",
              "mg_8e1b6d04c7a2f935"
            ]
          }
        }
      },
      "MapRouteResponse": {
        "type": "object",
        "description": "The answer for one route (`format=json`), and each entry of a `POST /v1/map/routes` answer.",
        "properties": {
          "routeIndex": {
            "type": "integer",
            "description": "In a `POST /v1/map/routes` answer only: the route's position in the request, from 0.",
            "example": 0
          },
          "shape": {
            "type": "string",
            "enum": [
              "route"
            ]
          },
          "profile": {
            "type": "string",
            "enum": [
              "walk",
              "bus"
            ]
          },
          "measure": {
            "type": "string",
            "enum": [
              "corridor",
              "stops",
              "both"
            ]
          },
          "detail": {
            "type": "string",
            "enum": [
              "full",
              "count"
            ]
          },
          "datasetVersion": {
            "type": "string",
            "format": "date",
            "example": "2026-10-18"
          },
          "complete": {
            "type": "boolean",
            "description": "Always `true`: a route is answered whole or refused.",
            "example": true
          },
          "lengthMiles": {
            "type": "number",
            "example": 3.4
          },
          "corridorMiles": {
            "type": [
              "number",
              "null"
            ],
            "description": "`null` when the corridor is not measured.",
            "example": 0.1
          },
          "stopRadiusFeet": {
            "type": [
              "number",
              "null"
            ],
            "description": "`null` when stops are not measured.",
            "example": 500
          },
          "parcelAllowanceFeet": {
            "type": [
              "number",
              "null"
            ],
            "description": "`null` when stops are not measured.",
            "example": 0
          },
          "units": {
            "type": "integer",
            "description": "Route units: the map requests this route is billed as.",
            "example": 4
          },
          "tilesRead": {
            "type": "integer",
            "description": "Zoom-14 map tiles the route touches.",
            "example": 6
          },
          "total": {
            "type": "integer",
            "description": "Distinct people with a street address in the corridor or a stop's reach.",
            "example": 7
          },
          "corridorTotal": {
            "type": [
              "integer",
              "null"
            ],
            "description": "People in the corridor. `null` when it is not measured.",
            "example": 6
          },
          "stopsTotal": {
            "type": [
              "integer",
              "null"
            ],
            "description": "People within reach of any stop. `null` when stops are not measured.",
            "example": 3
          },
          "breakdown": {
            "$ref": "#/components/schemas/MapBreakdown"
          },
          "legs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MapRouteLeg"
            }
          },
          "stops": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MapRouteStop"
            }
          },
          "markers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MapRouteMarker"
            }
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MapRouteGroup"
            }
          },
          "approximate": {
            "type": "object",
            "description": "People mapped only to a ZIP code, city or county. Never in `total`.",
            "properties": {
              "count": {
                "type": "integer",
                "example": 9
              },
              "areas": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/MapRouteArea"
                }
              }
            }
          },
          "unplaced": {
            "$ref": "#/components/schemas/MapUnplaced"
          },
          "externalId": {
            "type": "string",
            "description": "Your `externalId`, when sent.",
            "example": "route-42"
          },
          "sandbox": {
            "type": "boolean",
            "description": "Present and `true` on a test-mode answer.",
            "example": false
          },
          "notice": {
            "type": "string",
            "example": "A pin shows a registered address, not a person's current location."
          },
          "routeNotice": {
            "type": "string",
            "description": "How distances and counts are measured, as a sentence to show.",
            "example": "Distances are straight-line from each address to the route; counts are distinct people."
          }
        }
      },
      "MapRoutesRequest": {
        "type": "object",
        "required": [
          "routes"
        ],
        "properties": {
          "routes": {
            "type": "array",
            "description": "1 to 50 routes, each a `POST /v1/map/route` body (JSON format only).",
            "items": {
              "$ref": "#/components/schemas/MapRouteRequest"
            },
            "example": [
              {
                "points": [
                  [
                    -83.0007,
                    39.9612
                  ],
                  [
                    -82.9988,
                    39.965
                  ],
                  [
                    -82.993,
                    39.97
                  ]
                ],
                "stops": [
                  {
                    "id": "s1",
                    "lng": -83.0007,
                    "lat": 39.9612
                  },
                  {
                    "id": "s2",
                    "lng": -82.993,
                    "lat": 39.97
                  }
                ],
                "externalId": "route-42"
              }
            ]
          },
          "sandbox": {
            "type": "boolean",
            "default": false,
            "description": "`true` answers every route in test mode."
          }
        }
      },
      "MapRoutesResponse": {
        "type": "object",
        "properties": {
          "shape": {
            "type": "string",
            "enum": [
              "routes"
            ]
          },
          "complete": {
            "type": "boolean",
            "description": "Always `true`: the batch is answered whole or refused.",
            "example": true
          },
          "datasetVersion": {
            "type": "string",
            "format": "date",
            "example": "2026-10-18"
          },
          "units": {
            "type": "integer",
            "description": "The sum of the routes' units.",
            "example": 9
          },
          "uniquePeople": {
            "type": "integer",
            "description": "Distinct people across every route.",
            "example": 11
          },
          "routes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MapRouteResponse"
            }
          },
          "sandbox": {
            "type": "boolean",
            "description": "Present and `true` on a test-mode answer.",
            "example": false
          },
          "notice": {
            "type": "string",
            "example": "A pin shows a registered address, not a person's current location."
          }
        }
      },
      "MapRouteProfile": {
        "type": "object",
        "description": "The limits of one route profile.",
        "properties": {
          "maxMiles": {
            "type": "number",
            "example": 60
          },
          "maxStops": {
            "type": "integer",
            "example": 150
          },
          "corridorMiles": {
            "type": "array",
            "description": "`[least, most]`.",
            "items": {
              "type": "number"
            },
            "example": [
              0.02,
              0.25
            ]
          },
          "stopRadiusFeet": {
            "type": "array",
            "description": "`[least, most]`.",
            "items": {
              "type": "number"
            },
            "example": [
              100,
              2640
            ]
          }
        }
      },
      "MapGroupResponse": {
        "type": "object",
        "properties": {
          "total": {
            "type": "integer",
            "description": "People in the group."
          },
          "page": {
            "type": "integer"
          },
          "perPage": {
            "type": "integer"
          },
          "totalPages": {
            "type": "integer"
          },
          "kind": {
            "type": "string",
            "enum": [
              "address",
              "area"
            ],
            "description": "`address` for several people at one address; `area` for an approximate-area pin."
          },
          "named": {
            "type": "boolean",
            "description": "`true` when the group id came from a view at zoom 15+; members then carry `label`."
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MapMember"
            }
          },
          "sandbox": {
            "type": "boolean",
            "description": "Present and `true` on a test-mode answer."
          },
          "notice": {
            "type": "string"
          }
        },
        "example": {
          "total": 12,
          "page": 1,
          "perPage": 50,
          "totalPages": 1,
          "kind": "address",
          "named": true,
          "members": [
            {
              "id": "mk_…",
              "addressType": "home",
              "label": "S. Jones",
              "housingStatus": null,
              "hasPhoto": false
            }
          ]
        }
      },
      "MapBilling": {
        "type": "object",
        "description": "Whether this record open was charged, and why.",
        "properties": {
          "billed": {
            "type": "boolean",
            "example": true
          },
          "unit": {
            "type": "string",
            "enum": [
              "map_record_open"
            ]
          },
          "reason": {
            "type": "string",
            "enum": [
              "first_open_of_this_marker",
              "marker_already_opened",
              "saved_reference",
              "opened_in_the_last_24_hours",
              "sandbox"
            ],
            "description": "`first_open_of_this_marker` (billed). `marker_already_opened` (free). `saved_reference` (billed: opened by `recordRef`). `opened_in_the_last_24_hours` (free: the reference was opened, or the record was opened from a marker, in the last 24 hours). `sandbox` (free: test mode).\n"
          }
        }
      },
      "MapRecordResponse": {
        "type": "object",
        "properties": {
          "record": {
            "$ref": "#/components/schemas/Record"
          },
          "recordRef": {
            "type": "string",
            "description": "A lasting reference (`mr_…`) for bookmarks and shared links. Pass it to this route in place of a marker id.\n",
            "example": "mr_6b3e0f9a2d47c158"
          },
          "billing": {
            "$ref": "#/components/schemas/MapBilling"
          },
          "sandbox": {
            "type": "boolean",
            "description": "Present and `true` on a test-mode answer.",
            "example": false
          },
          "notice": {
            "type": "string",
            "example": "A pin shows a registered address, not a person's current location."
          }
        }
      },
      "MapStatus": {
        "type": "object",
        "description": "The Map API plan for this account, its rates and limits, and this month's usage.",
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "The Map API is on.",
            "example": true
          },
          "paused": {
            "type": "boolean",
            "example": false
          },
          "sandbox": {
            "type": "boolean",
            "description": "The plan answers in test mode.",
            "example": false
          },
          "everEnabled": {
            "type": "boolean",
            "example": true
          },
          "enabledAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "example": "2026-10-01T16:20:05+00:00"
          },
          "disabledAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "example": null
          },
          "pinMinZoom": {
            "type": "integer",
            "description": "Pins start at this zoom.",
            "example": 13
          },
          "nameMinZoom": {
            "type": "integer",
            "description": "Names start at this zoom.",
            "example": 15
          },
          "maxMarkers": {
            "type": "integer",
            "description": "Most pins in one response.",
            "example": 300
          },
          "maxTilesPerRequest": {
            "type": "integer",
            "description": "Most tiles one view may cover at its zoom.",
            "example": 64
          },
          "markerIdTtlSeconds": {
            "type": "integer",
            "description": "How long marker and group ids work.",
            "example": 86400
          },
          "markerFields": {
            "type": "string",
            "enum": [
              "basic",
              "named"
            ],
            "description": "`basic` labels read `J. Smith`; `named` labels read `John Smith`."
          },
          "rates": {
            "type": "object",
            "properties": {
              "requestUsdPer1k": {
                "type": "number",
                "description": "Dollars per 1,000 map requests.",
                "example": 2
              },
              "recordOpenUsd": {
                "type": "number",
                "description": "Dollars per record opened: this account's rate. $0.035 by default; accounts that had the Map API before 2026-10-18 keep $0.015.",
                "example": 0.035
              }
            }
          },
          "minimumUsd": {
            "type": "number",
            "description": "The monthly minimum, in dollars.",
            "example": 300
          },
          "minimumWaivedUntil": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "example": null
          },
          "minimumAppliesThisMonth": {
            "type": "boolean",
            "example": true
          },
          "minimumPaidThisMonthUsd": {
            "type": "number",
            "description": "What was charged toward this month's minimum when the Map API was turned on.",
            "example": 300
          },
          "chargeAtTurnOnUsd": {
            "type": "number",
            "description": "What `POST /v1/map/enable` would charge right now: the minimum, or `0` when the Map API is already on, this month's minimum is already paid, or the account owes no minimum this month (waived, or a negotiated account).",
            "example": 300
          },
          "minimumBilledOn": {
            "type": "string",
            "enum": [
              "card",
              "invoice"
            ],
            "description": "How the monthly minimum is collected: `card` (charged at turn-on) or `invoice` (a line on the month-end invoice; nothing charged at turn-on).",
            "example": "card"
          },
          "invoiceNetDays": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Days the month-end invoice is due, for an account billed by invoice; `null` otherwise.",
            "example": null
          },
          "usageThisMonth": {
            "type": "object",
            "properties": {
              "periodStart": {
                "type": "string",
                "format": "date-time",
                "example": "2026-10-01T00:00:00+00:00"
              },
              "requests": {
                "type": "integer",
                "example": 48210
              },
              "recordOpens": {
                "type": "integer",
                "example": 1270
              },
              "requestsUsd": {
                "type": "number",
                "example": 96.42
              },
              "recordOpensUsd": {
                "type": "number",
                "example": 44.45
              },
              "estimatedUsd": {
                "type": "number",
                "description": "Map usage so far this month, before the minimum.",
                "example": 140.87
              }
            }
          },
          "sweep": {
            "type": "object",
            "description": "The daily area budget.",
            "properties": {
              "tilesToday": {
                "type": "integer",
                "description": "Distinct areas pins were returned for today.",
                "example": 1480
              },
              "tilesPerDay": {
                "type": "integer",
                "description": "The account's daily budget.",
                "example": 20000
              },
              "endUserTilesPerDay": {
                "type": "integer",
                "description": "The daily budget per end user (`X-End-User`).",
                "example": 2000
              }
            }
          },
          "limits": {
            "type": "object",
            "description": "Daily limits set for this account. `0` means no limit.",
            "properties": {
              "recordOpensPerDay": {
                "type": "integer",
                "description": "Distinct records the account may open in a UTC day. `0` = no limit (the default).",
                "example": 0
              },
              "endUserOpensPerDay": {
                "type": "integer",
                "description": "Distinct records one end user (`X-End-User`) may open in a UTC day. `0` = no limit (the default).",
                "example": 0
              },
              "endUserRoutesPerDay": {
                "type": "integer",
                "description": "Distinct routes one end user may check in a UTC day. `0` = no limit.",
                "example": 20
              }
            }
          },
          "routes": {
            "type": "object",
            "description": "How routes are billed and limited.",
            "properties": {
              "unitMiles": {
                "type": "integer",
                "description": "One route unit per started this-many miles of corridor.",
                "example": 1
              },
              "stopsPerUnit": {
                "type": "integer",
                "description": "One route unit per started this-many stops measured.",
                "example": 10
              },
              "maxRoutesPerCall": {
                "type": "integer",
                "description": "Routes in one `POST /v1/map/routes`.",
                "example": 50
              },
              "profiles": {
                "type": "object",
                "properties": {
                  "walk": {
                    "$ref": "#/components/schemas/MapRouteProfile"
                  },
                  "bus": {
                    "$ref": "#/components/schemas/MapRouteProfile"
                  }
                }
              }
            }
          },
          "terms": {
            "type": "array",
            "description": "The rates and the minimum, in sentences.",
            "items": {
              "type": "string"
            },
            "example": [
              "$2.00 per 1,000 map requests.",
              "$0.035 per record open.",
              "$300 monthly minimum, charged when the Map API is turned on."
            ]
          },
          "links": {
            "type": "object",
            "properties": {
              "dashboard": {
                "type": "string",
                "example": "https://offendersearch.app/dashboard/map"
              },
              "docs": {
                "type": "string",
                "example": "https://offendersearch.app/docs/map"
              }
            }
          }
        }
      },
      "MapEnableRequest": {
        "type": "object",
        "properties": {
          "acceptMinimum": {
            "type": "boolean",
            "default": false,
            "description": "Send `true`: you agree to the monthly minimum, which is charged now. Left out or `false`, an account whose Map API is off is refused with `422 minimum_not_accepted`; an account whose Map API is already on gets `200` with `changed: false`.\n"
          }
        }
      },
      "MapEnableResponse": {
        "description": "The status object, plus `changed` and `charged`.",
        "allOf": [
          {
            "$ref": "#/components/schemas/MapStatus"
          },
          {
            "type": "object",
            "properties": {
              "changed": {
                "type": "boolean",
                "description": "`false` when the Map API was already on; nothing was charged.",
                "example": true
              },
              "invoiced": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "For an account billed by invoice: the minimum this call put on the month-end invoice instead of charging it.",
                "properties": {
                  "usd": {
                    "type": "number",
                    "example": 300
                  },
                  "netDays": {
                    "type": "integer",
                    "example": 30
                  },
                  "covers": {
                    "type": "string",
                    "example": "October 2026"
                  }
                }
              },
              "charged": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The minimum charged by this call. `null` when no charge was due.",
                "properties": {
                  "usd": {
                    "type": "number",
                    "example": 300
                  },
                  "charged": {
                    "type": "boolean",
                    "description": "`true` when this call took the payment.",
                    "example": true
                  },
                  "alreadyPaid": {
                    "type": "boolean",
                    "description": "`true` when this month's minimum was already paid; nothing more was charged.",
                    "example": false
                  },
                  "pending": {
                    "type": "boolean",
                    "description": "`true` for a bank payment that has not settled yet.",
                    "example": false
                  },
                  "invoice": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The invoice id.",
                    "example": "in_1SLq8vK3m9Zr2TxAw4Hd0YpQ"
                  },
                  "covers": {
                    "type": "string",
                    "description": "The calendar month the minimum covers.",
                    "example": "October 2026"
                  }
                }
              }
            }
          }
        ]
      },
      "MapDisableResponse": {
        "description": "The status object, plus `changed`.",
        "allOf": [
          {
            "$ref": "#/components/schemas/MapStatus"
          },
          {
            "type": "object",
            "properties": {
              "changed": {
                "type": "boolean",
                "description": "`false` when the Map API was already off.",
                "example": true
              }
            }
          }
        ]
      },
      "FcraError": {
        "type": "object",
        "description": "Every refusal the FCRA API raises itself: a stable `detail.code` to switch on and a `detail.message` to show. A request body that fails field validation returns the standard validation body instead (`detail` is an array).\n",
        "properties": {
          "detail": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "example": "fcra_not_enabled"
              },
              "message": {
                "type": "string",
                "example": "FCRA features are not enabled for this account."
              },
              "reason": {
                "type": "string",
                "enum": [
                  "waiver_language",
                  "link",
                  "html"
                ],
                "description": "On `agency_text_rejected` and `custom_scope_text_rejected` only: why the text was refused."
              }
            }
          }
        }
      },
      "FcraPartnerStatus": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean",
            "example": true
          },
          "sandbox": {
            "type": "boolean",
            "example": false
          },
          "allowedPurposes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "employment",
                "tenant_screening",
                "consumer_written_instructions",
                "legitimate_business_need"
              ]
            }
          },
          "agreementRef": {
            "type": "string",
            "nullable": true,
            "example": "FCRA-2026-0142"
          },
          "enabledAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "example": "2026-09-15T18:02:44+00:00"
          },
          "webhookConfigured": {
            "type": "boolean",
            "example": true
          },
          "trial": {
            "type": "boolean",
            "example": false
          },
          "role": {
            "type": "string",
            "enum": [
              "admin",
              "user"
            ]
          },
          "kind": {
            "type": "string",
            "nullable": true,
            "enum": [
              "cra",
              "direct",
              "platform"
            ]
          },
          "branding": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FcraBranding"
              }
            ],
            "nullable": true
          },
          "agencyLegalName": {
            "type": "string",
            "example": "OffenderSearch LLC"
          },
          "application": {
            "type": "object",
            "nullable": true,
            "properties": {
              "id": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "enum": [
                  "received",
                  "approved",
                  "declined"
                ]
              },
              "kind": {
                "type": "string",
                "enum": [
                  "cra",
                  "direct",
                  "platform"
                ]
              },
              "submittedAt": {
                "type": "string",
                "format": "date-time"
              },
              "decidedAt": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              }
            }
          }
        }
      },
      "FcraCompany": {
        "type": "object",
        "required": [
          "legalName",
          "ein",
          "stateOfIncorporation",
          "incorporationType",
          "address"
        ],
        "properties": {
          "legalName": {
            "type": "string",
            "minLength": 2,
            "maxLength": 200,
            "example": "Applicant Co LLC"
          },
          "dba": {
            "type": "string",
            "nullable": true,
            "maxLength": 200
          },
          "ein": {
            "type": "string",
            "minLength": 9,
            "maxLength": 10,
            "example": "12-3456789"
          },
          "stateOfIncorporation": {
            "type": "string",
            "minLength": 2,
            "maxLength": 2,
            "example": "TX"
          },
          "incorporationType": {
            "type": "string",
            "enum": [
              "llc",
              "corporation",
              "s_corporation",
              "partnership",
              "llp",
              "sole_proprietor",
              "non_profit",
              "government",
              "other"
            ]
          },
          "address": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "website": {
            "type": "string",
            "nullable": true,
            "maxLength": 2000
          },
          "phone": {
            "type": "string",
            "nullable": true,
            "maxLength": 40
          },
          "yearsInBusiness": {
            "type": "integer",
            "nullable": true,
            "minimum": 0,
            "maximum": 200
          }
        }
      },
      "FcraCompliance": {
        "type": "object",
        "required": [
          "contactName",
          "contactEmail"
        ],
        "properties": {
          "contactName": {
            "type": "string",
            "minLength": 2,
            "maxLength": 200
          },
          "contactEmail": {
            "type": "string",
            "minLength": 3,
            "maxLength": 254
          },
          "contactPhone": {
            "type": "string",
            "nullable": true,
            "maxLength": 40
          },
          "isConsumerReportingAgency": {
            "type": "boolean",
            "default": false
          },
          "resellsToEndUsers": {
            "type": "boolean",
            "default": false
          },
          "expectedMonthlyOrders": {
            "type": "integer",
            "nullable": true,
            "minimum": 0,
            "maximum": 10000000
          },
          "description": {
            "type": "string",
            "nullable": true,
            "maxLength": 2000
          }
        }
      },
      "FcraApplicationCreate": {
        "type": "object",
        "required": [
          "kind",
          "company",
          "compliance",
          "purposes",
          "certifications",
          "signerName",
          "signerTitle"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "direct",
              "platform",
              "cra"
            ]
          },
          "company": {
            "$ref": "#/components/schemas/FcraCompany"
          },
          "compliance": {
            "$ref": "#/components/schemas/FcraCompliance"
          },
          "purposes": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string",
              "enum": [
                "employment",
                "tenant_screening",
                "consumer_written_instructions",
                "legitimate_business_need"
              ]
            }
          },
          "endUserTypes": {
            "type": "array",
            "nullable": true,
            "maxItems": 7,
            "items": {
              "type": "string",
              "enum": [
                "employers",
                "landlords",
                "volunteer_organizations",
                "gig_platforms",
                "healthcare_facilities",
                "staffing_firms",
                "other"
              ]
            }
          },
          "certifications": {
            "type": "object",
            "additionalProperties": {
              "type": "boolean"
            }
          },
          "signerName": {
            "type": "string",
            "minLength": 2,
            "maxLength": 200
          },
          "signerTitle": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        }
      },
      "FcraApplication": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "fpa_3c9d1e2f4a5b6c7d"
          },
          "status": {
            "type": "string",
            "enum": [
              "received",
              "approved",
              "declined"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "direct",
              "platform",
              "cra"
            ]
          },
          "company": {
            "$ref": "#/components/schemas/FcraCompany"
          },
          "compliance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FcraCompliance"
              }
            ],
            "nullable": true
          },
          "purposes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "endUserTypes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "certifications": {
            "type": "object",
            "additionalProperties": {
              "type": "boolean"
            }
          },
          "signerName": {
            "type": "string"
          },
          "signedAt": {
            "type": "string",
            "format": "date-time"
          },
          "agreementVersion": {
            "type": "string"
          },
          "decidedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "decisionNotes": {
            "type": "string",
            "nullable": true
          },
          "agreementRef": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "FcraApplicationForm": {
        "type": "object",
        "properties": {
          "agreementVersion": {
            "type": "string"
          },
          "agency": {
            "type": "object",
            "properties": {
              "legalName": {
                "type": "string"
              },
              "email": {
                "type": "string"
              }
            }
          },
          "certifications": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              }
            }
          },
          "kinds": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "FcraBranding": {
        "type": "object",
        "description": "What the consumer sees as the requester on the hosted consent flow, the e-mails and the portal header. The consumer reporting agency's legal name stays on the disclosure, the report and every notice.",
        "properties": {
          "displayName": {
            "type": "string",
            "nullable": true,
            "example": "Acme Staffing"
          },
          "logoUrl": {
            "type": "string",
            "nullable": true
          },
          "primaryColor": {
            "type": "string",
            "nullable": true,
            "example": "#0f766e"
          },
          "supportEmail": {
            "type": "string",
            "nullable": true
          },
          "supportPhone": {
            "type": "string",
            "nullable": true
          },
          "website": {
            "type": "string",
            "nullable": true
          },
          "replyTo": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "FcraBrandingPut": {
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string",
            "nullable": true,
            "maxLength": 120,
            "example": "Acme Staffing"
          },
          "logoUrl": {
            "type": "string",
            "nullable": true,
            "maxLength": 2000
          },
          "primaryColor": {
            "type": "string",
            "nullable": true,
            "pattern": "^#[0-9a-fA-F]{6}$",
            "example": "#0f766e"
          },
          "supportEmail": {
            "type": "string",
            "nullable": true,
            "maxLength": 254
          },
          "supportPhone": {
            "type": "string",
            "nullable": true,
            "maxLength": 40
          },
          "website": {
            "type": "string",
            "nullable": true,
            "maxLength": 2000
          },
          "replyTo": {
            "type": "string",
            "nullable": true,
            "maxLength": 254
          }
        }
      },
      "FcraBrandingStatus": {
        "type": "object",
        "properties": {
          "branding": {
            "$ref": "#/components/schemas/FcraBranding"
          },
          "kind": {
            "type": "string",
            "enum": [
              "cra",
              "direct",
              "platform"
            ]
          },
          "agency": {
            "$ref": "#/components/schemas/FcraAgency"
          }
        }
      },
      "FcraAgency": {
        "type": "object",
        "properties": {
          "legalName": {
            "type": "string",
            "example": "OffenderSearch LLC"
          },
          "email": {
            "type": "string",
            "example": "consumer@offendersearch.app"
          },
          "url": {
            "type": "string",
            "example": "https://offendersearch.app/consumer"
          }
        }
      },
      "FcraAgencyCreate": {
        "type": "object",
        "additionalProperties": false,
        "description": "A co-agency: another consumer reporting agency that prepares part of the report and is named on the disclosure after us. Text fields refuse waiver or release language, links (except `consumerUrl`) and HTML.",
        "required": [
          "legalName",
          "address",
          "consumerEmail",
          "checks"
        ],
        "properties": {
          "legalName": {
            "type": "string",
            "minLength": 2,
            "maxLength": 200,
            "example": "Northwind Credential Services LLC"
          },
          "dba": {
            "type": "string",
            "nullable": true,
            "maxLength": 200,
            "example": "Northwind Credentials"
          },
          "address": {
            "type": "string",
            "minLength": 5,
            "maxLength": 300,
            "example": "200 Harbor Way, Suite 4, Portland, OR 97204"
          },
          "consumerEmail": {
            "type": "string",
            "format": "email",
            "maxLength": 254,
            "example": "consumers@northwind-credentials.example"
          },
          "consumerPhone": {
            "type": "string",
            "nullable": true,
            "maxLength": 40,
            "pattern": "^[0-9 +().-]+$",
            "example": "+1 (503) 555-0142"
          },
          "consumerUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true,
            "maxLength": 2000,
            "example": "https://northwind-credentials.example/consumers"
          },
          "checks": {
            "type": "string",
            "minLength": 3,
            "maxLength": 200,
            "example": "professional licenses and certifications"
          }
        }
      },
      "FcraAgencyPatch": {
        "type": "object",
        "additionalProperties": false,
        "description": "Any of the co-agency fields; a field you omit is unchanged.",
        "properties": {
          "legalName": {
            "type": "string",
            "nullable": true,
            "minLength": 2,
            "maxLength": 200,
            "example": "Northwind Credential Services LLC"
          },
          "dba": {
            "type": "string",
            "nullable": true,
            "maxLength": 200,
            "example": "Northwind Credentials"
          },
          "address": {
            "type": "string",
            "nullable": true,
            "minLength": 5,
            "maxLength": 300,
            "example": "200 Harbor Way, Suite 4, Portland, OR 97204"
          },
          "consumerEmail": {
            "type": "string",
            "nullable": true,
            "format": "email",
            "maxLength": 254,
            "example": "consumers@northwind-credentials.example"
          },
          "consumerPhone": {
            "type": "string",
            "nullable": true,
            "maxLength": 40,
            "pattern": "^[0-9 +().-]+$",
            "example": "+1 (503) 555-0142"
          },
          "consumerUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true,
            "maxLength": 2000,
            "example": "https://northwind-credentials.example/consumers"
          },
          "checks": {
            "type": "string",
            "nullable": true,
            "minLength": 3,
            "maxLength": 200,
            "example": "professional licenses and certifications"
          }
        }
      },
      "FcraCoAgency": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "ag_3f9c1a7e5b2d4c60"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "inactive"
            ]
          },
          "legalName": {
            "type": "string",
            "example": "Northwind Credential Services LLC"
          },
          "dba": {
            "type": "string",
            "nullable": true
          },
          "address": {
            "type": "string"
          },
          "consumerEmail": {
            "type": "string"
          },
          "consumerPhone": {
            "type": "string",
            "nullable": true
          },
          "consumerUrl": {
            "type": "string",
            "nullable": true
          },
          "checks": {
            "type": "string",
            "example": "professional licenses and certifications"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "deactivatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "FcraDisclosureExtension": {
        "type": "object",
        "description": "What a disclosure named beyond the standard text: the co-agencies (as they were when it was generated), the scope wording and the custom line.",
        "properties": {
          "agencies": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "example": "ag_3f9c1a7e5b2d4c60"
                },
                "legalName": {
                  "type": "string"
                },
                "dba": {
                  "type": "string",
                  "nullable": true
                },
                "address": {
                  "type": "string"
                },
                "consumerEmail": {
                  "type": "string"
                },
                "consumerPhone": {
                  "type": "string",
                  "nullable": true
                },
                "consumerUrl": {
                  "type": "string",
                  "nullable": true
                },
                "checks": {
                  "type": "string"
                }
              }
            }
          },
          "scope": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "professional_license",
                "certification",
                "education",
                "employment_history",
                "motor_vehicle",
                "abuse_registry",
                "identity"
              ]
            }
          },
          "customScopeText": {
            "type": "string",
            "nullable": true
          },
          "formsVersion": {
            "type": "string",
            "example": "forms-2026-11-22.1"
          }
        }
      },
      "FcraConsentTokenVerify": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "token"
        ],
        "properties": {
          "token": {
            "type": "string",
            "maxLength": 4000,
            "example": "fct1.eyJ2IjoxLCJkb2MiOiJmY2RfN2EyYjljNGQxZTBmM2E2NSJ9.Q2hlY2sgdGhlIHNpZ25hdHVyZQ"
          }
        }
      },
      "FcraConsentTokenResult": {
        "type": "object",
        "properties": {
          "valid": {
            "type": "boolean"
          },
          "reason": {
            "type": "string",
            "nullable": true,
            "enum": [
              "malformed",
              "bad_signature",
              "unknown_document",
              null
            ]
          },
          "documentId": {
            "type": "string",
            "nullable": true,
            "example": "fcd_7a2b9c4d1e0f3a65"
          },
          "sha256": {
            "type": "string",
            "nullable": true
          },
          "signedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "purpose": {
            "type": "string",
            "nullable": true,
            "example": "employment"
          },
          "agencies": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "OffenderSearch LLC",
              "Northwind Credential Services LLC"
            ]
          },
          "scope": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "professional_license",
              "certification"
            ]
          }
        }
      },
      "FcraAddress": {
        "type": "object",
        "properties": {
          "line1": {
            "type": "string",
            "nullable": true,
            "maxLength": 200
          },
          "city": {
            "type": "string",
            "nullable": true,
            "maxLength": 100
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "postalCode": {
            "type": "string",
            "nullable": true,
            "maxLength": 20
          }
        }
      },
      "FcraCertification": {
        "type": "object",
        "required": [
          "text",
          "version",
          "certifiedAt"
        ],
        "properties": {
          "text": {
            "type": "string",
            "minLength": 10,
            "maxLength": 8000,
            "example": "Example Health certifies it will order reports only for the permissible purposes listed and will comply with the FCRA."
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "example": "2026-10"
          },
          "certifiedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-09-15T17:58:10+00:00"
          },
          "certifiedBy": {
            "type": "string",
            "nullable": true,
            "maxLength": 200,
            "example": "Casey Nguyen, Director of Compliance"
          }
        }
      },
      "FcraScopeTarget": {
        "type": "object",
        "required": [
          "state"
        ],
        "properties": {
          "state": {
            "type": "string",
            "example": "KY"
          },
          "county": {
            "type": "string",
            "nullable": true,
            "maxLength": 100,
            "example": "Jefferson"
          }
        }
      },
      "FcraScopePolicy": {
        "type": "object",
        "description": "Where an order searches beyond the subject's own counties. Every field is optional; an end user's policy is the default for its orders and an order may override it.",
        "properties": {
          "lookbackYears": {
            "type": "integer",
            "nullable": true,
            "minimum": 1,
            "maximum": 30,
            "example": 7
          },
          "radiusMiles": {
            "type": "number",
            "nullable": true,
            "minimum": 0,
            "maximum": 100,
            "example": 25
          },
          "neighborCounties": {
            "type": "boolean",
            "nullable": true
          },
          "maxNeighborCounties": {
            "type": "integer",
            "nullable": true,
            "minimum": 0,
            "maximum": 20,
            "example": 6
          },
          "includeUseLocation": {
            "type": "boolean",
            "nullable": true
          },
          "statewide": {
            "type": "boolean",
            "nullable": true
          },
          "national": {
            "type": "boolean",
            "nullable": true
          },
          "requireCountyCoverage": {
            "type": "boolean",
            "nullable": true
          },
          "extraJurisdictions": {
            "type": "array",
            "nullable": true,
            "maxItems": 50,
            "items": {
              "$ref": "#/components/schemas/FcraScopeTarget"
            }
          },
          "excludeJurisdictions": {
            "type": "array",
            "nullable": true,
            "maxItems": 50,
            "items": {
              "$ref": "#/components/schemas/FcraScopeTarget"
            }
          },
          "addressSource": {
            "type": "string",
            "nullable": true,
            "enum": [
              "provided",
              "ssn_trace"
            ],
            "description": "The default way orders for this end user get the address history; an order's own `addressSource` wins."
          }
        }
      },
      "FcraEndUserCreate": {
        "type": "object",
        "required": [
          "name",
          "permissiblePurposes",
          "certification"
        ],
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "example": "Example Health"
          },
          "externalId": {
            "type": "string",
            "nullable": true,
            "maxLength": 200
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FcraAddress"
              }
            ],
            "nullable": true
          },
          "permissiblePurposes": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string",
              "enum": [
                "employment",
                "tenant_screening",
                "consumer_written_instructions",
                "legitimate_business_need"
              ]
            }
          },
          "certification": {
            "$ref": "#/components/schemas/FcraCertification"
          },
          "scopePolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FcraScopePolicy"
              }
            ],
            "nullable": true
          }
        }
      },
      "FcraEndUserPatch": {
        "type": "object",
        "properties": {
          "permissiblePurposes": {
            "type": "array",
            "nullable": true,
            "minItems": 1,
            "items": {
              "type": "string",
              "enum": [
                "employment",
                "tenant_screening",
                "consumer_written_instructions",
                "legitimate_business_need"
              ]
            }
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "suspended"
            ],
            "nullable": true
          },
          "scopePolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FcraScopePolicy"
              }
            ],
            "nullable": true
          }
        }
      },
      "FcraEndUser": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "eu_0b44acbeefeaa7d7"
          },
          "name": {
            "type": "string",
            "example": "Example Health"
          },
          "externalId": {
            "type": "string",
            "nullable": true,
            "example": "EH-0042"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FcraAddress"
              }
            ],
            "nullable": true,
            "example": {
              "line1": "4120 Elm St",
              "city": "Austin",
              "state": "TX",
              "postalCode": "78701"
            }
          },
          "permissiblePurposes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "employment",
                "tenant_screening",
                "consumer_written_instructions",
                "legitimate_business_need"
              ]
            }
          },
          "certification": {
            "$ref": "#/components/schemas/FcraCertification"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "suspended"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-09-15T17:58:10+00:00"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-02T09:14:51+00:00"
          },
          "scopePolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FcraScopePolicy"
              }
            ],
            "nullable": true
          }
        }
      },
      "FcraConsent": {
        "type": "object",
        "required": [
          "obtainedAt",
          "method"
        ],
        "properties": {
          "obtainedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-20T15:03:22+00:00"
          },
          "method": {
            "type": "string",
            "enum": [
              "esign",
              "wet_signature",
              "electronic_click",
              "recorded_verbal",
              "other"
            ]
          },
          "documentRef": {
            "type": "string",
            "nullable": true,
            "maxLength": 200
          },
          "agencyIds": {
            "type": "array",
            "nullable": true,
            "maxItems": 3,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "example": "ag_3f9c1a7e5b2d4c60"
            },
            "description": "Up to three of your active co-agencies (`ag_…`), named on the disclosure after us. 422 `unknown_agency` for an id that is not one of yours, 422 `agency_inactive` for a deactivated one."
          },
          "disclosureScope": {
            "type": "array",
            "nullable": true,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "enum": [
                "professional_license",
                "certification",
                "education",
                "employment_history",
                "motor_vehicle",
                "abuse_registry",
                "identity"
              ]
            },
            "description": "Fixed wording added to the disclosure's statement of what the report may contain, in English or Spanish."
          },
          "customScopeText": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 300,
            "description": "One more line for the disclosure, shown as \"The report may also include: …\". 422 `custom_scope_text_rejected` when it carries waiver or release language, a link or HTML."
          }
        }
      },
      "FcraAlias": {
        "type": "object",
        "required": [
          "firstName",
          "lastName"
        ],
        "properties": {
          "firstName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "example": "Jordy"
          },
          "lastName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "example": "Rivera"
          }
        }
      },
      "FcraLicense": {
        "type": "object",
        "required": [
          "state",
          "number"
        ],
        "properties": {
          "state": {
            "type": "string",
            "example": "TX"
          },
          "number": {
            "type": "string",
            "minLength": 1,
            "maxLength": 40,
            "example": "123456"
          },
          "type": {
            "type": "string",
            "nullable": true,
            "maxLength": 60,
            "example": "Certified Nurse Aide"
          }
        }
      },
      "FcraSubjectAddress": {
        "type": "object",
        "required": [
          "state"
        ],
        "properties": {
          "state": {
            "type": "string",
            "example": "TX"
          },
          "city": {
            "type": "string",
            "nullable": true,
            "maxLength": 100,
            "example": "Fort Worth"
          },
          "line1": {
            "type": "string",
            "nullable": true,
            "maxLength": 200
          },
          "postalCode": {
            "type": "string",
            "nullable": true,
            "maxLength": 20,
            "example": "76102"
          },
          "county": {
            "type": "string",
            "nullable": true,
            "maxLength": 100
          },
          "source": {
            "type": "string",
            "enum": [
              "declared"
            ],
            "default": "declared"
          },
          "from": {
            "type": "string",
            "nullable": true,
            "maxLength": 10,
            "example": "2019-01"
          },
          "to": {
            "type": "string",
            "nullable": true,
            "maxLength": 10
          }
        }
      },
      "FcraSubject": {
        "type": "object",
        "required": [
          "firstName",
          "lastName",
          "dob"
        ],
        "properties": {
          "firstName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "example": "Jordan"
          },
          "middleName": {
            "type": "string",
            "nullable": true,
            "maxLength": 100
          },
          "lastName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "example": "Rivera"
          },
          "dob": {
            "type": "string",
            "format": "date",
            "example": "1988-04-12"
          },
          "aliases": {
            "type": "array",
            "nullable": true,
            "maxItems": 5,
            "items": {
              "$ref": "#/components/schemas/FcraAlias"
            }
          },
          "addresses": {
            "type": "array",
            "nullable": true,
            "maxItems": 20,
            "items": {
              "$ref": "#/components/schemas/FcraSubjectAddress"
            }
          },
          "npi": {
            "type": "string",
            "nullable": true,
            "minLength": 10,
            "maxLength": 10,
            "example": "1234567893",
            "description": "Healthcare searches: the subject's National Provider Identifier (10 digits, check digit verified). A healthcare record without a date of birth is reportable only when its NPI or license number matches.\n"
          },
          "licenses": {
            "type": "array",
            "nullable": true,
            "maxItems": 10,
            "items": {
              "$ref": "#/components/schemas/FcraLicense"
            }
          },
          "ssn": {
            "type": "string",
            "writeOnly": true,
            "nullable": true,
            "pattern": "^\\d{3}-?\\d{2}-?\\d{4}$",
            "description": "Required with `addressSource: \"ssn_trace\"`, refused otherwise (422 `ssn_not_used_in_address_mode`). The address history behind it is traced and its counties pick the search scope. Never stored, never returned (the order keeps the last four digits only). 422 `ssn_trace_unavailable` until SSN trace is on for the account; sandbox orders always accept it (last four 1111 no data, 2222 thin file, 3333 invalid, 4444 name mismatch, anything else answered)."
          }
        }
      },
      "FcraUseLocation": {
        "type": "object",
        "required": [
          "state"
        ],
        "properties": {
          "state": {
            "type": "string",
            "example": "TX"
          },
          "city": {
            "type": "string",
            "nullable": true,
            "maxLength": 100,
            "example": "Fort Worth"
          },
          "postalCode": {
            "type": "string",
            "nullable": true,
            "maxLength": 20
          },
          "county": {
            "type": "string",
            "nullable": true,
            "maxLength": 100
          }
        }
      },
      "FcraSearchSpec": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "sex_offender",
              "criminal",
              "healthcare"
            ]
          },
          "exclusions": {
            "type": "string",
            "enum": [
              "conviction_only",
              "all",
              "none"
            ],
            "default": "conviction_only",
            "description": "Criminal searches only (2026-10-19, additive): which exclusion-list records (`recordType: \"healthcare_exclusion\"` — the HHS-OIG, SAM.gov and state Medicaid lists) the search may furnish. `conviction_only` (default): only exclusions whose basis is a criminal conviction, furnished as convictions dated by the exclusion date. `all`: also the administrative tier (license actions, debarments, loan defaults), furnished with `dispositionStatus: \"sanction\"`. `none`: no exclusion-list records. A list entry with no date of birth is withheld as `insufficient_identifiers` whatever the setting. Healthcare searches (2026-10-30): `all` is the default when `exclusions` is omitted (every active exclusion and nurse-aide finding); `conviction_only` keeps conviction-based exclusions only; `none` is 422.\n"
          }
        }
      },
      "FcraOrderCreate": {
        "type": "object",
        "required": [
          "endUserId",
          "permissiblePurpose",
          "consent",
          "subject",
          "searches"
        ],
        "properties": {
          "endUserId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "example": "eu_0b44acbeefeaa7d7"
          },
          "permissiblePurpose": {
            "type": "string",
            "enum": [
              "employment",
              "tenant_screening",
              "consumer_written_instructions",
              "legitimate_business_need"
            ]
          },
          "consent": {
            "$ref": "#/components/schemas/FcraConsent"
          },
          "subject": {
            "$ref": "#/components/schemas/FcraSubject"
          },
          "useLocation": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FcraUseLocation"
              }
            ],
            "nullable": true
          },
          "annualSalary": {
            "type": "integer",
            "nullable": true,
            "minimum": 0,
            "maximum": 100000000
          },
          "searches": {
            "type": "array",
            "minItems": 1,
            "maxItems": 3,
            "items": {
              "$ref": "#/components/schemas/FcraSearchSpec"
            }
          },
          "clientReference": {
            "type": "string",
            "nullable": true,
            "maxLength": 200,
            "example": "req-2026-1187"
          },
          "callbackUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true,
            "maxLength": 2000
          },
          "liveScope": {
            "type": "string",
            "enum": [
              "relevant",
              "all",
              "matches"
            ],
            "default": "relevant"
          },
          "scopePolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FcraScopePolicy"
              }
            ],
            "nullable": true
          },
          "addressSource": {
            "type": "string",
            "nullable": true,
            "example": "ssn_trace",
            "enum": [
              "provided",
              "ssn_trace"
            ],
            "description": "How the subject's address history is found. `provided`: send `subject.addresses` and no SSN ($4.95 per order). `ssn_trace`: send the name, date of birth and `subject.ssn`; an SSN-based address history trace picks the counties to search, with any addresses also sent and the use location ($6.95 per order). Omitted: `scopePolicy.addressSource`, then the end user's default, else `ssn_trace` when `subject.ssn` is sent and `provided` otherwise. 422 codes: `ssn_required`, `ssn_trace_unavailable`, `ssn_not_used_in_address_mode`, `addresses_required`."
          },
          "metadata": {
            "type": "object",
            "nullable": true,
            "additionalProperties": {
              "type": "string"
            },
            "example": {
              "requisition": "R-2041"
            }
          },
          "tags": {
            "type": "array",
            "nullable": true,
            "maxItems": 20,
            "items": {
              "type": "string"
            },
            "example": [
              "q4-hiring"
            ]
          }
        }
      },
      "FcraOrder": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "fo_ee0b34c5b52fd35b"
          },
          "status": {
            "type": "string",
            "enum": [
              "received",
              "in_progress",
              "partial",
              "complete",
              "cancelled",
              "error"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-20T15:05:00+00:00"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-20T15:09:48+00:00"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "example": "2026-10-20T15:09:48+00:00"
          },
          "cancelledAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "example": null
          },
          "clientReference": {
            "type": "string",
            "nullable": true,
            "example": "req-2026-1187"
          },
          "endUserId": {
            "type": "string",
            "example": "eu_0b44acbeefeaa7d7"
          },
          "permissiblePurpose": {
            "type": "string",
            "enum": [
              "employment",
              "tenant_screening",
              "consumer_written_instructions",
              "legitimate_business_need"
            ]
          },
          "useLocation": {
            "type": "object",
            "nullable": true,
            "properties": {
              "state": {
                "type": "string",
                "example": "TX"
              },
              "city": {
                "type": "string",
                "nullable": true,
                "example": "Fort Worth"
              }
            }
          },
          "controlVersion": {
            "type": "string",
            "example": "fcra-controls-2026-10-19.1"
          },
          "liveScope": {
            "type": "string",
            "enum": [
              "relevant",
              "all",
              "matches"
            ]
          },
          "addressSource": {
            "type": "string",
            "enum": [
              "provided",
              "ssn_trace"
            ],
            "description": "How this order got the address history: `provided` (addresses sent, $4.95) or `ssn_trace` (traced from the SSN, $6.95; `identity.trace` reports the outcome)."
          },
          "eta": {
            "type": "object",
            "nullable": true,
            "properties": {
              "p50": {
                "type": "string",
                "format": "date-time",
                "example": "2026-10-20T15:07:00+00:00"
              },
              "p90": {
                "type": "string",
                "format": "date-time",
                "example": "2026-10-20T15:15:00+00:00"
              }
            }
          },
          "sandbox": {
            "type": "boolean",
            "example": false
          },
          "source": {
            "type": "string",
            "enum": [
              "api",
              "dashboard",
              "invitation",
              "continuous"
            ]
          },
          "metadata": {
            "type": "object",
            "nullable": true,
            "additionalProperties": {
              "type": "string"
            }
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "revision": {
            "type": "integer",
            "example": 1
          },
          "revisedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "adjudication": {
            "type": "string",
            "nullable": true,
            "enum": [
              "engaged",
              "pre_adverse_action",
              "post_adverse_action",
              "cleared"
            ]
          },
          "scope": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FcraScopeSummary"
              }
            ],
            "nullable": true
          },
          "identity": {
            "$ref": "#/components/schemas/FcraIdentity"
          },
          "consumer": {
            "type": "object",
            "nullable": true,
            "properties": {
              "email": {
                "type": "string",
                "nullable": true
              },
              "phone": {
                "type": "string",
                "nullable": true
              },
              "copyRequested": {
                "type": "boolean"
              },
              "locale": {
                "type": "string"
              }
            }
          },
          "searches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FcraSearch"
            }
          },
          "consumerPortal": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "format": "uri",
                "example": "https://offendersearch.app/consumer/report"
              },
              "accessCode": {
                "type": "string",
                "example": "K7QF-2MXP-9RDA"
              }
            }
          },
          "disclosure": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FcraDisclosureExtension"
              }
            ],
            "description": "Present only when the request named co-agencies, a disclosure scope or a custom scope line: what the disclosure named."
          },
          "consent": {
            "type": "object",
            "description": "Present only on an order placed by a hosted invitation that named co-agencies, a disclosure scope or a custom scope line: the signed consent document and its verifiable token.",
            "properties": {
              "documentId": {
                "type": "string"
              },
              "token": {
                "type": "string",
                "nullable": true
              }
            }
          }
        }
      },
      "FcraScopeSummary": {
        "type": "object",
        "description": "The order's search scope in brief; the full plan is `GET /v1/fcra/orders/{order_id}/scope`.",
        "properties": {
          "version": {
            "type": "string",
            "example": "scope-2026-10-26.1"
          },
          "addressSource": {
            "type": "string",
            "enum": [
              "provided",
              "ssn_trace"
            ],
            "description": "Where the plan's addresses came from."
          },
          "traceFallback": {
            "type": "object",
            "nullable": true,
            "description": "`null` unless an SSN-trace order's trace added no county; the scope was then built from the addresses given, the use location and the statewide and national tiers.",
            "properties": {
              "reason": {
                "type": "string",
                "description": "`no_data`, `invalid_ssn`, `failed`, `not_available`, `no_addresses` or `no_county_resolved`."
              },
              "note": {
                "type": "string"
              }
            }
          },
          "counties": {
            "type": "integer",
            "example": 5
          },
          "states": {
            "type": "integer",
            "example": 1
          },
          "sources": {
            "type": "object",
            "properties": {
              "live": {
                "type": "integer",
                "example": 17
              },
              "pending": {
                "type": "integer",
                "example": 0
              }
            }
          },
          "gaps": {
            "type": "integer",
            "example": 1
          },
          "unresolvedAddresses": {
            "type": "integer",
            "example": 0
          },
          "jurisdictions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "example": "OH-FRANKLIN"
                },
                "level": {
                  "type": "string",
                  "enum": [
                    "county",
                    "state",
                    "national"
                  ]
                },
                "gap": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      },
      "FcraIdentity": {
        "type": "object",
        "description": "The identity layer of the order. Identity verification is coming soon and reports `not_available`. The trace reports the outcome of the SSN address-history trace on an order placed with `addressSource: ssn_trace`, else `not_available`. Trace addresses are pointer data: they put counties in scope and are never in the order, the plan or the report.",
        "properties": {
          "verification": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "not_available",
                  "pending",
                  "verified",
                  "failed"
                ]
              },
              "provider": {
                "type": "string",
                "nullable": true
              }
            }
          },
          "trace": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "not_available",
                  "answered",
                  "thin",
                  "no_data",
                  "invalid_ssn",
                  "failed"
                ]
              },
              "provider": {
                "type": "string",
                "nullable": true
              },
              "reference": {
                "type": "string",
                "nullable": true
              },
              "ssnLast4": {
                "type": "string",
                "nullable": true
              },
              "ssnValid": {
                "type": "boolean",
                "nullable": true
              },
              "flags": {
                "type": "object",
                "description": "Derived from the trace: `noData`, `thinFile` (fewer than two addresses in the last seven years), `nameMismatch` (no identity under the SSN carries the subject's last name or an alias's), `dobMismatch`, `issuedBeforeBirth`, `invalidSsn`, `ssnUnverifiable`, `deceased`.",
                "additionalProperties": {
                  "type": "boolean"
                }
              },
              "addressesFound": {
                "type": "integer"
              },
              "countiesFound": {
                "type": "integer"
              },
              "scopeOutcome": {
                "type": "string",
                "nullable": true,
                "enum": [
                  "traced",
                  "fallback"
                ]
              },
              "fallbackReason": {
                "type": "string",
                "nullable": true
              },
              "countiesAdded": {
                "type": "integer",
                "nullable": true
              },
              "error": {
                "type": "string",
                "nullable": true
              },
              "use": {
                "type": "string",
                "enum": [
                  "scope_only"
                ]
              }
            }
          },
          "note": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "FcraSearchPlanRequest": {
        "type": "object",
        "required": [
          "searches"
        ],
        "properties": {
          "endUserId": {
            "type": "string",
            "nullable": true,
            "maxLength": 100
          },
          "addresses": {
            "type": "array",
            "nullable": true,
            "maxItems": 20,
            "items": {
              "$ref": "#/components/schemas/FcraSubjectAddress"
            }
          },
          "useLocation": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FcraUseLocation"
              }
            ],
            "nullable": true
          },
          "searches": {
            "type": "array",
            "minItems": 1,
            "maxItems": 3,
            "items": {
              "$ref": "#/components/schemas/FcraSearchSpec"
            }
          },
          "scopePolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FcraScopePolicy"
              }
            ],
            "nullable": true
          }
        }
      },
      "FcraScopeAddress": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer"
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "postalCode": {
            "type": "string",
            "nullable": true
          },
          "county": {
            "type": "string",
            "nullable": true
          },
          "from": {
            "type": "string",
            "nullable": true
          },
          "to": {
            "type": "string",
            "nullable": true
          },
          "source": {
            "type": "string",
            "enum": [
              "declared",
              "document",
              "traced"
            ]
          },
          "inLookback": {
            "type": "boolean"
          },
          "resolvedBy": {
            "type": "string",
            "enum": [
              "county",
              "zip",
              "city",
              "unresolved"
            ]
          },
          "candidateCounties": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "fips": {
                  "type": "string"
                },
                "state": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "FcraScopeReason": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "residence",
              "neighbor",
              "use_location",
              "client_added",
              "always"
            ]
          },
          "address": {
            "type": "integer",
            "nullable": true
          },
          "source": {
            "type": "string",
            "nullable": true
          },
          "from": {
            "type": "string",
            "nullable": true
          },
          "to": {
            "type": "string",
            "nullable": true
          },
          "resolvedBy": {
            "type": "string",
            "nullable": true
          },
          "of": {
            "type": "string",
            "nullable": true
          },
          "miles": {
            "type": "number",
            "nullable": true
          }
        }
      },
      "FcraScopeSource": {
        "type": "object",
        "properties": {
          "product": {
            "type": "string",
            "enum": [
              "criminal",
              "sex_offender",
              "healthcare"
            ]
          },
          "id": {
            "type": "string",
            "example": "OH-FRANKLIN"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "scope": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "live",
              "pending"
            ]
          },
          "recordKinds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "live": {
            "type": "boolean"
          },
          "yearsBack": {
            "type": "integer",
            "nullable": true
          }
        }
      },
      "FcraScopeJurisdiction": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "OH-FRANKLIN"
          },
          "level": {
            "type": "string",
            "enum": [
              "county",
              "state",
              "national"
            ]
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "county": {
            "type": "string",
            "nullable": true
          },
          "fips": {
            "type": "string",
            "nullable": true
          },
          "reasons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FcraScopeReason"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FcraScopeSource"
            }
          },
          "sourceCounts": {
            "type": "object",
            "properties": {
              "live": {
                "type": "integer"
              },
              "pending": {
                "type": "integer"
              }
            }
          },
          "gap": {
            "type": "boolean"
          }
        }
      },
      "FcraScopeGap": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "county": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "coveredBy": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "pendingSources": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "FcraSearchPlan": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "example": "scope-2026-10-26.1"
          },
          "policy": {
            "$ref": "#/components/schemas/FcraScopePolicy"
          },
          "computedAt": {
            "type": "string",
            "format": "date"
          },
          "searchTypes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "sex_offender",
                "criminal",
                "healthcare"
              ]
            }
          },
          "addresses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FcraScopeAddress"
            }
          },
          "jurisdictions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FcraScopeJurisdiction"
            }
          },
          "gaps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FcraScopeGap"
            }
          },
          "excluded": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "summary": {
            "type": "object",
            "properties": {
              "counties": {
                "type": "integer"
              },
              "states": {
                "type": "integer"
              },
              "sources": {
                "type": "object",
                "properties": {
                  "live": {
                    "type": "integer"
                  },
                  "pending": {
                    "type": "integer"
                  }
                }
              },
              "gaps": {
                "type": "integer"
              },
              "unresolvedAddresses": {
                "type": "integer"
              }
            }
          },
          "healthcare": {
            "type": "object",
            "description": "Present when the plan includes a healthcare search: every healthcare source in every state.\n",
            "properties": {
              "scope": {
                "type": "string",
                "enum": [
                  "all_states"
                ]
              },
              "sources": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": true
                }
              },
              "statesCovered": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "statesWithoutSource": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "sourceCounts": {
                "type": "object",
                "properties": {
                  "live": {
                    "type": "integer"
                  },
                  "pending": {
                    "type": "integer"
                  }
                }
              }
            }
          }
        }
      },
      "FcraReportScope": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "policy": {
            "$ref": "#/components/schemas/FcraScopePolicy"
          },
          "jurisdictions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FcraScopeJurisdiction"
            }
          },
          "gaps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FcraScopeGap"
            }
          },
          "excluded": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "summary": {
            "type": "object",
            "properties": {
              "counties": {
                "type": "integer"
              },
              "states": {
                "type": "integer"
              },
              "sources": {
                "type": "object",
                "properties": {
                  "live": {
                    "type": "integer"
                  },
                  "pending": {
                    "type": "integer"
                  }
                }
              },
              "gaps": {
                "type": "integer"
              },
              "unresolvedAddresses": {
                "type": "integer"
              }
            }
          }
        }
      },
      "FcraInviteSubject": {
        "type": "object",
        "required": [
          "firstName",
          "lastName",
          "email"
        ],
        "properties": {
          "firstName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "example": "Jordan"
          },
          "middleName": {
            "type": "string",
            "nullable": true,
            "maxLength": 100
          },
          "lastName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "example": "Rivera"
          },
          "email": {
            "type": "string",
            "minLength": 3,
            "maxLength": 254,
            "example": "jordan@example.test"
          },
          "phone": {
            "type": "string",
            "nullable": true,
            "maxLength": 40
          }
        }
      },
      "FcraInvitationCreate": {
        "type": "object",
        "required": [
          "endUserId",
          "permissiblePurpose",
          "subject",
          "searches"
        ],
        "properties": {
          "endUserId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "example": "eu_0b44acbeefeaa7d7"
          },
          "permissiblePurpose": {
            "type": "string",
            "enum": [
              "employment",
              "tenant_screening",
              "consumer_written_instructions",
              "legitimate_business_need"
            ]
          },
          "subject": {
            "$ref": "#/components/schemas/FcraInviteSubject"
          },
          "searches": {
            "type": "array",
            "minItems": 1,
            "maxItems": 3,
            "items": {
              "$ref": "#/components/schemas/FcraSearchSpec"
            }
          },
          "useLocation": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FcraUseLocation"
              }
            ],
            "nullable": true
          },
          "annualSalary": {
            "type": "integer",
            "nullable": true,
            "minimum": 0,
            "maximum": 100000000
          },
          "liveScope": {
            "type": "string",
            "enum": [
              "relevant",
              "all",
              "matches"
            ],
            "default": "relevant"
          },
          "clientReference": {
            "type": "string",
            "nullable": true,
            "maxLength": 200
          },
          "callbackUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true,
            "maxLength": 2000
          },
          "metadata": {
            "type": "object",
            "nullable": true,
            "additionalProperties": {
              "type": "string"
            }
          },
          "tags": {
            "type": "array",
            "nullable": true,
            "maxItems": 20,
            "items": {
              "type": "string"
            }
          },
          "locale": {
            "type": "string",
            "enum": [
              "en",
              "es"
            ],
            "default": "en"
          },
          "sendEmail": {
            "type": "boolean",
            "default": true
          },
          "expiresInDays": {
            "type": "integer",
            "nullable": true,
            "minimum": 1,
            "maximum": 30
          },
          "addressSource": {
            "type": "string",
            "default": "provided",
            "enum": [
              "provided",
              "ssn_trace"
            ],
            "description": "`provided` (default): the consumer lists the places they have lived ($4.95). `ssn_trace`: the hosted page asks for the Social Security number instead, address history optional ($6.95). 422 `ssn_trace_unavailable` when SSN trace is not on for the account."
          },
          "agencyIds": {
            "type": "array",
            "nullable": true,
            "maxItems": 3,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "example": "ag_3f9c1a7e5b2d4c60"
            },
            "description": "Up to three of your active co-agencies (`ag_…`), named on the disclosure after us. 422 `unknown_agency` for an id that is not one of yours, 422 `agency_inactive` for a deactivated one."
          },
          "disclosureScope": {
            "type": "array",
            "nullable": true,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "enum": [
                "professional_license",
                "certification",
                "education",
                "employment_history",
                "motor_vehicle",
                "abuse_registry",
                "identity"
              ]
            },
            "description": "Fixed wording added to the disclosure's statement of what the report may contain, in English or Spanish."
          },
          "customScopeText": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 300,
            "description": "One more line for the disclosure, shown as \"The report may also include: …\". 422 `custom_scope_text_rejected` when it carries waiver or release language, a link or HTML."
          }
        }
      },
      "FcraInvitation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "fi_4c1d2e9a7b3f0c58"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "completed",
              "expired",
              "cancelled"
            ]
          },
          "endUserId": {
            "type": "string"
          },
          "permissiblePurpose": {
            "type": "string",
            "enum": [
              "employment",
              "tenant_screening",
              "consumer_written_instructions",
              "legitimate_business_need"
            ]
          },
          "subject": {
            "$ref": "#/components/schemas/FcraInviteSubject"
          },
          "searches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FcraSearchSpec"
            }
          },
          "useLocation": {
            "type": "object",
            "nullable": true,
            "properties": {
              "state": {
                "type": "string"
              },
              "city": {
                "type": "string",
                "nullable": true
              }
            }
          },
          "annualSalary": {
            "type": "integer",
            "nullable": true
          },
          "liveScope": {
            "type": "string",
            "enum": [
              "relevant",
              "all",
              "matches"
            ]
          },
          "clientReference": {
            "type": "string",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "nullable": true,
            "additionalProperties": {
              "type": "string"
            }
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "locale": {
            "type": "string"
          },
          "sendEmail": {
            "type": "boolean"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "sentAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "reminderSentAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "cancelledAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "orderId": {
            "type": "string",
            "nullable": true
          },
          "consent": {
            "type": "object",
            "nullable": true,
            "properties": {
              "signerName": {
                "type": "string",
                "nullable": true
              },
              "signedAt": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              },
              "formsVersion": {
                "type": "string",
                "nullable": true
              },
              "documentId": {
                "type": "string",
                "nullable": true
              },
              "copyRequested": {
                "type": "boolean"
              },
              "token": {
                "type": "string",
                "nullable": true,
                "description": "The verifiable consent token, on a completed invitation that named co-agencies, a disclosure scope or a custom scope line. `null` when this server issues no tokens."
              }
            }
          },
          "sandbox": {
            "type": "boolean"
          },
          "addressSource": {
            "type": "string",
            "enum": [
              "provided",
              "ssn_trace"
            ],
            "description": "How the order this invitation places gets the address history."
          },
          "disclosure": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FcraDisclosureExtension"
              }
            ],
            "description": "Present only when the request named co-agencies, a disclosure scope or a custom scope line: what the disclosure named."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "applyUrl": {
            "type": "string",
            "format": "uri",
            "example": "https://offendersearch.app/apply/9f3c…"
          }
        }
      },
      "FcraConsentDocument": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "fcd_7a2b9c4d1e0f3a65"
          },
          "kind": {
            "type": "string",
            "enum": [
              "generated",
              "uploaded"
            ]
          },
          "contentType": {
            "type": "string"
          },
          "sha256": {
            "type": "string"
          },
          "size": {
            "type": "integer"
          },
          "signerName": {
            "type": "string",
            "nullable": true
          },
          "signedAt": {
            "type": "string",
            "nullable": true
          },
          "forms": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "version": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                }
              }
            }
          },
          "invitationId": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "disclosure": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FcraDisclosureExtension"
              }
            ],
            "description": "Present only when the request named co-agencies, a disclosure scope or a custom scope line: what the disclosure named."
          }
        }
      },
      "FcraConsentUpload": {
        "type": "object",
        "required": [
          "contentType",
          "data"
        ],
        "properties": {
          "contentType": {
            "type": "string",
            "enum": [
              "application/pdf",
              "image/png",
              "image/jpeg"
            ]
          },
          "data": {
            "type": "string",
            "minLength": 8
          },
          "signerName": {
            "type": "string",
            "nullable": true,
            "maxLength": 200
          },
          "signedAt": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "FcraNotice": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "invitation",
              "invitation_reminder",
              "report_copy",
              "pre_adverse",
              "post_adverse",
              "dispute_received",
              "dispute_resolved"
            ]
          },
          "to": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "sent",
              "failed",
              "skipped"
            ]
          },
          "sentAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "templateVersion": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "FcraApplyForm": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "disclosure"
          },
          "kind": {
            "type": "string",
            "enum": [
              "rights",
              "disclosure",
              "state_notice",
              "authorization"
            ]
          },
          "version": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "offersCopy": {
            "type": "boolean"
          },
          "requiresAcknowledgement": {
            "type": "boolean"
          },
          "requiresSignature": {
            "type": "boolean"
          }
        }
      },
      "FcraApplyView": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "completed",
              "expired",
              "cancelled"
            ]
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "requestedBy": {
            "type": "string"
          },
          "branding": {
            "$ref": "#/components/schemas/FcraBranding"
          },
          "agency": {
            "$ref": "#/components/schemas/FcraAgency"
          },
          "permissiblePurpose": {
            "type": "string"
          },
          "searches": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "useLocation": {
            "type": "object",
            "nullable": true,
            "properties": {
              "state": {
                "type": "string"
              },
              "city": {
                "type": "string",
                "nullable": true
              }
            }
          },
          "forms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FcraApplyForm"
            }
          },
          "requiredAcknowledgements": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "offersCopy": {
            "type": "boolean"
          },
          "prefill": {
            "type": "object",
            "properties": {
              "firstName": {
                "type": "string",
                "nullable": true
              },
              "middleName": {
                "type": "string",
                "nullable": true
              },
              "lastName": {
                "type": "string",
                "nullable": true
              },
              "email": {
                "type": "string",
                "nullable": true
              },
              "phone": {
                "type": "string",
                "nullable": true
              }
            }
          },
          "locale": {
            "type": "string"
          },
          "asksSsn": {
            "type": "boolean",
            "description": "`true` on an SSN-trace invitation: the page asks for the Social Security number (required) instead of the address history."
          },
          "addressSource": {
            "type": "string",
            "enum": [
              "provided",
              "ssn_trace"
            ],
            "description": "The invitation's mode."
          },
          "requiresAddresses": {
            "type": "boolean",
            "description": "`true` on an address-mode invitation: at least one address is required."
          },
          "identityNote": {
            "type": "string"
          },
          "coAgencies": {
            "type": "array",
            "description": "Present only when the invitation names co-agencies: each one as the disclosure names it, after us.",
            "items": {
              "type": "object",
              "properties": {
                "legalName": {
                  "type": "string"
                },
                "dba": {
                  "type": "string",
                  "nullable": true
                },
                "address": {
                  "type": "string"
                },
                "email": {
                  "type": "string"
                },
                "phone": {
                  "type": "string",
                  "nullable": true
                },
                "url": {
                  "type": "string",
                  "nullable": true
                },
                "checks": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "FcraApplyAlias": {
        "type": "object",
        "required": [
          "firstName",
          "lastName"
        ],
        "properties": {
          "firstName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "lastName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          }
        }
      },
      "FcraApplyAddress": {
        "type": "object",
        "required": [
          "state"
        ],
        "properties": {
          "state": {
            "type": "string"
          },
          "city": {
            "type": "string",
            "nullable": true,
            "maxLength": 100
          },
          "line1": {
            "type": "string",
            "nullable": true,
            "maxLength": 200
          },
          "postalCode": {
            "type": "string",
            "nullable": true,
            "maxLength": 20
          },
          "county": {
            "type": "string",
            "nullable": true,
            "maxLength": 100
          },
          "from": {
            "type": "string",
            "nullable": true,
            "maxLength": 10
          },
          "to": {
            "type": "string",
            "nullable": true,
            "maxLength": 10
          }
        }
      },
      "FcraApplySubject": {
        "type": "object",
        "required": [
          "firstName",
          "lastName",
          "dob"
        ],
        "properties": {
          "firstName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "middleName": {
            "type": "string",
            "nullable": true,
            "maxLength": 100
          },
          "noMiddleName": {
            "type": "boolean",
            "default": false
          },
          "lastName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "dob": {
            "type": "string",
            "format": "date"
          },
          "aliases": {
            "type": "array",
            "nullable": true,
            "maxItems": 5,
            "items": {
              "$ref": "#/components/schemas/FcraApplyAlias"
            }
          },
          "addresses": {
            "type": "array",
            "nullable": true,
            "maxItems": 20,
            "items": {
              "$ref": "#/components/schemas/FcraApplyAddress"
            },
            "description": "At least one on an address-mode invitation (422 `addresses_required`); optional on an SSN-trace invitation."
          },
          "ssn": {
            "type": "string",
            "writeOnly": true,
            "nullable": true,
            "description": "Required on an SSN-trace invitation (`asksSsn`; 422 `ssn_required`), refused on an address-mode one (422 `ssn_not_used_in_address_mode`). Traced for the search scope; never stored, never echoed."
          }
        }
      },
      "FcraApplyContact": {
        "type": "object",
        "required": [
          "email"
        ],
        "properties": {
          "email": {
            "type": "string",
            "minLength": 3,
            "maxLength": 254
          },
          "phone": {
            "type": "string",
            "nullable": true,
            "maxLength": 40
          }
        }
      },
      "FcraApplyComplete": {
        "type": "object",
        "required": [
          "acknowledgements",
          "signerName",
          "subject",
          "contact"
        ],
        "properties": {
          "acknowledgements": {
            "type": "object",
            "additionalProperties": {
              "type": "boolean"
            }
          },
          "signerName": {
            "type": "string",
            "minLength": 2,
            "maxLength": 200
          },
          "subject": {
            "$ref": "#/components/schemas/FcraApplySubject"
          },
          "contact": {
            "$ref": "#/components/schemas/FcraApplyContact"
          },
          "copyRequested": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "FcraApplyResult": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "completed"
            ]
          },
          "completedAt": {
            "type": "string",
            "format": "date-time"
          },
          "copyRequested": {
            "type": "boolean"
          },
          "whatHappensNext": {
            "type": "string"
          }
        }
      },
      "FcraApplyDecline": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "nullable": true,
            "maxLength": 500
          }
        }
      },
      "FcraAdverseRule": {
        "type": "object",
        "description": "The adverse-action rule the use location adds (business days to wait, whether a written individualized assessment is required), or null.",
        "properties": {
          "state": {
            "type": "string"
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "purpose": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "waitingBusinessDays": {
            "type": "integer"
          },
          "individualizedAssessment": {
            "type": "boolean"
          },
          "citation": {
            "type": "string"
          },
          "note": {
            "type": "string"
          },
          "alsoApplies": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "citation": {
                  "type": "string"
                },
                "waitingBusinessDays": {
                  "type": "integer"
                }
              }
            }
          }
        }
      },
      "FcraAdverseItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "crim:OH-COURT:1234"
          },
          "type": {
            "type": "string",
            "enum": [
              "sex_offender",
              "criminal",
              "healthcare"
            ]
          },
          "searchId": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        }
      },
      "FcraAdverseActionCreate": {
        "type": "object",
        "required": [
          "adverseItemIds"
        ],
        "properties": {
          "adverseItemIds": {
            "type": "array",
            "minItems": 1,
            "maxItems": 100,
            "items": {
              "type": "string"
            }
          },
          "reasonText": {
            "type": "string",
            "nullable": true,
            "maxLength": 4000
          },
          "waitingDays": {
            "type": "integer",
            "nullable": true,
            "minimum": 7,
            "maximum": 60,
            "description": "Calendar days before the post-adverse notice (default 7). Below 7 is refused with `waiting_period_too_short`; every adverse action waits at least five business days after the pre-adverse notice is delivered, and the use location's rule may lengthen it."
          },
          "individualizedAssessment": {
            "type": "boolean",
            "default": false
          },
          "assessmentText": {
            "type": "string",
            "nullable": true,
            "maxLength": 8000
          },
          "medium": {
            "type": "object",
            "nullable": true,
            "additionalProperties": {
              "type": "boolean"
            }
          }
        }
      },
      "FcraAdverseAction": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "fa_1b2c3d4e5f607182"
          },
          "orderId": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "paused",
              "complete",
              "cancelled"
            ]
          },
          "adverseItemIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "reasonText": {
            "type": "string",
            "nullable": true
          },
          "waitingDays": {
            "type": "integer"
          },
          "rule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FcraAdverseRule"
              }
            ],
            "nullable": true
          },
          "individualizedAssessment": {
            "type": "boolean"
          },
          "assessmentText": {
            "type": "string",
            "nullable": true
          },
          "medium": {
            "type": "object",
            "additionalProperties": {
              "type": "boolean"
            }
          },
          "preNoticeSentAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "postNoticeScheduledAt": {
            "type": "string",
            "format": "date-time"
          },
          "postNoticeSentAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "pausedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "resumedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "cancelledAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "cancelReason": {
            "type": "string",
            "nullable": true
          },
          "disputeId": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "FcraAdverseCancel": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "default": "client_cancelled"
          }
        }
      },
      "FcraAdjudication": {
        "type": "object",
        "required": [
          "decision"
        ],
        "properties": {
          "decision": {
            "type": "string",
            "enum": [
              "engaged",
              "cleared"
            ]
          }
        }
      },
      "FcraConsumerContact": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true,
            "minLength": 3,
            "maxLength": 254
          },
          "phone": {
            "type": "string",
            "nullable": true,
            "maxLength": 40
          },
          "copyRequested": {
            "type": "boolean",
            "nullable": true
          },
          "locale": {
            "type": "string",
            "nullable": true,
            "enum": [
              "en",
              "es"
            ]
          }
        }
      },
      "FcraReportRevision": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer"
          },
          "reportSha256": {
            "type": "string"
          },
          "pdfSha256": {
            "type": "string",
            "nullable": true
          },
          "disputeId": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "FcraEvergreenConsent": {
        "type": "object",
        "required": [
          "obtainedAt",
          "method",
          "evergreen"
        ],
        "properties": {
          "obtainedAt": {
            "type": "string",
            "format": "date-time"
          },
          "method": {
            "type": "string",
            "enum": [
              "esign",
              "wet_signature",
              "electronic_click",
              "recorded_verbal",
              "other"
            ]
          },
          "documentRef": {
            "type": "string",
            "nullable": true,
            "maxLength": 200
          },
          "evergreen": {
            "type": "boolean"
          },
          "agencyIds": {
            "type": "array",
            "nullable": true,
            "maxItems": 3,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "example": "ag_3f9c1a7e5b2d4c60"
            },
            "description": "Up to three of your active co-agencies (`ag_…`), named on the disclosure after us. 422 `unknown_agency` for an id that is not one of yours, 422 `agency_inactive` for a deactivated one."
          },
          "disclosureScope": {
            "type": "array",
            "nullable": true,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "enum": [
                "professional_license",
                "certification",
                "education",
                "employment_history",
                "motor_vehicle",
                "abuse_registry",
                "identity"
              ]
            },
            "description": "Fixed wording added to the disclosure's statement of what the report may contain, in English or Spanish."
          },
          "customScopeText": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 300,
            "description": "One more line for the disclosure, shown as \"The report may also include: …\". 422 `custom_scope_text_rejected` when it carries waiver or release language, a link or HTML."
          }
        }
      },
      "FcraMonitorCreate": {
        "type": "object",
        "required": [
          "endUserId",
          "permissiblePurpose",
          "consent",
          "subject",
          "searches"
        ],
        "properties": {
          "endUserId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "permissiblePurpose": {
            "type": "string",
            "enum": [
              "employment",
              "tenant_screening",
              "consumer_written_instructions",
              "legitimate_business_need"
            ]
          },
          "consent": {
            "$ref": "#/components/schemas/FcraEvergreenConsent"
          },
          "subject": {
            "$ref": "#/components/schemas/FcraSubject"
          },
          "searches": {
            "type": "array",
            "minItems": 1,
            "maxItems": 3,
            "items": {
              "$ref": "#/components/schemas/FcraSearchSpec"
            }
          },
          "useLocation": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FcraUseLocation"
              }
            ],
            "nullable": true
          },
          "annualSalary": {
            "type": "integer",
            "nullable": true,
            "minimum": 0,
            "maximum": 100000000
          },
          "clientReference": {
            "type": "string",
            "nullable": true,
            "maxLength": 200
          },
          "metadata": {
            "type": "object",
            "nullable": true,
            "additionalProperties": {
              "type": "string"
            }
          },
          "intervalDays": {
            "type": "integer",
            "nullable": true,
            "minimum": 1,
            "maximum": 365
          },
          "baselineOrderId": {
            "type": "string",
            "nullable": true,
            "maxLength": 100
          }
        }
      },
      "FcraMonitor": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "fm_5a6b7c8d9e0f1a2b"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "inactive"
            ]
          },
          "inactiveReason": {
            "type": "string",
            "nullable": true
          },
          "endUserId": {
            "type": "string"
          },
          "permissiblePurpose": {
            "type": "string",
            "enum": [
              "employment",
              "tenant_screening",
              "consumer_written_instructions",
              "legitimate_business_need"
            ]
          },
          "subject": {
            "$ref": "#/components/schemas/FcraSubject"
          },
          "consent": {
            "$ref": "#/components/schemas/FcraEvergreenConsent"
          },
          "searches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FcraSearchSpec"
            }
          },
          "useLocation": {
            "type": "object",
            "nullable": true,
            "properties": {
              "state": {
                "type": "string"
              },
              "city": {
                "type": "string",
                "nullable": true
              }
            }
          },
          "annualSalary": {
            "type": "integer",
            "nullable": true
          },
          "clientReference": {
            "type": "string",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "nullable": true,
            "additionalProperties": {
              "type": "string"
            }
          },
          "intervalDays": {
            "type": "integer"
          },
          "baseline": {
            "type": "object",
            "nullable": true,
            "properties": {
              "takenAt": {
                "type": "string",
                "format": "date-time"
              },
              "candidates": {
                "type": "integer"
              },
              "evaluations": {
                "type": "integer"
              },
              "ordersPlaced": {
                "type": "integer"
              },
              "lastChangeAt": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              },
              "lastRemoved": {
                "type": "integer"
              }
            }
          },
          "firstOrderId": {
            "type": "string",
            "nullable": true
          },
          "lastOrderId": {
            "type": "string",
            "nullable": true
          },
          "lastEvaluatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "nextEvaluateAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "sandbox": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "deactivatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "disclosure": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FcraDisclosureExtension"
              }
            ],
            "description": "Present only when the request named co-agencies, a disclosure scope or a custom scope line: what the disclosure named."
          }
        }
      },
      "FcraCoverageRow": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "example": "TX"
          },
          "name": {
            "type": "string",
            "example": "Texas Sex Offender Registry"
          },
          "jurisdiction": {
            "type": "string",
            "example": "TX"
          },
          "mode": {
            "type": "string",
            "enum": [
              "live",
              "snapshot"
            ]
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-20T15:06:12+00:00"
          },
          "dataAsOf": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "example": "2026-10-20T03:00:00+00:00"
          },
          "status": {
            "type": "string",
            "enum": [
              "answered",
              "unavailable",
              "not_searched"
            ]
          },
          "relevant": {
            "type": "boolean",
            "example": true
          },
          "restricted": {
            "type": "boolean",
            "example": false
          },
          "candidates": {
            "type": "integer",
            "example": 2
          },
          "furnished": {
            "type": "integer",
            "example": 1
          },
          "withheld": {
            "type": "integer",
            "example": 1
          },
          "captureIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "fc_461d419f538a882c"
            ]
          },
          "liveOutcome": {
            "type": "string",
            "nullable": true,
            "enum": [
              "unavailable"
            ],
            "description": "Present only when a source's live check failed and our own copy answered instead (`mode: snapshot`, `dataAsOf`): a registry's or criminal source's copy refreshed within 48 hours (a criminal copy may instead be inside the source's declared window) and holding no candidate for the subject there, or a healthcare list's copy inside its `freshness` window. A record is never furnished from a copy: any candidate still needs a live confirmation.\n"
          },
          "copyStatus": {
            "type": "string",
            "enum": [
              "on_file",
              "none"
            ],
            "description": "`liveScope: matches` searches only. `on_file`: we hold a stored copy of this source and it answered the search; `none`: we hold no copy (searched live when the source supports it).\n"
          },
          "liveReason": {
            "type": "string",
            "nullable": true,
            "enum": [
              "candidate",
              "no_copy",
              "dob_lookup",
              "confirm_clear"
            ],
            "description": "`liveScope: matches` searches only. Why the source was contacted live for this order: `candidate` (a possible record was pulled at its source to confirm it), `no_copy` (we hold no copy of the source), `dob_lookup` (a stored record without a date of birth was looked up), `confirm_clear` (healthcare: a per-person source asked live to confirm the subject is not listed). `null` when it was not contacted.\n"
          },
          "freshness": {
            "type": "object",
            "description": "Healthcare rows only: the source's declared freshness window and how old our copy is. A copy older than `maxAgeDays` makes the row `unavailable`; so does a source with no completed refresh on record (`fresh: null`), and the search is `incomplete` with `freshness_unknown`. Not required on a row answered live (`mode: live`): the live answer is the proof.\n",
            "properties": {
              "maxAgeDays": {
                "type": "integer",
                "nullable": true,
                "example": 14
              },
              "ageDays": {
                "type": "number",
                "nullable": true,
                "example": 3.5
              },
              "fresh": {
                "type": "boolean",
                "nullable": true,
                "example": true
              }
            }
          },
          "matchOn": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "full_dob",
                "npi",
                "license_number"
              ]
            },
            "description": "Healthcare rows only: the identifiers (besides the name) a match on this source can rest on.\n"
          },
          "heldForIdentifiers": {
            "type": "integer",
            "example": 0,
            "description": "Healthcare rows only: name-only candidates held (withheld `insufficient_identifiers`) because nothing but the name agreed.\n"
          },
          "feeds": {
            "type": "array",
            "description": "Healthcare rows of a source made of several lists only (`US-EXCLUSION`: HHS-OIG LEIE + SAM.gov). Each list is judged on its own; the row is `answered` only when every list answered — live, or from its own copy inside its own window. A record from one list is verified by that list only.\n",
            "items": {
              "type": "object",
              "properties": {
                "feed": {
                  "type": "string",
                  "enum": [
                    "leie",
                    "sam"
                  ]
                },
                "mode": {
                  "type": "string",
                  "enum": [
                    "live",
                    "snapshot"
                  ]
                },
                "dataAsOf": {
                  "type": "string",
                  "nullable": true,
                  "description": "The live check time, or the list copy's last refresh (`null` = no refresh on record)."
                },
                "freshness": {
                  "type": "object",
                  "description": "This list's own `maxAgeDays`, `ageDays`, `fresh`. Not required when `mode` is `live`."
                },
                "liveOutcome": {
                  "type": "string",
                  "enum": [
                    "unavailable"
                  ],
                  "description": "Present when this list's live lookup failed."
                }
              }
            }
          }
        }
      },
      "FcraSearch": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "fs_452884eecde9a1f2"
          },
          "type": {
            "type": "string",
            "enum": [
              "sex_offender",
              "criminal",
              "healthcare"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "in_progress",
              "complete",
              "unavailable",
              "error",
              "cancelled",
              "superseded"
            ]
          },
          "result": {
            "type": "string",
            "enum": [
              "records_found",
              "clear",
              "incomplete"
            ],
            "nullable": true
          },
          "recordCount": {
            "type": "integer",
            "example": 1
          },
          "withheld": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-20T15:05:00+00:00"
          },
          "startedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "example": "2026-10-20T15:05:03+00:00"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "example": "2026-10-20T15:09:48+00:00"
          },
          "supersededBy": {
            "type": "string",
            "nullable": true,
            "example": null
          },
          "coverage": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FcraCoverageRow"
            }
          },
          "incompleteReasons": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "source_unanswered",
                "live_unavailable",
                "no_source_searched",
                "freshness_unknown",
                "verification_unavailable",
                "verification_pending",
                "identifiers_needed"
              ]
            }
          },
          "held": {
            "type": "array",
            "description": "liveScope matches only: possible records not on the report because their source has not confirmed them. Jurisdiction and type only, never content.\n",
            "items": {
              "type": "object",
              "properties": {
                "jurisdiction": {
                  "type": "string",
                  "example": "IL-COOK"
                },
                "recordType": {
                  "type": "string",
                  "example": "court_case"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "pending_verification",
                    "not_verifiable"
                  ]
                }
              }
            }
          },
          "heldCount": {
            "type": "integer",
            "example": 0
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FcraFurnishedRecord"
            }
          }
        }
      },
      "FcraFurnishedRecord": {
        "type": "object",
        "description": "A furnished record: the product's own record object (the sex offender Record, or the criminal record) with these FCRA fields added or replaced.\n",
        "additionalProperties": true,
        "properties": {
          "recordId": {
            "type": "string",
            "example": "rec_ab12cd34ef56gh78ij90"
          },
          "type": {
            "type": "string",
            "enum": [
              "sex_offender",
              "criminal",
              "healthcare"
            ]
          },
          "matchBasis": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string",
                "enum": [
                  "dob_match",
                  "npi_match",
                  "license_match"
                ]
              },
              "identifiers": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "example": [
                  "name",
                  "dob"
                ]
              },
              "detail": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "example": [
                  "Full name and date of birth match the registry record."
                ]
              }
            }
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-20T15:06:12+00:00"
          },
          "verifiedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-20T15:09:30+00:00"
          },
          "verification": {
            "description": "liveScope matches only: how the record was confirmed at its source.",
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "verified_at_source"
                ]
              },
              "source": {
                "type": "string",
                "example": "IL-COOK"
              },
              "method": {
                "type": "string",
                "enum": [
                  "name_dob",
                  "identifier"
                ]
              },
              "checkedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2026-10-30T14:02:11+00:00"
              },
              "changedSinceCopy": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "example": [
                  "cases[0].charges[0].disposition"
                ]
              },
              "captureIds": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "example": [
                  "fc_461d419f538a882c"
                ]
              }
            }
          },
          "corrections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "disputeId": {
                  "type": "string",
                  "example": "fd_acae08b7d57ccc18"
                },
                "changes": {
                  "type": "object"
                },
                "correctedAt": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2026-11-03T19:21:07+00:00"
                }
              }
            },
            "example": []
          },
          "dispositionStatus": {
            "type": "string",
            "enum": [
              "conviction",
              "non_conviction",
              "sanction",
              "mixed",
              "unknown"
            ],
            "description": "Criminal records only, across the charges furnished. `sanction` is an exclusion-list record (`recordType: \"healthcare_exclusion\"`) whose basis is not a criminal conviction — furnished only when the search asked for `exclusions: \"all\"`; a conviction-based exclusion reads `conviction`.\n"
          },
          "cases": {
            "type": "array",
            "description": "Criminal records only: the criminal record's own `cases`, every one kept, with each furnished charge carrying `fcraDisposition`.\n",
            "items": {
              "type": "object",
              "properties": {
                "charges": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "fcraDisposition": {
                        "type": "string",
                        "enum": [
                          "conviction",
                          "non_conviction",
                          "sanction",
                          "unknown"
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "fcraRedactions": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            }
          },
          "sandbox": {
            "type": "boolean",
            "example": false
          }
        }
      },
      "FcraCapture": {
        "type": "object",
        "properties": {
          "captureId": {
            "type": "string",
            "example": "fc_461d419f538a882c"
          },
          "searchId": {
            "type": "string",
            "example": "fs_452884eecde9a1f2"
          },
          "source": {
            "type": "string",
            "example": "TX"
          },
          "kind": {
            "type": "string",
            "enum": [
              "source_response",
              "parsed_result",
              "service_result"
            ]
          },
          "url": {
            "type": "string",
            "nullable": true,
            "example": "https://…/search?lastName=RIVERA&dob=1988-04-12"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-20T15:06:12+00:00"
          },
          "httpStatus": {
            "type": "integer",
            "nullable": true,
            "example": 200
          },
          "contentType": {
            "type": "string",
            "nullable": true,
            "example": "text/html; charset=utf-8"
          },
          "sha256": {
            "type": "string",
            "example": "2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae"
          },
          "size": {
            "type": "integer",
            "example": 184233
          },
          "truncated": {
            "type": "boolean",
            "example": false
          }
        }
      },
      "FcraReport": {
        "type": "object",
        "properties": {
          "orderId": {
            "type": "string",
            "example": "fo_ee0b34c5b52fd35b"
          },
          "revision": {
            "type": "integer",
            "example": 1
          },
          "revisedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "removedRecordIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "type": "string",
            "enum": [
              "complete",
              "error"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-20T15:05:00+00:00"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "example": "2026-10-20T15:09:48+00:00"
          },
          "permissiblePurpose": {
            "type": "string",
            "enum": [
              "employment",
              "tenant_screening",
              "consumer_written_instructions",
              "legitimate_business_need"
            ]
          },
          "endUser": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "example": "eu_0b44acbeefeaa7d7"
              },
              "name": {
                "type": "string",
                "nullable": true,
                "example": "Example Health"
              }
            }
          },
          "clientReference": {
            "type": "string",
            "nullable": true,
            "example": "req-2026-1187"
          },
          "subject": {
            "type": "object",
            "properties": {
              "firstName": {
                "type": "string",
                "example": "Jordan"
              },
              "middleName": {
                "type": "string",
                "nullable": true,
                "example": null
              },
              "lastName": {
                "type": "string",
                "example": "Rivera"
              },
              "dob": {
                "type": "string",
                "format": "date",
                "example": "1988-04-12"
              }
            }
          },
          "controlVersion": {
            "type": "string",
            "example": "fcra-controls-2026-10-19.1"
          },
          "sandbox": {
            "type": "boolean",
            "example": false
          },
          "liveScope": {
            "type": "string",
            "enum": [
              "relevant",
              "all",
              "matches"
            ]
          },
          "searches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FcraSearch"
            }
          },
          "scope": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FcraReportScope"
              }
            ],
            "nullable": true
          },
          "identity": {
            "$ref": "#/components/schemas/FcraIdentity"
          },
          "evidence": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FcraCapture"
            }
          },
          "integrity": {
            "type": "object",
            "properties": {
              "reportSha256": {
                "type": "string",
                "example": "7d865e959b2466918c9863afca942d0fb89d7c9ac0c99bafc3749504ded97730"
              },
              "receiptUrl": {
                "type": "string",
                "example": "/v1/fcra/receipts/fo_ee0b34c5b52fd35b"
              },
              "verifyUrl": {
                "type": "string",
                "format": "uri",
                "example": "https://offendersearch.app/verify/fo_ee0b34c5b52fd35b"
              },
              "note": {
                "type": "string",
                "example": "Hash the report body without `integrity` and compare it with `reportSha256`; the receipt signs that hash."
              },
              "pdfSha256": {
                "type": "string",
                "nullable": true,
                "example": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
              }
            }
          }
        }
      },
      "FcraReceipt": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "example": 1
          },
          "currentRevision": {
            "type": "integer",
            "example": 1
          },
          "orderId": {
            "type": "string",
            "example": "fo_ee0b34c5b52fd35b"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-20T15:09:48+00:00"
          },
          "controlVersion": {
            "type": "string",
            "example": "fcra-controls-2026-10-19.1"
          },
          "reportSha256": {
            "type": "string",
            "example": "7d865e959b2466918c9863afca942d0fb89d7c9ac0c99bafc3749504ded97730"
          },
          "pdfSha256": {
            "type": "string",
            "nullable": true,
            "example": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
          },
          "issuedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-20T15:09:49+00:00"
          },
          "algorithm": {
            "type": "string",
            "enum": [
              "Ed25519"
            ]
          },
          "alg": {
            "type": "string",
            "enum": [
              "Ed25519"
            ]
          },
          "keyId": {
            "type": "string",
            "example": "ed25519:88f16fa019c4132c"
          },
          "signature": {
            "type": "string",
            "example": "3nQmYv1x9K2pL7sZc4RbW8tHfJ6aD0eGqU5oVyXiNkAhMrPwSjCl2BgT1uEzFd9IYv0KxHn4eLa7RqW3sMbZtP8oC6jVfU5yNgDiAkQ=="
          },
          "publicKeyPem": {
            "type": "string",
            "example": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEAq1Zk7b3Xn9Y2cR8dT4fV6gH0jK5lM7nP9qS1tU3vW5x=\n-----END PUBLIC KEY-----"
          },
          "signedFields": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "orderId",
              "completedAt",
              "controlVersion",
              "reportSha256",
              "pdfSha256",
              "issuedAt"
            ]
          },
          "canonicalization": {
            "type": "string",
            "example": "JCS (RFC 8785)"
          }
        }
      },
      "FcraDisputeCreate": {
        "type": "object",
        "required": [
          "recordIds",
          "reason"
        ],
        "properties": {
          "recordIds": {
            "type": "array",
            "minItems": 1,
            "maxItems": 100,
            "items": {
              "type": "string"
            },
            "example": [
              "rec_ab12cd34ef56gh78ij90"
            ]
          },
          "reason": {
            "type": "string",
            "enum": [
              "not_me",
              "inaccurate",
              "incomplete",
              "outdated",
              "other"
            ]
          },
          "consumerStatement": {
            "type": "string",
            "nullable": true,
            "maxLength": 8000,
            "example": "This record belongs to a different person with the same name; I have never lived in Texas."
          },
          "receivedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "FcraDisputeInformation": {
        "type": "object",
        "required": [
          "statement"
        ],
        "properties": {
          "statement": {
            "type": "string",
            "minLength": 1,
            "maxLength": 8000,
            "example": "This record belongs to a different person with the same name; I have never lived in Texas."
          }
        }
      },
      "FcraDispute": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "fd_acae08b7d57ccc18"
          },
          "orderId": {
            "type": "string",
            "example": "fo_ee0b34c5b52fd35b"
          },
          "origin": {
            "type": "string",
            "enum": [
              "partner",
              "consumer_portal"
            ]
          },
          "recordIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "rec_ab12cd34ef56gh78ij90"
            ]
          },
          "reason": {
            "type": "string",
            "enum": [
              "not_me",
              "inaccurate",
              "incomplete",
              "outdated",
              "other"
            ]
          },
          "consumerStatement": {
            "type": "string",
            "nullable": true,
            "example": "This record belongs to a different person with the same name; I have never lived in Texas."
          },
          "receivedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-22T13:40:00+00:00"
          },
          "dueAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-11-21T13:40:00+00:00"
          },
          "extendedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "example": null
          },
          "status": {
            "type": "string",
            "enum": [
              "received",
              "investigating",
              "verified",
              "modified",
              "deleted",
              "unable_to_verify"
            ]
          },
          "notes": {
            "type": "string",
            "nullable": true,
            "example": null
          },
          "changes": {
            "type": "object",
            "nullable": true
          },
          "resolvedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "example": null
          },
          "overdue": {
            "type": "boolean",
            "example": false
          }
        }
      },
      "FcraWebhookEndpointPut": {
        "type": "object",
        "required": [
          "url"
        ],
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "minLength": 1,
            "maxLength": 2000,
            "example": "https://hooks.example.com/fcra"
          },
          "rotateSecret": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "FcraWebhookEndpoint": {
        "type": "object",
        "properties": {
          "configured": {
            "type": "boolean",
            "example": true
          },
          "url": {
            "type": "string",
            "format": "uri",
            "example": "https://hooks.example.com/fcra"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-09-15T18:10:00+00:00"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-01T12:00:00+00:00"
          },
          "signatureHeader": {
            "type": "string",
            "enum": [
              "X-Offendersearch-Signature"
            ]
          },
          "secret": {
            "type": "string",
            "example": "whsec_4f1c9a7e2b6d8035c1e7f9a2b4d6e8f0a1c3e5b7d9f1a3c5e7b9d1f3a5c7e9b1"
          }
        }
      },
      "FcraEventData": {
        "type": "object",
        "description": "Identifiers and statuses only — never personal data.",
        "properties": {
          "orderId": {
            "type": "string",
            "example": "fo_ee0b34c5b52fd35b"
          },
          "searchId": {
            "type": "string",
            "example": "fs_452884eecde9a1f2"
          },
          "disputeId": {
            "type": "string",
            "example": "fd_acae08b7d57ccc18"
          },
          "recordId": {
            "type": "string",
            "example": "rec_ab12cd34ef56gh78ij90"
          },
          "type": {
            "type": "string",
            "enum": [
              "sex_offender",
              "criminal",
              "healthcare"
            ]
          },
          "status": {
            "type": "string",
            "example": "complete"
          },
          "result": {
            "type": "string",
            "enum": [
              "records_found",
              "clear",
              "incomplete"
            ]
          },
          "origin": {
            "type": "string",
            "enum": [
              "partner",
              "consumer_portal"
            ]
          },
          "outcome": {
            "type": "string",
            "enum": [
              "verified",
              "modified",
              "deleted",
              "unable_to_verify"
            ]
          },
          "reason": {
            "type": "string",
            "example": "not_current_at_source"
          }
        }
      },
      "FcraWebhookDelivery": {
        "type": "object",
        "description": "The JSON body POSTed to your webhook URL.",
        "properties": {
          "id": {
            "type": "string",
            "example": "fev_5f1e3340306f1d02"
          },
          "type": {
            "type": "string",
            "enum": [
              "order.created",
              "search.completed",
              "order.completed",
              "order.cancelled",
              "dispute.created",
              "dispute.updated",
              "record.corrected",
              "record.verification_pending",
              "record.verified",
              "record.verification_failed"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-20T15:09:49+00:00"
          },
          "data": {
            "$ref": "#/components/schemas/FcraEventData"
          }
        }
      },
      "FcraEvent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "fev_5f1e3340306f1d02"
          },
          "type": {
            "type": "string",
            "enum": [
              "order.created",
              "search.completed",
              "order.completed",
              "order.cancelled",
              "dispute.created",
              "dispute.updated",
              "record.corrected",
              "record.verification_pending",
              "record.verified",
              "record.verification_failed"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-20T15:09:49+00:00"
          },
          "data": {
            "$ref": "#/components/schemas/FcraEventData"
          },
          "delivery": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "delivered",
                  "failed",
                  "no_endpoint"
                ]
              },
              "attempts": {
                "type": "integer",
                "example": 1
              },
              "deliveredAt": {
                "type": "string",
                "format": "date-time",
                "nullable": true,
                "example": "2026-10-20T15:09:50+00:00"
              },
              "nextAttemptAt": {
                "type": "string",
                "format": "date-time",
                "nullable": true,
                "example": null
              },
              "lastStatus": {
                "type": "integer",
                "nullable": true,
                "example": 200
              }
            }
          }
        }
      },
      "FcraPortalSessionRequest": {
        "type": "object",
        "required": [
          "accessCode",
          "lastName",
          "dob"
        ],
        "properties": {
          "accessCode": {
            "type": "string",
            "minLength": 4,
            "maxLength": 40,
            "example": "K7QF-2MXP-9RDA"
          },
          "lastName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "example": "Rivera"
          },
          "dob": {
            "type": "string",
            "format": "date",
            "example": "1988-04-12"
          }
        }
      },
      "FcraPortalRecord": {
        "type": "object",
        "properties": {
          "recordId": {
            "type": "string",
            "example": "rec_ab12cd34ef56gh78ij90"
          },
          "type": {
            "type": "string",
            "enum": [
              "sex_offender",
              "criminal",
              "healthcare"
            ]
          },
          "title": {
            "type": "string",
            "example": "Sex offender registry record — Texas"
          },
          "nameOnRecord": {
            "type": "string",
            "nullable": true,
            "example": "RIVERA, JORDAN LEE"
          },
          "dobOnRecord": {
            "type": "string",
            "nullable": true,
            "example": "1988-04-12"
          },
          "verifiedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "example": "2026-10-20T15:09:30+00:00"
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "Registered: 2012-01-09",
              "Offense: Aggravated sexual assault",
              "Status: Active"
            ]
          },
          "corrected": {
            "type": "boolean",
            "example": false
          },
          "record": {
            "$ref": "#/components/schemas/FcraFurnishedRecord"
          }
        }
      },
      "FcraPortalReport": {
        "type": "object",
        "properties": {
          "order": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "example": "fo_ee0b34c5b52fd35b"
              },
              "date": {
                "type": "string",
                "format": "date-time",
                "example": "2026-10-20T15:05:00+00:00"
              },
              "completedAt": {
                "type": "string",
                "format": "date-time",
                "nullable": true,
                "example": "2026-10-20T15:09:48+00:00"
              },
              "status": {
                "type": "string",
                "enum": [
                  "received",
                  "in_progress",
                  "partial",
                  "complete",
                  "error"
                ]
              },
              "purpose": {
                "type": "string",
                "enum": [
                  "employment",
                  "tenant_screening",
                  "consumer_written_instructions",
                  "legitimate_business_need"
                ]
              },
              "purposeLabel": {
                "type": "string",
                "example": "Employment"
              },
              "requestedBy": {
                "type": "string",
                "nullable": true,
                "example": "Example Staffing"
              },
              "endUser": {
                "type": "string",
                "nullable": true,
                "example": "Example Health"
              },
              "sandbox": {
                "type": "boolean",
                "example": false
              }
            }
          },
          "branding": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FcraBranding"
              }
            ],
            "nullable": true
          },
          "agency": {
            "$ref": "#/components/schemas/FcraAgency"
          },
          "searches": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "sex_offender",
                    "criminal",
                    "healthcare"
                  ]
                },
                "label": {
                  "type": "string",
                  "example": "Sex offender registries"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "queued",
                    "in_progress",
                    "complete",
                    "unavailable",
                    "error"
                  ]
                },
                "result": {
                  "type": "string",
                  "enum": [
                    "records_found",
                    "clear",
                    "incomplete"
                  ],
                  "nullable": true
                },
                "resultLabel": {
                  "type": "string",
                  "nullable": true,
                  "example": "1 record found"
                },
                "completedAt": {
                  "type": "string",
                  "format": "date-time",
                  "nullable": true,
                  "example": "2026-10-20T15:09:48+00:00"
                },
                "coverage": {
                  "type": "object",
                  "nullable": true,
                  "properties": {
                    "searchedLive": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "example": "Texas Sex Offender Registry"
                          },
                          "jurisdiction": {
                            "type": "string",
                            "example": "TX"
                          },
                          "checkedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-10-20T15:06:12+00:00"
                          },
                          "answered": {
                            "type": "boolean",
                            "example": true
                          }
                        }
                      }
                    },
                    "otherSources": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "integer",
                          "example": 57
                        },
                        "oldestDataAsOf": {
                          "type": "string",
                          "format": "date-time",
                          "nullable": true,
                          "example": "2026-10-18T03:00:00+00:00"
                        },
                        "newestDataAsOf": {
                          "type": "string",
                          "format": "date-time",
                          "nullable": true,
                          "example": "2026-10-20T03:00:00+00:00"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FcraPortalRecord"
            }
          },
          "rights": {
            "type": "object",
            "properties": {
              "summaryUrl": {
                "type": "string",
                "format": "uri",
                "example": "https://files.consumerfinance.gov/f/documents/bcfp_consumer-rights-summary_2018-09.pdf"
              },
              "disputeDays": {
                "type": "integer",
                "example": 30
              },
              "supportEmail": {
                "type": "string",
                "example": "support@offendersearch.app"
              }
            }
          }
        }
      },
      "FcraPortalDisputeCreate": {
        "type": "object",
        "required": [
          "recordIds",
          "reason"
        ],
        "properties": {
          "recordIds": {
            "type": "array",
            "minItems": 1,
            "maxItems": 100,
            "items": {
              "type": "string"
            },
            "example": [
              "rec_ab12cd34ef56gh78ij90"
            ]
          },
          "reason": {
            "type": "string",
            "enum": [
              "not_me",
              "inaccurate",
              "incomplete",
              "outdated",
              "other"
            ]
          },
          "statement": {
            "type": "string",
            "nullable": true,
            "maxLength": 8000,
            "example": "This record belongs to a different person with the same name; I have never lived in Texas."
          }
        }
      },
      "FcraPortalDispute": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "fd_acae08b7d57ccc18"
          },
          "recordIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "rec_ab12cd34ef56gh78ij90"
            ]
          },
          "reason": {
            "type": "string",
            "enum": [
              "not_me",
              "inaccurate",
              "incomplete",
              "outdated",
              "other"
            ]
          },
          "consumerStatement": {
            "type": "string",
            "nullable": true,
            "example": "This record belongs to a different person with the same name; I have never lived in Texas."
          },
          "receivedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-22T13:40:00+00:00"
          },
          "dueAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-11-21T13:40:00+00:00"
          },
          "extendedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "example": null
          },
          "status": {
            "type": "string",
            "enum": [
              "received",
              "investigating",
              "verified",
              "modified",
              "deleted",
              "unable_to_verify"
            ]
          },
          "resolvedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "example": null
          },
          "changes": {
            "type": "object",
            "nullable": true
          }
        }
      },
      "FcraConsumerRequest": {
        "type": "object",
        "required": [
          "kind",
          "name",
          "email",
          "message"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "file",
              "dispute"
            ]
          },
          "name": {
            "type": "string",
            "example": "Jordan Rivera"
          },
          "email": {
            "type": "string",
            "example": "jordan.rivera@example.com"
          },
          "message": {
            "type": "string",
            "minLength": 10,
            "example": "Please send me a copy of the report prepared about me in October 2026."
          },
          "website": {
            "type": "string"
          },
          "elapsedMs": {
            "type": "integer"
          }
        }
      },
      "CriminalError": {
        "type": "object",
        "description": "The criminal error shape — a NESTED object (distinct from the Sex-Offender API's flat `{detail}` body). `code` is a stable machine token; `message` is human-readable. **Branch on `code`.**\n",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string",
                "description": "A stable machine token. The full vocabulary across the API: `no_report_input` (400), `not_found` (404), `batch_too_large` (413), `guard_unbounded_query` (422), `prefix_too_short` (422), `invalid_dob` (422), `invalid_page` (422), `invalid_body` (422), `invalid_query` (422), `invalid_live` (422), `no_live_sources` (422), `no_website` (422), `bad_batch` (422), `empty_batch` (422), `query_too_broad` (422, with a `detail` sentence saying what to add — the search could not be read in full, so it was refused rather than answered partially), `invalid_filter_value` (422), `invalid_date_range` (422), `invalid_location` (422), `too_many_locations` (422), `ambiguous_location` (422), `radius_too_large` (422), `filters_with_async_live` (422), `invalid_group_by` (422, stats), `invalid_parameter` (422, stats), `stats_internal_only` (403, stats), `unavailable` (503), `catalog_unavailable` (503), `filters_unavailable` (503), `stats_unavailable` (503, stats), `upstream_timeout` (504). A missing key (401) and an account that cannot be billed (402) come from the gateway in its `GatewayError` shape instead.\n",
                "enum": [
                  "no_report_input",
                  "not_found",
                  "batch_too_large",
                  "guard_unbounded_query",
                  "prefix_too_short",
                  "no_live_sources",
                  "no_website",
                  "bad_batch",
                  "empty_batch",
                  "query_too_broad",
                  "invalid_dob",
                  "invalid_page",
                  "invalid_body",
                  "invalid_query",
                  "invalid_live",
                  "invalid_filter_value",
                  "invalid_date_range",
                  "invalid_location",
                  "too_many_locations",
                  "ambiguous_location",
                  "radius_too_large",
                  "filters_with_async_live",
                  "invalid_group_by",
                  "invalid_parameter",
                  "stats_internal_only",
                  "unavailable",
                  "catalog_unavailable",
                  "filters_unavailable",
                  "stats_unavailable",
                  "retry",
                  "upstream_timeout"
                ],
                "example": "guard_unbounded_query"
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation.",
                "example": "a lastName predicate is required — an unbounded query returns a lottery, not an answer"
              }
            }
          }
        },
        "x-product": "criminal"
      },
      "GatewayError": {
        "type": "object",
        "description": "The body of a `401` or `402`, which the gateway returns before the criminal service runs. One human-readable sentence in `detail`.\n",
        "required": [
          "detail"
        ],
        "properties": {
          "detail": {
            "type": "string",
            "description": "What went wrong and what to do next, in one sentence.",
            "example": "Provide a valid X-API-Key or session token."
          }
        },
        "x-product": "criminal"
      },
      "CriminalQuery": {
        "type": "object",
        "description": "The person / jurisdiction query. `lastName` is required; everything else narrows within a surname. Location filters are `state` and `county` (jurisdiction), plus `city`, `zipcode` and `address`, which describe the person's residence. How the residence is used depends on `residenceMode`: with a full `dob` it defaults to `prefer` — the residence (and the `state` sent with it) RANKS records and labels them (`residenceMatch`), and removes none, so a record in another state or with no published address still comes back; otherwise it defaults to `filter` — `city`, `zipcode` and `address` match the record's residence `address` and so reach only records that publish one. `county` and a `query.website` scope always filter. There is no radius filter. The query fields may also be sent flat at the top level of the body.\n",
        "required": [
          "lastName"
        ],
        "properties": {
          "lastName": {
            "type": "string",
            "description": "**Required.** The surname — the one predicate every search must carry; the API also accepts the alias `last`, but send `lastName` (it is what the schema requires, so a generated client validates). Missing → `422 guard_unbounded_query`. The surname is the anchor: a record whose surname neither equals nor (under `prefix`) starts with your value is DROPPED, and nothing else can rescue it. Case-insensitive, and compared on letters only: accents, apostrophes, spaces and hyphens do not matter (`Muñoz` finds MUNOZ, `O'Brien` finds OBRIEN, `De La Cruz` finds DELACRUZ), and a trailing `Jr`, `Sr`, `II`, `III` or `IV` is not part of the surname (`Smith Jr` finds SMITH and SMITH JR).\n",
            "example": "Hamilton"
          },
          "last": {
            "type": "string",
            "description": "Alias for `lastName`."
          },
          "firstName": {
            "type": "string",
            "description": "Given name; also accepted as `first`. On a CACHED search it narrows: the record's first name must start with your value, and it then scores `firstName:exact` or `firstName:prefix`. On a LIVE check the source's candidates are scored instead: a different first name lowers `matchConfidence` and the record stays, and a record that publishes no first name stays flagged `firstName:absent`. Scoring folds it through a small nickname table (`Bob` ↔ `Robert`); surnames are never folded.\n",
            "example": "Alex"
          },
          "first": {
            "type": "string",
            "description": "Alias for `firstName`."
          },
          "middleName": {
            "type": "string",
            "description": "Middle name or initial; also accepted as `middle`. Never a filter. It breaks ties and downgrades conflicts: a record whose published middle name agrees scores `middleName:match`, ranks higher and corroborates a year/age match in another state (an initial only scores `middleName:initial`); one that conflicts scores `middleName:mismatch`, loses confidence and leaves the `year_or_age_match_same_state` tier. A record that publishes no middle name is unaffected.\n",
            "example": "Lee"
          },
          "middle": {
            "type": "string",
            "description": "Alias for `middleName`."
          },
          "dob": {
            "type": "string",
            "format": "date",
            "description": "Full date of birth, `YYYY-MM-DD` (`MM/DD/YYYY` and `YYYYMMDD` are read as the same date; a two-digit year is refused with `422 invalid_dob`, never guessed). Matched against EVERY kind of birth evidence a record publishes — a full date, else a year, else an age — so one query reaches all of them. The year and month are derived from it automatically. See `matchState` and `matchTier` on each returned record for how it verified. A full `dob` also changes two defaults: `nameStrategy` becomes `exact`, and `residenceMode` becomes `prefer` when a residence is sent.\n",
            "example": "1989-04-23"
          },
          "birthYear": {
            "type": "integer",
            "description": "A year of birth on its own.",
            "example": 1989
          },
          "birthMonth": {
            "type": "integer",
            "minimum": 1,
            "maximum": 12,
            "description": "Refines a year match to month+year when BOTH sides publish a month.",
            "example": 4
          },
          "age": {
            "type": "integer",
            "description": "Used to check against a record that publishes only an age. Tolerance is ±1 year (a published age with an unpublished birthday is consistent with two birth years).\n",
            "example": 36
          },
          "state": {
            "type": "string",
            "description": "USPS state code. Under `residenceMode: \"filter\"` (the default without a residence) it filters to records in that state. Under `prefer` it is the residence's state: records in it rank first and a year/age match there is `year_or_age_match_same_state`, and records from every other state still come back.\n",
            "example": "TX"
          },
          "county": {
            "type": "string",
            "description": "Jurisdiction (county) filter, case-insensitive. Also accepted as `jurisdiction`. Always a filter, in either `residenceMode`.\n",
            "example": "Bexar"
          },
          "jurisdiction": {
            "type": "string",
            "description": "Alias for `county`."
          },
          "city": {
            "type": "string",
            "description": "Residence city. Under `residenceMode: \"filter\"` it is compared case-insensitively against the record's `address.city`, and records with no residence address on file are not returned. Under `prefer` (the default with a full `dob`) it only ranks: a record whose residence is in this city sorts first within its `matchTier` and reads `residenceMatch: \"city\"`.\n",
            "example": "Bexar"
          },
          "zipcode": {
            "type": "string",
            "description": "Residence ZIP. Also accepted as `zip`. Under `residenceMode: \"filter\"` it is matched as a prefix of the record's `address.zipcode` (`\"750\"` matches `75001`) and records without one are not returned. Under `prefer` it only ranks (first five digits compared; `residenceMatch: \"zip\"`).\n",
            "example": "78205"
          },
          "zip": {
            "type": "string",
            "description": "Alias for `zipcode`."
          },
          "address": {
            "type": "string",
            "description": "Street address. Also accepted as `streetAddress`. A one-line address (`\"123 Main St, Springfield, IL 62701, USA\"`) is split into street, `city`, `state` and `zipcode` when those were not sent on their own. Under `residenceMode: \"filter\"` the street text must appear, case-insensitively, inside the record's `address.line1`. Under `prefer` it only labels (`residenceMatch: \"address\"`).\n",
            "example": "Main St"
          },
          "streetAddress": {
            "type": "string",
            "description": "Alias for `address`."
          },
          "prefixMatch": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ],
            "description": "Marks a prefix as deliberate: `\"lastName\"`, `\"firstName\"`, `\"both\"`, a list, or a comma-delimited string. A named field whose value is shorter than 3 characters is refused with `422 prefix_too_short`.\n",
            "example": "lastName"
          },
          "website": {
            "type": "string",
            "description": "A roster / records URL that SCOPES a cached search to the jurisdiction it resolves to — its state/county are applied as the location filter. An explicit `state`/`county` you also send WINS over it. Reported in the top-level `resolution[]`. An unsupported site contributes no scope (the search still runs, just unscoped by that site).\n",
            "example": "https://sheriff.examplecounty.gov/inmates"
          },
          "nameStrategy": {
            "type": "string",
            "enum": [
              "prefix",
              "exact"
            ],
            "default": "prefix",
            "description": "How the SURNAME is matched, mirroring what a data source itself can do so a live pull and the cache narrow the same way. When omitted it is `exact` if a full `dob` was sent (one identified person, not a surname family) and `prefix` otherwise. `prefix` — the record's surname EQUALS your value OR STARTS WITH it. `exact` — the record's surname EQUALS your value. `prefix` is a superset of `exact`. There is no fuzzy (typo) surname matching in this API — a surname either equals your value or starts with it, and nothing else, because in this domain a false positive is the expensive error. A prefix shorter than 3 characters requested explicitly is refused with `422 prefix_too_short`; an implicit 2-character surname silently falls back to exact.\n"
          },
          "matchStates": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "dob_match",
                "year_match",
                "age_match",
                "no_dob_age_year"
              ]
            },
            "description": "Serve only records whose `matchState` is one of these. Omitted (the default) serves every matched record. `[\"dob_match\"]` returns only records whose full date of birth equals the `dob` you sent — the shape an identity-confirmed screening needs, and far fewer rows for a common name. An empty or unknown value is refused with `422 invalid_match_states`.\n"
          },
          "dobPolicy": {
            "type": "string",
            "enum": [
              "any",
              "require"
            ],
            "default": "any",
            "description": "`any` (default) serves every matched record, as before. `require` also drops every `matchTier: \"name_only\"` record — no birth evidence to compare (`matchState: \"no_dob_age_year\"`), or only an uncorroborated year or age in another state — counted in `matchSummary.dobPolicyDropped`. Records whose birth evidence CONTRADICTS your `dob` are dropped under either policy (`matchSummary.dobContradictedDropped`). Needs a `dob`, `birthYear` or `age`, else `422 invalid_dob_policy`.\n"
          },
          "residenceMode": {
            "type": "string",
            "enum": [
              "prefer",
              "filter"
            ],
            "description": "How `city`, `zipcode`, `address` — and, under `prefer`, the `state` sent with them — are used. `prefer` (the default when a full `dob` is sent with any of them): a ranking hint; records whose residence agrees sort first within their `matchTier`, each record says how it compares (`residenceMatch`), and nothing is removed — a person's records in another state, or on a record that publishes no residence, still come back. `filter` (the default otherwise): they filter, exactly as described on each field. Send `prefer` explicitly to make a lone `state` a hint too. Any other value is `422 invalid_residence_mode`.\n"
          }
        },
        "x-product": "criminal"
      },
      "CriminalSearchRequest": {
        "type": "object",
        "description": "The `POST /v1/criminal/search` body. `query` is required (or the query fields sent flat at the top level). `page`/`perPage`/`include` live at the TOP LEVEL, and `live` presence switches on live verification.\n",
        "required": [
          "query"
        ],
        "properties": {
          "query": {
            "$ref": "#/components/schemas/CriminalQuery"
          },
          "live": {
            "$ref": "#/components/schemas/LiveRequest"
          },
          "locations": {
            "type": "array",
            "minItems": 1,
            "maxItems": 10,
            "items": {
              "$ref": "#/components/schemas/Location"
            },
            "description": "Up to 10 places. A record is kept when it matches ANY of them, and each kept record lists the ones it matched in `matchedLocations`. Each location runs its own candidate search (a `jurisdiction` location searches its state and county; a `residence` location searches its ZIP or city when it has one; `any`, and a radius, search the name across every record) and the candidates are pooled before the locations are tested. Send either `locations` or the flat `state` / `county` / `jurisdiction` / `city` / `zipcode` / `address` query keys, not both (`422 ambiguous_location`). An empty list is `422 invalid_location`; more than 10 is `422 too_many_locations`.\n"
          },
          "geography": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SearchGeography"
              }
            ],
            "description": "Search a place in your own words — a county, a ZIP and a radius, a city, or whole states — instead of our jurisdiction codes. The server resolves it to the sources that cover those counties (their county, city and regional sources) plus each state's statewide sources and the federal ones, and keeps only records from those sources. `coverage.geography` in the response names every jurisdiction searched and every asked county with no source of its own. Optional; without it the search is unchanged.\n"
          },
          "recordKinds": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string",
              "enum": [
                "jail-roster",
                "court",
                "doc-inmate",
                "registry",
                "warrant",
                "exclusion"
              ]
            },
            "description": "Only sources holding these kinds of record: `jail-roster` (jail bookings), `court` (court records), `doc-inmate` (prison), `registry`, `warrant`, `exclusion`. Works with or without `geography`. An unknown kind is `422 invalid_record_kinds`.\n",
            "example": [
              "jail-roster",
              "court"
            ]
          },
          "coverage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SearchCoverageRequest"
              }
            ],
            "description": "How far back the sources must reach. A source whose stated window is shorter than `yearsBack` is not searched, and the response lists it in `coverage.geography.yearsBack.droppedShorterWindow`. A source that states no window is searched and counted in `unknownWindow`. To keep only records dated inside a window, use `filters.lookbackYears`.\n"
          },
          "filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SearchFilters"
              }
            ],
            "description": "Narrow the matches by normalized class, date, source or charge. Every filter is ANDed; the values inside one list are ORed. Every record a filter removes is counted in `counts.filteredOut`.\n"
          },
          "sort": {
            "type": "string",
            "enum": [
              "relevance",
              "offenseDate",
              "filedDate",
              "dispositionDate"
            ],
            "default": "relevance",
            "description": "Result order when `filters` or `locations` are sent. A date sort puts the record's latest date of that kind first (newest first) and records without one last. Validated on every search; a search with neither `filters` nor `locations`, and a synchronous live search, keep their usual order.\n"
          },
          "include": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "sourceData",
                "coverage",
                "exclusions",
                "facets",
                "normalizedDetail"
              ]
            },
            "default": [],
            "description": "`\"coverage\"` adds `coverage.sources[]` (every source in scope, with its status) when the query names a `state`. `\"sourceData\"` empties `omittedFields`; records carry the same normalized fields either way. `\"exclusions\"` also returns exclusion-list records (`recordType: \"healthcare_exclusion\"`) whose basis is NOT a criminal conviction — license actions, administrative debarments, loan defaults. Without it, conviction-based exclusions are returned like any other record and the administrative tier is omitted; `counts.exclusionsIncluded` reports which. `\"facets\"` adds `facets` (counts over every matched record) to a search that sends `filters` or `locations`. `\"normalizedDetail\"` adds `rule` to every charge in `normalized.cases[].charges[]`.\n"
          },
          "page": {
            "type": "integer",
            "minimum": 1,
            "default": 1,
            "description": "1-based page number. TOP LEVEL, not inside `query`. Below 1 is `422 invalid_page`."
          },
          "perPage": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200,
            "default": 50,
            "description": "Page size. TOP LEVEL. An integer from 1 to 200 — one response carries at most 200 records; any other value is refused with `422 invalid_page`. Walk `page = 1 … totalPages`; `counts.records` is the total and does not change as you page.\n"
          },
          "subjectId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "description": "Your id for the person being screened — the resident, visitor, applicant or employee id from your own system. Sending it turns clearances on for this search: a person a reviewer marked `not_this_person` for this subject leaves `records[]` (or is annotated — see `clearanceMode`), the response carries `cleared[]` and `counts.clearedSuppressed`, and a kept record a clearance names carries a `clearance` object. Omit it and the response is exactly what it was before clearances existed: no `cleared` key, no `clearedSuppressed`, no `clearance` on any record. Stored only as a per-account hash, never as the id you sent.\n",
            "example": "resident-48213"
          },
          "clientId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "description": "Your id for the facility, tenant or client this subject belongs to. A platform that screens for many facilities sends it so that one facility's clearances never reach another facility's results; a direct customer omits it. Meaningful only with `subjectId`. Stored only as a per-account hash.\n",
            "example": "facility-07"
          },
          "clearanceMode": {
            "type": "string",
            "enum": [
              "suppress",
              "annotate",
              "ignore"
            ],
            "default": "suppress",
            "description": "What a `not_this_person` clearance does to the record it names. `suppress` (the default whenever `subjectId` is sent) removes the record from `records[]` and lists it in `cleared[]`. `annotate` keeps the record and attaches its `clearance` object, for an interface that shows cleared people greyed out. `ignore` answers as if no clearances existed. A `this_person` verdict, and a cleared person who has re-surfaced (`clearance.stale: true`), are kept and annotated in every mode.\n"
          }
        },
        "x-product": "criminal"
      },
      "CriminalReportRequest": {
        "type": "object",
        "description": "The `POST /v1/criminal/report` body. Provide EITHER `searchId` (render a prior search — report charge only) OR an inline `query` (run it inline — search charge plus report). The viewer-identity fields are printed on the document as a record of who ran it; they are not an access gate.\n",
        "properties": {
          "searchId": {
            "type": "string",
            "description": "Id of a prior `/v1/criminal/search` on YOUR account. Renders the stored result without re-running it; bills only the report.\n",
            "example": "crs_7f2a1c9e0b4d6a8f1e23"
          },
          "query": {
            "$ref": "#/components/schemas/CriminalQuery"
          },
          "live": {
            "$ref": "#/components/schemas/LiveRequest"
          },
          "viewerName": {
            "type": "string",
            "description": "Printed at the top of the report — who viewed / verified it. Aliased by `requesterName`.",
            "example": "Taylor Brooks"
          },
          "requesterName": {
            "type": "string",
            "description": "Alias for `viewerName`; read only when `viewerName` is absent."
          },
          "viewerEmail": {
            "type": "string",
            "description": "Printed at the top of the report."
          },
          "purpose": {
            "type": "string",
            "description": "Printed — the stated purpose of the search.",
            "example": "Visitor screening"
          },
          "reference": {
            "type": "string",
            "description": "Printed — your own reference / file number."
          }
        },
        "x-product": "criminal"
      },
      "LiveRequest": {
        "type": "object",
        "description": "The live-verification block. Presence switches on live verification. Supply an explicit `jurisdictions` list, `scope: \"matched\"`, and/or a `websites` list; websites are merged with any codes in `jurisdictions`. If neither is supplied, or the resolved list is empty, the request is refused with `422 no_live_sources` (unless every entry was an unsupported website, which returns `200`/`partial` instead).\n",
        "properties": {
          "jurisdictions": {
            "oneOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "array",
                "items": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/SearchGeography"
                    }
                  ]
                }
              }
            ],
            "description": "An explicit list of PUBLIC jurisdiction codes to check live (`[\"TX-BEXAR\", \"TX-DOC\"]`), and/or geography objects (`[{\"zip\": \"43215\", \"radiusMiles\": 25}]`): each object is resolved to the county, city and regional sources in that area that can be checked live, filtered by the request's `recordKinds` and `coverage.yearsBack`. Statewide and federal sources are checked live only when named by code (`OH-DOC`, `US-DOC`); every live source is billed. One county code may fan out to more than one system we cover for that county; all are checked and each reports its own `sourceStatus[]` row. An unrecognised code is not fatal while at least one code resolves — it is reported as a row with `ok: false` and is never billed; when NOTHING in the list resolves, the request is refused with `422 no_live_sources`.\n",
            "example": [
              "TX-BEXAR",
              "TX-DOC"
            ]
          },
          "scope": {
            "type": "string",
            "enum": [
              "matched"
            ],
            "description": "`\"matched\"` — re-check every jurisdiction that produced a cached-mode hit for this query.\n"
          },
          "websites": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Roster / records URLs to live-verify — resolved to jurisdiction codes and fed into the live path exactly as if you had listed their codes in `jurisdictions`. An unsupported site is reported as its own `sourceStatus[]` row (`code: null`, `incompleteReason: \"unsupported_site\"`) and does not fail the whole search.\n",
            "example": [
              "https://sheriff.examplecounty.gov/inmates"
            ]
          }
        },
        "x-product": "criminal"
      },
      "BatchEnvelope": {
        "type": "object",
        "description": "The batch envelope form. `queries[]` is required; any other key is a batch-wide default applied to every row (a per-row value overrides it).\n",
        "required": [
          "queries"
        ],
        "properties": {
          "queries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CriminalQuery"
            }
          },
          "include": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "sourceData",
                "coverage",
                "exclusions"
              ]
            }
          },
          "page": {
            "type": "integer",
            "minimum": 1,
            "default": 1,
            "description": "Page applied to every row's result."
          },
          "perPage": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200,
            "default": 50,
            "description": "Page size applied to every row's result, 1–200. A row with any other value comes back as an `error` row naming `perPage`.\n"
          },
          "nameStrategy": {
            "type": "string",
            "enum": [
              "prefix",
              "exact"
            ]
          },
          "state": {
            "type": "string",
            "description": "Any query field may be supplied batch-wide as a default."
          }
        },
        "additionalProperties": true,
        "x-product": "criminal"
      },
      "ResolveRequest": {
        "type": "object",
        "description": "One website, or a list. Send exactly one of `website` / `websites`.",
        "properties": {
          "website": {
            "type": "string",
            "description": "A single roster / records website.",
            "example": "https://sheriff.examplecounty.gov/inmates"
          },
          "websites": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "A list of websites, resolved in order."
          }
        },
        "x-product": "criminal"
      },
      "CriminalSearchResponse": {
        "type": "object",
        "description": "The response envelope shared by a cached search, a synchronous live search, and the completed `result` of an async live job. A deliberate mirror of the Sex-Offender API's `/v1/search` envelope.\n",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "complete",
              "partial"
            ],
            "description": "`complete` — the search finished. `partial` — at least one LIVE source could not be searched to the end, so the result is short. **Always `complete` on a cached search**, and never about data age. When `partial`, read `counts.sourcesIncomplete` before treating an empty `records` as a confirmed absence.\n"
          },
          "counts": {
            "$ref": "#/components/schemas/Counts"
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Plain-language notices about anything that shortened this answer, one sentence per condition, each naming the sources. **`[]` when nothing did** (so `warnings == []` is a valid completeness check). The loudest entry is first and begins `INCOMPLETE SEARCH:`. A cached search has `[]`. (There is no candidate limit any more: a search too broad to read in full is refused with `422 query_too_broad`, never answered short.)\n",
            "example": []
          },
          "page": {
            "type": "integer",
            "description": "The page you asked for, echoed back at the TOP LEVEL.",
            "example": 1
          },
          "perPage": {
            "type": "integer",
            "description": "The `perPage` you sent (1–200), echoed back at the top level.",
            "example": 50
          },
          "totalPages": {
            "type": "integer",
            "description": "Total pages at this `perPage`.",
            "example": 1
          },
          "sourceStatus": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CriminalSourceStatus"
            },
            "description": "One entry per LIVE source — the live-verification audit trail. **`[]` on a cached search**, because there is no per-source fan-out to report.\n"
          },
          "cappedOmittedSources": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Always `[]` on this API, and always present (envelope parity with the Sex Offender API). Nothing is ever cut: every stored record that matches the name and filters is read, or the search is refused with `422 query_too_broad`.\n",
            "example": []
          },
          "omittedFields": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "sourceData"
              ]
            },
            "description": "`[\"sourceData\"]` by default, `[]` when `include: [\"sourceData\"]` was sent. Every record carries every normalized field either way; no record key is withheld.\n"
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CriminalRecord"
            },
            "description": "The current page of matched Criminal Records."
          },
          "proof": {
            "type": "object",
            "description": "`{\"status\": \"none\"}` — criminal has no proof documents today; the key is present for envelope parity with the Sex-Offender API's `/v1/search`.\n",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "none"
                ]
              }
            }
          },
          "resolution": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResolutionEntry"
            },
            "description": "**Present only when a website was resolved** (`query.website` / `live.websites`). One `{input, supported, code, note}` per site — which jurisdiction code each mapped to. A plain code-only search omits it.\n"
          },
          "usage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Usage"
              }
            ],
            "description": "**Live searches only.** The live-check count and charge."
          },
          "searchId": {
            "type": "string",
            "description": "`crs_` + 20 hex. Identifies this search; used to poll an async live job and appears in `history`.\n",
            "example": "crs_7f2a1c9e0b4d6a8f1e23"
          },
          "meterEvents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CriminalMeterEvent"
            },
            "description": "What this search metered — a `criminal_call`, and (live) a `criminal_live_source`.\n"
          },
          "legal": {
            "$ref": "#/components/schemas/Legal"
          },
          "coverage": {
            "$ref": "#/components/schemas/SearchCoverage"
          },
          "cleared": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CriminalClearedEntry"
            },
            "description": "Present only when the request carried `subjectId`. One entry per record a `not_this_person` clearance removed from `records[]`, so an interface can say \"2 previously cleared people hidden\" and link each to its clearance. `[]` when nothing was suppressed, including every search in `annotate` or `ignore` mode.\n"
          },
          "facets": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SearchFacets"
              }
            ],
            "description": "Present when the request sent `include: [\"facets\"]`. Counts over every record that passed, not only this page.\n"
          },
          "matchSummary": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MatchSummary"
              }
            ],
            "description": "The identity picture of the WHOLE answer (every record, not only this page): the best `matchTier`, counts per tier and per `matchState`, distinct people, and how many same-name records were dropped. Absent on a search that sent `filters` or `locations`.\n"
          },
          "appliedFilters": {
            "type": "object",
            "additionalProperties": true,
            "description": "Present when the request sent `filters`, `locations`, a `sort` other than `relevance`, or `include: [\"facets\"]`. The filters as validated: every filter that is in force (a `false` boolean is left out), `locations` with the keys each was read as (`kind`, `state`, `county`, `city`, `zipcode`, `lat`, `lng`, `radiusMiles`), and always `unknown` and `chargeMatch`.\n",
            "example": {
              "severity": [
                "felony"
              ],
              "convictedOnly": true,
              "lookbackYears": 7,
              "unknown": "keep",
              "chargeMatch": "any"
            }
          }
        },
        "x-product": "criminal"
      },
      "MatchSummary": {
        "type": "object",
        "description": "One answer's identity picture over every kept record. Read `bestMatch` for the row's verdict without paging; the counts let a bulk caller measure match quality from aggregates.\n",
        "properties": {
          "bestMatch": {
            "type": "string",
            "enum": [
              "dob_match",
              "year_or_age_match_same_state",
              "year_or_age_match",
              "name_only",
              "clear"
            ],
            "description": "The strongest `matchTier` among the records, or `clear` when no record matched. `dob_match` is the only tier that confirms a full date of birth; `name_only` means every record is present on the name alone.\n"
          },
          "byTier": {
            "type": "object",
            "description": "Records per `matchTier`: `dob_match`, `year_or_age_match_same_state`, `year_or_age_match`, `name_only` (every key always present).\n",
            "additionalProperties": {
              "type": "integer"
            }
          },
          "byMatchState": {
            "type": "object",
            "description": "Records per `matchState` (`dob_match`, `year_match`, `age_match`, `no_dob_age_year`); only states that occurred are listed.\n",
            "additionalProperties": {
              "type": "integer"
            }
          },
          "peopleByTier": {
            "type": "object",
            "description": "Distinct people per `matchTier`, counting records that share a `personGroup` once — the same person found by several sources is one person here.\n",
            "additionalProperties": {
              "type": "integer"
            }
          },
          "dobContradictedDropped": {
            "type": "integer",
            "description": "Same-name records dropped because their birth evidence contradicts the query (a different full date, birth year, or an inconsistent age). Never served.\n"
          },
          "dobPolicyDropped": {
            "type": "integer",
            "description": "Records dropped by `dobPolicy: \"require\"` (`matchTier: \"name_only\"`).\n"
          },
          "middleNameConflicts": {
            "type": "integer",
            "description": "Served records whose published middle name conflicts with `middleName`."
          }
        },
        "x-product": "criminal"
      },
      "Counts": {
        "type": "object",
        "description": "Roll-up counts. The three LIVE source counts (`sourcesQueried`, `sourcesComplete`, `sourcesIncomplete`) are `0` on a cached search; `sourcesOnFile` and `sourcesPending` describe the sources behind the answer on every search.\n",
        "properties": {
          "records": {
            "type": "integer",
            "description": "**Total matched, before the page slice.** Not `records.length`.",
            "example": 12
          },
          "recordsReturned": {
            "type": "integer",
            "description": "How many records THIS response carries — the current page.",
            "example": 12
          },
          "sourcesQueried": {
            "type": "integer",
            "description": "LIVE sources queried this request. `0` on a cached search.",
            "example": 0
          },
          "sourcesComplete": {
            "type": "integer",
            "description": "Of those, how many were searched all the way to the end. `status: \"complete\"` means `sourcesComplete == sourcesQueried`.\n",
            "example": 0
          },
          "sourcesIncomplete": {
            "type": "integer",
            "description": "★ **The one count that means something may be missing.** LIVE sources that could not be searched to the end. `> 0` → your result is a LOWER BOUND and an empty `records` is not, on its own, evidence a person is absent. `0` on a cached search.\n",
            "example": 0
          },
          "candidatesCapped": {
            "type": "boolean",
            "description": "Always `false`; kept for compatibility. Since 2026-10-19 every stored record that matches the name and filters is read and scored. A search whose matches cannot all be read within the time budget is refused with HTTP `422` (`error.code: query_too_broad`; `detail` begins \"This query is too broad to be answered completely\") — never answered with a partial result. Narrow it with `firstName` or `state` (a county, city or zipCode alone does not narrow it). `false` otherwise.\n",
            "example": false
          },
          "exclusionsIncluded": {
            "type": "boolean",
            "description": "`true` when the request carried `include: [\"exclusions\"]`, so exclusion-list records whose basis is not a criminal conviction were eligible to be returned. `false` on every other search: conviction-based exclusions are still returned like any other record; the administrative tier (license actions, administrative debarments, loan defaults) was omitted.\n",
            "example": false
          },
          "sourcesOnFile": {
            "type": "integer",
            "description": "Sources available for the state/county searched — the sources behind this answer (the county's own, the state's statewide ones, and the federal ones). Equals `coverage.sourcesOnFile`.\n",
            "example": 5
          },
          "sourcesPending": {
            "type": "integer",
            "description": "Sources for the state/county searched that are not available yet. `> 0` → read `coverage.pendingSources` before treating an empty result as a clear. Equals `coverage.sourcesPending`.\n",
            "example": 1
          },
          "clearedSuppressed": {
            "type": "integer",
            "description": "Records removed from `records[]` by a `not_this_person` clearance for the `subjectId` sent. Present only when the request carried `subjectId`; `0` in `annotate` and `ignore` modes. `counts.records` already excludes them, so `records + clearedSuppressed` is the count before clearances. Each one is listed in `cleared[]`.\n",
            "example": 0
          },
          "filteredOut": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            },
            "description": "Present when the request sent `filters`, `locations`, a `sort` other than `relevance`, or `include: [\"facets\"]`. Records the filters removed, by the filter that removed them; each removed record is counted once. Keys: `locations` (matched none of the locations), `noResidence` (matched none, and a residence test had no published address to test), `sources`, `recordCategory`, `custodyStatus`, `hasPhoto`, `excludeVacatedOrSealed`, `severity`, `outcome`, `convictedOnly`, `chargeCategories`, `offenseDate`, `filedDate`, `dispositionDate`, `lookbackYears`, `statute`, `chargeText`. A record that fails the per-charge test is counted under the first charge filter that, on its own, no charge of the record meets (order `severity`, `outcome`, `convictedOnly`, `chargeCategories`, `statute`, `chargeText`), or under `chargeMatch` when each filter is met by some charge but no single charge meets them all. For a name too common to search unfiltered, the index applies the filters together before matching; those records are counted once under `filters`. `{}` when nothing was removed.\n",
            "example": {
              "severity": 3,
              "outcome": 6,
              "noResidence": 2
            }
          },
          "unknownKept": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            },
            "description": "Present when the request sent `filters`, `locations`, a `sort` other than `relevance`, or `include: [\"facets\"]`. Returned records that passed a filter only because their value is unknown (`unknown: \"keep\"`, the default), by filter: `severity`, `outcome`, `custodyStatus`, `offenseDate`, `filedDate`, `dispositionDate`. `{}` with `unknown: \"exclude\"`.\n",
            "example": {
              "severity": 4
            }
          },
          "quarantined": {
            "type": "integer",
            "description": "Present when the request sent `filters`, `locations`, a `sort` other than `relevance`, or `include: [\"facets\"]`. Candidate records whose normalized values are withheld (`normalized.quality: \"quarantined\"`); their raw fields are served as usual. `0` on a synchronous live search.\n",
            "example": 0
          }
        },
        "x-product": "criminal"
      },
      "SearchCoverage": {
        "type": "object",
        "description": "Which sources stand behind this answer for the state/county searched, and whether any source for that scope is not available yet. Codes are the public codes `GET /v1/criminal/sources` lists. Does not affect `status`.\n",
        "properties": {
          "scope": {
            "type": "object",
            "properties": {
              "state": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The two-letter state the search was restricted to; `null` = nationwide.",
                "example": "TX"
              },
              "county": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The county the search was restricted to, as sent; `null` = not restricted.",
                "example": "Bexar"
              },
              "countyRecognized": {
                "type": "boolean",
                "description": "Present when a county was searched. `false` = no source of that county's own is in the catalog; only statewide and federal sources stood behind the answer.\n",
                "example": true
              }
            }
          },
          "sourcesOnFile": {
            "type": "integer",
            "description": "Sources available for the scope.",
            "example": 5
          },
          "sourcesPending": {
            "type": "integer",
            "description": "Sources for the scope that are not available yet.",
            "example": 1
          },
          "pendingSources": {
            "type": "array",
            "description": "The pending sources. Present when the search names a `state`.",
            "items": {
              "$ref": "#/components/schemas/SearchCoverageSource"
            }
          },
          "sources": {
            "type": "array",
            "description": "Every source in scope with its `status`. Present only when the request sends `include: [\"coverage\"]` and names a `state`.\n",
            "items": {
              "$ref": "#/components/schemas/SearchCoverageSource"
            }
          },
          "geography": {
            "$ref": "#/components/schemas/GeographyCoverage"
          }
        },
        "x-product": "criminal"
      },
      "SearchCoverageSource": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Public jurisdiction code, as in `sources[].code`.",
            "example": "TX-BEXAR"
          },
          "name": {
            "type": "string",
            "example": "Bexar County, TX — County Jail Roster"
          },
          "recordType": {
            "type": "string",
            "example": "County jail roster"
          },
          "scope": {
            "type": "string",
            "enum": [
              "county",
              "state",
              "federal"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "live",
              "pending"
            ],
            "description": "Present on `sources[]` entries."
          }
        },
        "x-product": "criminal"
      },
      "CriminalSourceStatus": {
        "type": "object",
        "description": "One live source's outcome within a search. Present only on a live search (`[]` on a cached search).\n",
        "properties": {
          "code": {
            "type": [
              "string",
              "null"
            ],
            "description": "The public jurisdiction code checked. **`null`** on an `unsupported_site` row — a `live.websites` entry that mapped to no covered jurisdiction.\n",
            "example": "TX-BEXAR"
          },
          "source": {
            "type": [
              "string",
              "null"
            ],
            "description": "A duplicate of `code`, carried for parity with the Sex-Offender API's `sourceStatus[].source`.\n",
            "example": "TX-BEXAR"
          },
          "ok": {
            "type": "boolean",
            "description": "The source was reached and read successfully.",
            "example": true
          },
          "incomplete": {
            "type": "boolean",
            "description": "★ **This source could not be checked to the end.** Its `records` is a lower bound. A source flagged here counts in `counts.sourcesIncomplete` and turns `status` to `partial`.\n",
            "example": false
          },
          "incompleteReason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why it fell short — a closed vocabulary. Non-`null` **only** when `incomplete` is `true`.\n",
            "enum": [
              "captcha_unsolved",
              "proxy_required",
              "source_down",
              "rate_limited",
              "truncated_over_cap",
              "paid_gateway",
              "login_required",
              "timeout",
              "unsupported_site",
              "not_searched"
            ],
            "example": null
          },
          "records": {
            "type": "integer",
            "description": "Records this source contributed to the merged answer.",
            "example": 2
          },
          "lastCheckedAt": {
            "type": "string",
            "format": "date-time",
            "description": "ISO-8601 — when we checked it, this request.",
            "example": "2026-08-25T15:04:11+00:00"
          },
          "live": {
            "type": "boolean",
            "description": "`true` for a source checked live in this request; `false` on an on-file fallback row (below).\n",
            "example": true
          },
          "answeredFrom": {
            "type": "string",
            "enum": [
              "on_file"
            ],
            "description": "Present ONLY on an on-file fallback row: the live check could not run, the source's stored records were in the query's scope, so the row was answered from file — `ok: true`, `incomplete: false`, `live: false`, not billed, and `warnings[]` gains a `LIVE CHECK NOT AVAILABLE:` sentence. Absent on every other row.\n"
          },
          "liveOutcome": {
            "type": "string",
            "enum": [
              "captcha_unsolved",
              "proxy_required",
              "source_down",
              "rate_limited",
              "truncated_over_cap",
              "paid_gateway",
              "login_required",
              "timeout",
              "unsupported_site",
              "not_searched"
            ],
            "description": "Present ONLY with `answeredFrom`: why the live check did not run (an `incompleteReason` token; `not_searched` when the source has no live connector).\n"
          },
          "liveVia": {
            "type": "string",
            "description": "Present ONLY when this code has no live lookup of its own and was checked live at the original source its records are a copy of (a county court roster checked through the statewide court index, a duplicate jail listing through the jail's own roster): that source's public code. The live answer is that source's answer; its records carry that source's code. Absent on every other row.\n"
          },
          "notFoundLive": {
            "type": "integer",
            "description": "Present ONLY on a row whose live check completed in this search: how many of this answer's records from this source the live answer did NOT include (each carries `liveResult: \"not_found_live\"`). `0` when every record was returned. Absent on a row that was not checked live, could not complete, or was answered from file.\n",
            "example": 0
          },
          "feed": {
            "type": "string",
            "enum": [
              "leie",
              "sam"
            ],
            "description": "Present only on a row of a code made of several lists (`US-EXCLUSION`): which list this row speaks for — `leie` (HHS-OIG, looked up live) or `sam` (SAM.gov, answered from file).\n"
          }
        },
        "x-product": "criminal"
      },
      "ResolutionEntry": {
        "type": "object",
        "description": "One entry of the top-level `resolution[]` on a search — which code a resolved website mapped to. The standalone-resolver fields minus `state`/`county`.\n",
        "properties": {
          "input": {
            "type": "string",
            "description": "Your website, echoed back verbatim.",
            "example": "https://sheriff.examplecounty.gov/inmates"
          },
          "supported": {
            "type": "boolean",
            "description": "`true` = we have equivalent data and `code` is populated.",
            "example": true
          },
          "code": {
            "type": [
              "string",
              "null"
            ],
            "description": "The public jurisdiction code, or `null` when unsupported.",
            "example": "TX-BEXAR"
          },
          "note": {
            "type": "string",
            "description": "A plain-language explanation of the outcome.",
            "example": "equivalent data available for this jurisdiction"
          }
        },
        "x-product": "criminal"
      },
      "Usage": {
        "type": "object",
        "description": "The live-check count and charge (live searches only). The count is always the TRUE completed count even when the charge is capped.\n",
        "properties": {
          "liveChecks": {
            "type": "integer",
            "description": "Live sources that completed — the true count, never rounded away.",
            "example": 247
          },
          "liveChargeUsd": {
            "type": "number",
            "description": "`min(completed × $0.02, $2.00)`.",
            "example": 2
          },
          "capped": {
            "type": "boolean",
            "description": "True when the $2.00 ceiling bound the charge.",
            "example": true
          },
          "display": {
            "type": "string",
            "description": "The human line, denominator visible even when capped.",
            "example": "247 live checks · capped at $2.00"
          }
        },
        "x-product": "criminal"
      },
      "CriminalMeterEvent": {
        "type": "object",
        "description": "One metered event this search emitted.",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "criminal_call",
              "criminal_live_source"
            ],
            "description": "`criminal_call` — one per search (cached or live) and one per batch row. `criminal_live_source` — quantity = live sources actually completed.\n"
          },
          "quantity": {
            "type": "integer",
            "description": "The billable quantity for this event.",
            "example": 1
          },
          "chargeCeilingUsd": {
            "type": [
              "number",
              "null"
            ],
            "description": "The $2.00 price ceiling on `criminal_live_source`; `null` on a `criminal_call` (the per-call rate is applied by the charge engine).\n",
            "example": null
          }
        },
        "x-product": "criminal"
      },
      "Legal": {
        "type": "object",
        "description": "The FCRA notice, always present on a search response.",
        "properties": {
          "notice": {
            "type": "string",
            "example": "Not a consumer report. This information may not be used for any purpose under the Fair Credit Reporting Act (15 U.S.C. § 1681 et seq.)."
          }
        },
        "x-product": "criminal"
      },
      "CriminalRecord": {
        "type": "object",
        "description": "One PERSON as returned to a customer. A person can appear in more than one jurisdiction — booked in one county, a court case in another, an inmate record statewide — and is returned as ONE record with every jurisdiction named in `sources[]`. Empties are meaningful and not interchangeable: `\"\"` = a string the source does not publish; `null` = genuinely unknown / not applicable (a date, a number, `sex`, `race`, `dob.date`); `[]` = the record has none of these.\n",
        "properties": {
          "recordType": {
            "type": "string",
            "description": "The kind of record, from the connector that produced it, where it is known — `jail_booking`, `doc_inmate`, `court_case`, `warrant`, `wanted_fugitive`, `registry`, `healthcare_exclusion` and others — and `\"criminal_record\"` otherwise. An open string: give your parser a default branch. `healthcare_exclusion` is a person on a government health-program or federal award exclusion list; it is the one kind that carries a non-null `exclusion` block.\n",
            "example": "criminal_record"
          },
          "externalId": {
            "type": "string",
            "description": "The SOURCE's own key for ONE booking, case or inmate record — a booking number, DOC#, offender id, or case number, verbatim. `\"\"` when the source publishes no such key. It is what `GET /v1/criminal/records/{recordId}` takes and what a live check supersedes — but unique only WITHIN its source, so store it with `sources[].code`. To recognise the same PERSON across a source's records, read `personRef`.\n",
            "example": "TX-BEXAR:booking:889201"
          },
          "personRef": {
            "type": "string",
            "description": "Groups the records one source holds for the same person. A new booking of someone already on file, or a case the source re-issued under a new number, shares the `personRef` of that person's earlier records from that source while each record keeps its own `externalId`. Scoped to the source in `sources[].code`; there is no cross-source person id.\n",
            "example": "prs_8b1d4e6f0a2c3c9e7f1a"
          },
          "name": {
            "$ref": "#/components/schemas/CriminalName"
          },
          "aliases": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Other names on file, as published. `[]` = none on file.",
            "example": [
              "HAMILTON, A Q"
            ]
          },
          "dob": {
            "$ref": "#/components/schemas/Dob"
          },
          "birthYear": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The birth year, flattened to the record level for convenience (same value as `dob.birthYear`). `null` when not known.\n",
            "example": 1989
          },
          "dobPrecision": {
            "type": "string",
            "enum": [
              "full",
              "month_year",
              "year",
              "age",
              "none"
            ],
            "description": "The birth-evidence tier, flattened to the record level (same value as `dob.dobPrecision`).\n"
          },
          "sex": {
            "type": [
              "string",
              "null"
            ],
            "description": "As published, NOT normalized (`\"Male\"`, `\"M\"`, `\"F\"` all occur). `null` when the source publishes none.",
            "example": "M"
          },
          "race": {
            "type": [
              "string",
              "null"
            ],
            "description": "As published, NOT normalized. `null` when the source publishes none.",
            "example": "White"
          },
          "state": {
            "type": [
              "string",
              "null"
            ],
            "description": "The state whose jurisdiction holds this record. Not necessarily where the person lives.",
            "example": "TX"
          },
          "county": {
            "type": [
              "string",
              "null"
            ],
            "description": "The county / jurisdiction, where applicable. County rows carry both `state` and `county`; statewide and federal rows may leave `county` `null`.\n",
            "example": "Bexar"
          },
          "currentStatus": {
            "type": "string",
            "description": "**Open text — the source's status, passed through.** Usually one of `in_custody`, `released`, `on_parole`, `on_probation`, `active_warrant`, `wanted`, `registered`, `disposed`, `absconder`, `deceased`, `excluded`, `unknown`, but sources also write their own words (`booked`, `scheduled`, `arrested`, `incarcerated`, `filed`, `indicted`, `pending`, …). Branch and filter on the closed twin `normalized.custodyStatus` instead. `\"unknown\"` is the default and a real answer — the source did not publish a status, not that we failed to read one. `\"excluded\"` is the status of every exclusion-list record (`recordType: \"healthcare_exclusion\"`) while the person is on the list. Once the person has left the list (`lifecycle.droppedOut: true`, `dropInterpretation: \"reinstated\"`) or `exclusion.reinstatedOn` has passed, it reads `\"unknown\"`: an ended exclusion never reads `\"excluded\"`.\n",
            "example": "released"
          },
          "currentlyIncarcerated": {
            "type": "boolean",
            "description": "Is the person in custody as of the last sweep? **`false` is not \"released\"** — it is also true of someone never booked; read `everIncarcerated` and `currentStatus` for the fuller picture.\n",
            "example": false
          },
          "everIncarcerated": {
            "type": "boolean",
            "description": "Has the person ever been recorded in custody?",
            "example": true
          },
          "dateIncarcerated": {
            "type": [
              "string",
              "null"
            ],
            "description": "Booking / admission date — the \"date incarcerated if ever\". `null` when not published.",
            "example": "2023-05-31"
          },
          "releaseDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Release date, where the source publishes one.",
            "example": "2024-02-10"
          },
          "custodyFacility": {
            "type": [
              "string",
              "null"
            ],
            "description": "The facility, where published.",
            "example": "Bexar County Adult Detention Center"
          },
          "mugshotUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The record's first photo — always `photos[0].url` — or null when none is published. Our hosted copy once held, else the source's own link.\n",
            "example": "https://photos.offendersearch.app/v1/media/CRIM-TX-DALLAS-JAIL/26050252-p0-3f9a1c0b7d2e.jpg"
          },
          "photos": {
            "type": "array",
            "description": "Every photo of the record, mugshot first (ADDITIVE, 2026-11-22). `hosted: true` is our own copy on photos.offendersearch.app (fetch with your API key; 404 when none is held); `hosted: false` is the source's own link, served only until our copy is stored. `mugshotUrl` is always `photos[0].url`. Empty when the source publishes no photo.\n",
            "items": {
              "type": "object",
              "required": [
                "url",
                "hosted"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "example": "https://photos.offendersearch.app/v1/media/CRIM-TX-DALLAS-JAIL/26050252-p0-3f9a1c0b7d2e.jpg"
                },
                "hosted": {
                  "type": "boolean",
                  "example": true
                }
              }
            }
          },
          "matchConfidence": {
            "type": "number",
            "description": "0.0 – 0.99. Assembled from the name-match strength plus a DOB bonus — a CEILING on the evidence held, not a statistical probability. Capped at 0.99: the API never claims a certainty of 1.0. **A high value on a name-only match is still a candidate, not a confirmation** — for anything consequential require `matchState: \"dob_match\"`.\n",
            "example": 0.95
          },
          "matchBasis": {
            "type": "string",
            "description": "Space-separated `field:how` tokens, machine-readable (`\"lastName:exact firstName:prefix dob:year\"`). Name tokens use `exact` / `prefix` / `absent` / `mismatch` / `notQueried`; the DOB token records how the birth evidence lined up (`dob:match`, `dob:year`, `dob:monthYear`, `dob:age`, `dob:ageFromDob`, `dob:absent`). `\"\"` when no name/DOB was queried.\n",
            "example": "lastName:exact firstName:exact dob:match"
          },
          "matchDetail": {
            "type": "string",
            "description": "The same reading in one plain sentence. `\"\"` when nothing was scored.",
            "example": "name and full date of birth agree"
          },
          "matchState": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "dob_match",
              "year_match",
              "age_match",
              "no_dob_age_year",
              null
            ],
            "description": "The DOB/age match outcome, strongest first. `dob_match` — your full date is confirmed: the record publishes a full date equal to it, or (live searches only, where the record publishes none) the jurisdiction confirmed it holds the record under that date — `dobVerification` says which. `year_match` — birth years agree (month too, if both published one); never a full-date confirmation. `age_match` — only an age published, consistent within ±1 year; a plausibility check. `no_dob_age_year` — nothing comparable, returned because the NAME matched; also the value on EVERY record of a search that sent no `dob`/`age`/`birthYear`. `null` only on `GET /v1/criminal/records/{recordId}`, which scores nothing. A `dob_mismatch` (birth evidence contradicted the query) is DROPPED and never appears in `records[]`.\n"
          },
          "matchTier": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "dob_match",
              "year_or_age_match_same_state",
              "year_or_age_match",
              "name_only",
              null
            ],
            "description": "The record's identity strength, and the order `records[]` is sorted in (best first, then `matchConfidence`). `dob_match` — the full date of birth agrees. `year_or_age_match_same_state` — a birth year or age agrees and the record is in the person's state (`state`, or the residence state under `residenceMode: \"prefer\"`), and its middle name does not conflict. `year_or_age_match` — a birth year or age agrees in another state (or no state was sent) and something corroborates it: a full middle name that agrees, the residence city/ZIP, or a published birth month that agrees too. `name_only` — present on the name alone, or only an uncorroborated year or age agrees in another state (a common name has many namesakes of the same age nationwide; `matchState` still says what agreed); also every record of a search that sent no `dob`/`age`/`birthYear`. `null` only on `GET /v1/criminal/records/{recordId}`.\n"
          },
          "residenceMatch": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "address",
              "zip",
              "city",
              "state",
              "none",
              "unknown",
              null
            ],
            "description": "How the record's published residence compares to the residence you sent, under `residenceMode: \"prefer\"`: `address` (street and ZIP agree), `zip`, `city`, `state`, `none` (a residence is published and agrees on none of these), `unknown` (the record publishes no residence). `null` when no residence hint was sent.\n"
          },
          "personGroup": {
            "type": "string",
            "description": "Records in one answer that are the same person share it: the same last name, the same first name (nickname-folded) and the same FULL date of birth, across sources. A record without a full date of birth is its own group — it is never merged with another on a name alone. Stable for the same record and identity; not a person id across answers.\n",
            "example": "pg_3f9a1c0b7e2d"
          },
          "unverified": {
            "type": "boolean",
            "description": "A coarse boolean twin of `matchState`: `true` iff `matchState` is `no_dob_age_year` (the record held nothing to confirm or deny the queried date/age and is present only because the name matched). `false` for `dob_match` / `year_match` / `age_match`. A search that sent no date/age reads `no_dob_age_year`, so every record is `true`; `false` on a record fetched by id.\n",
            "example": false
          },
          "dobVerification": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "record",
              "source_confirmed",
              "source_not_confirmed",
              "unverified",
              null
            ],
            "description": "HOW the queried date/age was checked. `record` — compared against birth data published on the record. `source_confirmed` — the record publishes no birth date, and on a live search the jurisdiction confirmed it holds this record under the `dob` you sent (`dob` stays `null`; nothing is inferred or stored). `source_not_confirmed` — the jurisdiction was asked with your date and did not return this record; it does not say whether it holds a different date or none, so the record is kept and ranked lower. `unverified` — nothing was available to check against, including when no `dob`/`age`/`birthYear` was queried. `null` only on a record fetched by id. The two `source_*` values appear only on a search that carried a full `dob` and a `live` block.\n",
            "example": "record"
          },
          "cases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Case"
            },
            "description": "Court cases and their charges. `[]` when the record is a pure custody/roster entry with no court case attached.\n"
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CriminalSourceRef"
            },
            "description": "Every jurisdiction this person was found in. `[]` = none on file."
          },
          "lifecycle": {
            "$ref": "#/components/schemas/Lifecycle"
          },
          "liveChecked": {
            "type": "boolean",
            "description": "`true` = this record was re-verified live this request (`false` on a cached search). The record-level twin of `sources[].live`.\n",
            "example": false
          },
          "liveResult": {
            "type": "string",
            "enum": [
              "confirmed_live",
              "not_found_live",
              "not_checked"
            ],
            "description": "Present ONLY on a search that ran live checks (a `live` block); absent on a cached search. `confirmed_live` = the live answer carried this record (`liveChecked: true`); `not_found_live` = its source was checked live in this search, the check completed, and the answer did NOT include it — the record is still returned, from our records (`liveChecked: false`), and `warnings[]` carries a `NOT FOUND IN LIVE CHECK:` sentence. It may have been sealed, expunged, or fall outside what the source's live search returns. `not_checked` = its source was not checked live in this search, the check could not complete, or the source was answered from file.\n",
            "example": "confirmed_live"
          },
          "exclusion": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Exclusion"
              },
              {
                "type": "null"
              }
            ],
            "description": "ADDITIVE (2026-10-19). The exclusion list's own facts — program, authority, whether the basis is a criminal conviction, the dates — present only when `recordType` is `\"healthcare_exclusion\"`. `null` on every other record.\n",
            "example": null
          },
          "address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CriminalAddress"
              },
              {
                "type": "null"
              }
            ],
            "description": "The single last-known or registered residence, where the source publishes one (registry and wanted records). `null` when none is published.\n"
          },
          "actualReleaseDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO date of a release that has happened, where published. Distinct from `releaseDate`, which is the projected or scheduled release.\n",
            "example": "2024-02-10"
          },
          "sentence": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Sentence"
              },
              {
                "type": "null"
              }
            ],
            "description": "The record-level sentence, where the source publishes one outside a court case (custody records). `null` when none is published.\n"
          },
          "parole": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Parole"
              },
              {
                "type": "null"
              }
            ],
            "description": "Parole posture, where published. `null` otherwise."
          },
          "custody": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Custody"
              },
              {
                "type": "null"
              }
            ],
            "description": "Custody classification, where published. `null` otherwise."
          },
          "priorFelony": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "The source's prior-felony flag. `null` when the source does not publish one, which is not the same as `false`.\n",
            "example": false
          },
          "veteranStatus": {
            "type": "string",
            "description": "Veteran status as published. `\"\"` when not published.",
            "example": "Non-veteran"
          },
          "clearance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CriminalRecordClearance"
              }
            ],
            "description": "The clearance that names this person, present only when the request carried `subjectId` and this record was kept despite — or because of — a verdict: `annotate` mode, a `this_person` verdict, or a cleared person who has re-surfaced (`stale: true`). Absent on every other record.\n"
          },
          "recordCategory": {
            "type": "string",
            "enum": [
              "court",
              "jail",
              "prison",
              "warrant",
              "registry",
              "exclusion",
              "other"
            ],
            "description": "The kind of record as one closed token: `court`, `jail`, `prison`, `warrant`, `registry`, `exclusion` or `other`. `recordType` keeps the source-specific label; filter on this one.",
            "example": "jail"
          },
          "ethnicity": {
            "type": [
              "string",
              "null"
            ],
            "description": "Ethnicity, as published.",
            "example": "Not Hispanic"
          },
          "placeOfBirth": {
            "type": [
              "string",
              "null"
            ],
            "description": "Place of birth, as published.",
            "example": "Mexico"
          },
          "citizenship": {
            "type": [
              "string",
              "null"
            ],
            "description": "Citizenship, as published.",
            "example": "UNITED STATES OF AMERICA"
          },
          "legalStatus": {
            "type": [
              "string",
              "null"
            ],
            "description": "Legal or correctional status, as published (beyond the normalized `currentStatus`).",
            "example": "Sentenced"
          },
          "custodyLevel": {
            "type": [
              "string",
              "null"
            ],
            "description": "Custody or security level, as published.",
            "example": "Medium"
          },
          "physical": {
            "$ref": "#/components/schemas/Physical",
            "description": "Physical description. Always an object."
          },
          "booking": {
            "$ref": "#/components/schemas/Booking",
            "description": "Booking facts. Always an object."
          },
          "identifiers": {
            "$ref": "#/components/schemas/Identifiers",
            "description": "Official numbers. Always an object."
          },
          "warrant": {
            "$ref": "#/components/schemas/Warrant",
            "description": "Warrant facts. Always an object."
          },
          "supervision": {
            "$ref": "#/components/schemas/Supervision",
            "description": "Supervision facts. Always an object."
          },
          "releaseDates": {
            "$ref": "#/components/schemas/ReleaseDates",
            "description": "Projected and limit release dates. Always an object."
          },
          "registry": {
            "$ref": "#/components/schemas/RegistryFacts",
            "description": "Registry facts. Always an object."
          },
          "vehicles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Vehicles and plates, as published. `[]` when none.",
            "example": [
              "ABC1234 (TX)"
            ]
          },
          "probableCause": {
            "type": [
              "string",
              "null"
            ],
            "description": "Probable-cause or case narrative text, as published.",
            "example": "Entered a habitation without the owner's consent with intent to commit theft."
          },
          "publishedAge": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The age the source printed, when it is one plain number. Separate from `dob.age`, which is tied to the birth evidence.",
            "example": 34
          },
          "notes": {
            "type": [
              "string",
              "null"
            ],
            "description": "Notes or comments the source published.",
            "example": "No holds at release."
          },
          "location": {
            "type": [
              "string",
              "null"
            ],
            "description": "A location the source names (where held, arrested or living), as published.",
            "example": "San Antonio, TX"
          },
          "occupation": {
            "type": [
              "string",
              "null"
            ],
            "description": "Occupation or employer, as published.",
            "example": "Warehouse associate"
          },
          "custodyStatus": {
            "type": [
              "string",
              "null"
            ],
            "description": "The source's own custody wording (beside the normalized `currentStatus`).",
            "example": "In custody"
          },
          "relatedCaseNumbers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Other case, booking, docket or warrant numbers the source lists for this person. `[]` when none.",
            "example": [
              "26-CR-1182"
            ]
          },
          "otherDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OtherDetail"
            },
            "description": "Every other fact the source published that has no named field, as label/value pairs in the source's order. `[]` when none. Labels vary by source: read them, do not branch on them."
          },
          "normalized": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Normalized"
              },
              {
                "type": "null"
              }
            ],
            "description": "ADDITIVE (2026-10-23). Clean classes for this record — category, severity, outcome, NCIC person codes, places, dates — computed from the fields beside it. The source's own words stay in their fields, unchanged. On every record in every response; `null` when the record could not be classified.\n"
          },
          "matchedLocations": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "description": "Present only when the request sent `locations`. The 0-based indexes of the locations this record matched.\n",
            "example": [
              0,
              2
            ]
          },
          "matchesFilters": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "case",
                "charge"
              ],
              "properties": {
                "case": {
                  "type": "integer",
                  "description": "0-based index into `normalized.cases[]`."
                },
                "charge": {
                  "type": "integer",
                  "description": "0-based index into that case's `charges[]`."
                }
              }
            },
            "description": "Present only when the request sent a charge filter (`severity`, `outcome`, `convictedOnly`, `chargeCategories`, `statute` or `chargeText`). The charges that met them: with `chargeMatch: \"any\"`, each charge that met every charge filter; with `\"all\"`, each charge that met at least one. Every charge is still returned.\n",
            "example": [
              {
                "case": 0,
                "charge": 1
              }
            ]
          }
        },
        "x-product": "criminal"
      },
      "CriminalClearedEntry": {
        "type": "object",
        "description": "One record a `not_this_person` clearance removed from `records[]` for the `subjectId` sent. A criminal `personRef` is scoped to one source, so this is one person in one source.\n",
        "properties": {
          "personRef": {
            "type": "string",
            "description": "The cleared person, as the search identified them.",
            "example": "prs_3c9e1f0a7b2d4e6f8a1b"
          },
          "clearanceId": {
            "type": "string",
            "description": "The clearance that applied. `GET /v1/clearances/{clearanceId}` returns it.",
            "example": "clr_7d2f41c0a9b3e8f6"
          },
          "verdict": {
            "type": "string",
            "enum": [
              "not_this_person"
            ],
            "description": "Always `not_this_person`; a `this_person` verdict never removes a record."
          },
          "clearedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the clearance was recorded.",
            "example": "2026-09-30T18:42:07+00:00"
          },
          "recordId": {
            "type": "string",
            "nullable": true,
            "description": "`null`: a criminal record is cited by `externalId` with its `sources[].code`, and the cleared person is identified by `personRef`.\n",
            "example": null
          }
        },
        "x-product": "criminal"
      },
      "CriminalRecordClearance": {
        "type": "object",
        "description": "The clearance that names this record's person, attached to the record when the request carried `subjectId` and the record was kept: in `clearanceMode: \"annotate\"`, on a `this_person` verdict, or because a cleared person has re-surfaced (`stale: true`). A record no clearance names carries no `clearance` key, and a search without `subjectId` never carries one.\n",
        "properties": {
          "clearanceId": {
            "type": "string",
            "example": "clr_7d2f41c0a9b3e8f6"
          },
          "verdict": {
            "type": "string",
            "enum": [
              "not_this_person",
              "this_person"
            ]
          },
          "clearedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the verdict was recorded.",
            "example": "2026-09-30T18:42:07+00:00"
          },
          "stale": {
            "type": "boolean",
            "description": "`true` when this person was cleared as `not_this_person` and is shown anyway, because something about them changed since the clearance or this search matched them more strongly than the search that was cleared. Review the record again and record a new verdict; until you do, the person stays in `records[]`.\n",
            "example": false
          },
          "staleReason": {
            "type": "string",
            "nullable": true,
            "enum": [
              "identity_changed",
              "offenses_changed",
              "status_changed",
              "stronger_match",
              null
            ],
            "description": "Why the person re-surfaced. `identity_changed` — their name or date of birth changed. `offenses_changed` — their cases or charges changed, including a new booking or case in the same source. `status_changed` — their custody status, release date or facility changed. `stronger_match` — this search matched the person more strongly than the search that was cleared (the subject's date of birth now matches where only the name did). `null` when `stale` is `false`.\n",
            "example": null
          }
        },
        "x-product": "criminal"
      },
      "Location": {
        "type": "object",
        "description": "One place in `locations[]`. It needs at least one of `state`, `county`, `city`, `zipcode`, or a radius (`lat`, `lng` and `radiusMiles` together). Any other key is `422 invalid_location`.\n",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "residence",
              "jurisdiction",
              "any"
            ],
            "default": "any",
            "description": "`residence` matches where the person lives (the published address). `jurisdiction` matches where the record is (the court, jail or agency's state and county). `any` matches either. A radius, `city` and `zipcode` describe a residence, so on `jurisdiction` they are `422 invalid_location`; on `any` they test the residence only.\n"
          },
          "state": {
            "type": "string",
            "pattern": "^[A-Za-z]{2}$",
            "description": "Two-letter state code.",
            "example": "TX"
          },
          "county": {
            "type": "string",
            "description": "County name; `Harris` and `Harris County` match the same county.",
            "example": "Harris"
          },
          "city": {
            "type": "string",
            "description": "City of the residence, matched exactly, case-insensitive.",
            "example": "Houston"
          },
          "zipcode": {
            "type": "string",
            "description": "Five-digit ZIP of the residence. A ZIP+4 is read as its first five digits; `zip` is accepted as another name for this key.\n",
            "example": "77060"
          },
          "lat": {
            "type": "number",
            "minimum": -90,
            "maximum": 90,
            "description": "Latitude of the radius centre. Requires `lng` and `radiusMiles`.",
            "example": 32.78
          },
          "lng": {
            "type": "number",
            "minimum": -180,
            "maximum": 180,
            "description": "Longitude of the radius centre. Requires `lat` and `radiusMiles`.",
            "example": -96.8
          },
          "radiusMiles": {
            "type": "number",
            "minimum": 0.1,
            "maximum": 100,
            "description": "Miles from `lat`/`lng` to the person's published residence. Above 100 is `422 radius_too_large`; below 0.1 is `422 invalid_location`. A residence without coordinates cannot be tested and counts as `noResidence`.\n",
            "example": 25
          }
        },
        "x-product": "criminal"
      },
      "DateRange": {
        "type": "object",
        "description": "An inclusive ISO date range. At least one of `from` and `to`; `from` after `to`, a non-ISO value or an impossible date is `422 invalid_date_range`.\n",
        "properties": {
          "from": {
            "type": "string",
            "format": "date",
            "example": "2019-01-01"
          },
          "to": {
            "type": "string",
            "format": "date",
            "example": "2026-10-23"
          }
        },
        "x-product": "criminal"
      },
      "SearchFilters": {
        "type": "object",
        "description": "Every key is optional. Filters are ANDed; values inside one list are ORed. A list filter also takes a single string. Any key not listed here is `422 invalid_filter_value`. Record-level filters (`recordCategory`, `custodyStatus`, `hasPhoto`, `sources`, `excludeVacatedOrSealed`, the dates) test the whole record. Charge filters (`severity`, `outcome`, `convictedOnly`, `chargeCategories`, `statute`, `chargeText`) test its charges, combined by `chargeMatch`.\n",
        "properties": {
          "recordCategory": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "court",
                "jail",
                "prison",
                "warrant",
                "registry",
                "exclusion",
                "other"
              ]
            },
            "description": "The kind of record (`normalized.recordCategory`)."
          },
          "severity": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "felony",
                "misdemeanor",
                "infraction"
              ]
            },
            "description": "Charge severity (`normalized.cases[].charges[].severity`). With `unknown: \"keep\"` an unclassified charge also passes.\n"
          },
          "severityBasis": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "published",
                "statute_code",
                "statute_table",
                "case_type",
                "charge_text"
              ]
            },
            "description": "Narrows `severity`: a charge's severity counts only when it was decided on one of these bases. Must be sent with `severity` — on its own it is a 422 `invalid_filter_value`.\n"
          },
          "outcome": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "convicted",
                "pending",
                "dismissed",
                "nolle_prosequi",
                "acquitted",
                "deferred_or_diverted",
                "vacated",
                "warrant",
                "transferred",
                "closed_unspecified",
                "administrative"
              ]
            },
            "description": "Charge outcome class (`normalized.cases[].charges[].outcome`). With `unknown: \"keep\"` a charge with an unknown outcome also passes.\n"
          },
          "convictedOnly": {
            "type": "boolean",
            "default": false,
            "description": "`true` adds `convicted` to the outcomes a charge may have. Alone it means \"a convicted charge\"; with `outcome` the charge may have any of those outcomes or `convicted`.\n"
          },
          "chargeCategories": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "supervision",
                "homicide",
                "sex_offense",
                "robbery",
                "domestic_violence",
                "dui",
                "assault",
                "weapons",
                "burglary",
                "fraud",
                "theft",
                "drug_distribution",
                "drug_possession",
                "traffic",
                "public_order",
                "other"
              ]
            },
            "description": "What the charge is about (`normalized.cases[].charges[].category`)."
          },
          "chargeMatch": {
            "type": "string",
            "enum": [
              "any",
              "all"
            ],
            "default": "any",
            "description": "`any`: one charge must meet every charge filter. `all`: each charge filter may be met by a different charge on the record.\n"
          },
          "statute": {
            "type": "string",
            "minLength": 2,
            "description": "The start of the published statute citation, ignoring spaces and case. `22.02` matches `22.02(a)(1)`.\n",
            "example": "22.02"
          },
          "chargeText": {
            "type": "string",
            "minLength": 2,
            "description": "Text that appears anywhere in the published charge description, ignoring case.",
            "example": "assault"
          },
          "custodyStatus": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "in_custody",
                "released",
                "on_parole",
                "on_probation",
                "active_warrant",
                "wanted",
                "registered",
                "disposed",
                "absconder",
                "deceased",
                "excluded"
              ]
            },
            "description": "The record's custody status (`normalized.custodyStatus`). With `unknown: \"keep\"` a record whose status is unknown also passes.\n"
          },
          "offenseDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DateRange"
              }
            ],
            "description": "The record's latest offense date must fall in the range."
          },
          "filedDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DateRange"
              }
            ],
            "description": "The record's latest filing date must fall in the range."
          },
          "dispositionDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DateRange"
              }
            ],
            "description": "The record's latest disposition date must fall in the range."
          },
          "lookbackYears": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "The latest of the record's offense, filing and disposition dates must be within this many years of today.\n",
            "example": 7
          },
          "hasPhoto": {
            "type": "boolean",
            "default": false,
            "description": "`true` keeps only records with a published photograph."
          },
          "sources": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string"
            },
            "description": "Keep only records from these source codes.",
            "example": [
              "TX-HARRIS-DC"
            ]
          },
          "excludeVacatedOrSealed": {
            "type": "boolean",
            "default": false,
            "description": "`true` leaves out records marked `normalized.vacatedOrSealed`. By default they are returned, marked.\n"
          },
          "unknown": {
            "type": "string",
            "enum": [
              "keep",
              "exclude"
            ],
            "default": "keep",
            "description": "What `severity`, `outcome`, `convictedOnly`, `custodyStatus` and the date filters do with a value that is not known. `keep` returns the record and counts it in `counts.unknownKept`; `exclude` removes it and counts it in `counts.filteredOut`.\n"
          }
        },
        "x-product": "criminal"
      },
      "SearchFacets": {
        "type": "object",
        "description": "Counts over every record that passed the filters (the whole result, not the page). Each key maps a value to a number of records.\n",
        "properties": {
          "recordCategory": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            },
            "description": "Records by `normalized.recordCategory`.",
            "example": {
              "court": 9,
              "jail": 5
            }
          },
          "severity": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            },
            "description": "Records by their highest charge severity (`unknown` when none is classified).",
            "example": {
              "felony": 2,
              "misdemeanor": 9,
              "unknown": 3
            }
          },
          "outcome": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            },
            "description": "Records by outcome class; a record with several outcomes counts once under each.",
            "example": {
              "convicted": 6,
              "dismissed": 4,
              "pending": 4
            }
          },
          "jurisdiction.state": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            },
            "description": "Records by the state where the record is; the 60 largest.",
            "example": {
              "TX": 12,
              "OK": 2
            }
          },
          "chargeCategories": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            },
            "description": "Records by charge category; a record with several categories counts once under each.",
            "example": {
              "traffic": 7,
              "theft": 3,
              "assault": 2
            }
          },
          "custodyStatus": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            },
            "description": "Records by `normalized.custodyStatus`.",
            "example": {
              "released": 10,
              "in_custody": 4
            }
          }
        },
        "x-product": "criminal"
      },
      "Normalized": {
        "type": "object",
        "description": "The record's normalized classes. Every value is our classification of a published fact; the fact itself is in the record's own fields beside it. A value that cannot be decided from what was published is `unknown` (or `null`), never a guess.\n",
        "properties": {
          "rulesVersion": {
            "type": "integer",
            "description": "Version of the classification rules that produced these values.",
            "example": 1
          },
          "quality": {
            "type": "string",
            "enum": [
              "ok",
              "quarantined"
            ],
            "description": "`quarantined` when this source's normalized values are withheld; the raw fields are unaffected."
          },
          "recordCategory": {
            "type": "string",
            "enum": [
              "court",
              "jail",
              "prison",
              "warrant",
              "registry",
              "exclusion",
              "other"
            ],
            "description": "The kind of record.",
            "example": "jail"
          },
          "custodyStatus": {
            "type": "string",
            "enum": [
              "in_custody",
              "released",
              "on_parole",
              "on_probation",
              "active_warrant",
              "wanted",
              "registered",
              "disposed",
              "absconder",
              "deceased",
              "excluded",
              "unknown"
            ],
            "description": "The person's custody status on this record.",
            "example": "released"
          },
          "sex": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "M",
              "F",
              "X",
              "U",
              null
            ],
            "description": "NCIC sex code. `null` when the source publishes none; its own text stays in `sex`."
          },
          "race": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "W",
              "B",
              "I",
              "A",
              "H",
              "U",
              null
            ],
            "description": "NCIC race code. `H` only where the source publishes Hispanic as a race. Its own text stays in `race`."
          },
          "hair": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "BLK",
              "BRO",
              "BLN",
              "RED",
              "GRY",
              "WHI",
              "SDY",
              "BLD",
              "XXX",
              null
            ],
            "description": "NCIC hair-color code.",
            "example": "BRO"
          },
          "eyes": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "BLK",
              "BLU",
              "BRO",
              "GRN",
              "GRY",
              "HAZ",
              "MAR",
              "PNK",
              "MUL",
              "XXX",
              null
            ],
            "description": "NCIC eye-color code.",
            "example": "BLU"
          },
          "residence": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/NormalizedPlace"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where the person lives, from the published address. `null` when none is published."
          },
          "jurisdiction": {
            "$ref": "#/components/schemas/NormalizedPlace"
          },
          "topSeverity": {
            "type": "string",
            "enum": [
              "felony",
              "misdemeanor",
              "infraction",
              "unknown"
            ],
            "description": "The highest severity of any charge on the record."
          },
          "hasConviction": {
            "type": "boolean",
            "description": "`true` when any charge's outcome is `convicted`.",
            "example": true
          },
          "convictionCount": {
            "type": "integer",
            "description": "Charges whose outcome is `convicted`.",
            "example": 1
          },
          "chargeCategories": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "supervision",
                "homicide",
                "sex_offense",
                "robbery",
                "domestic_violence",
                "dui",
                "assault",
                "weapons",
                "burglary",
                "fraud",
                "theft",
                "drug_distribution",
                "drug_possession",
                "traffic",
                "public_order",
                "other"
              ]
            },
            "description": "Every charge category on the record.",
            "example": [
              "burglary"
            ]
          },
          "outcomes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "convicted",
                "pending",
                "dismissed",
                "nolle_prosequi",
                "acquitted",
                "deferred_or_diverted",
                "vacated",
                "warrant",
                "transferred",
                "closed_unspecified",
                "administrative",
                "unknown"
              ]
            },
            "description": "Every outcome class on the record."
          },
          "latestOffenseDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The latest offense date on the record.",
            "example": "2023-05-30"
          },
          "latestDispositionDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The latest disposition date on the record.",
            "example": "2024-02-09"
          },
          "latestFiledDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The latest filing date on the record.",
            "example": "2023-06-14"
          },
          "hasPhoto": {
            "type": "boolean",
            "description": "`true` when the record has a published photograph.",
            "example": true
          },
          "vacatedOrSealed": {
            "type": "boolean",
            "description": "`true` when the source marks the record or a charge vacated, expunged or sealed. Such records are returned, marked, unless the search sends `excludeVacatedOrSealed: true`.\n",
            "example": false
          },
          "cases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NormalizedCase"
            },
            "description": "One entry per case, in the order of the record's `cases[]`."
          }
        },
        "x-product": "criminal"
      },
      "NormalizedPlace": {
        "type": "object",
        "description": "A place, normalized. Every text key is `null` when not known.",
        "properties": {
          "line1": {
            "type": [
              "string",
              "null"
            ],
            "example": "16966 NORTHCHASE DR APT 313"
          },
          "city": {
            "type": [
              "string",
              "null"
            ],
            "example": "HOUSTON"
          },
          "county": {
            "type": [
              "string",
              "null"
            ],
            "example": "Harris"
          },
          "countyFips": {
            "type": [
              "string",
              "null"
            ],
            "description": "Five-digit county FIPS code.",
            "example": "48201"
          },
          "state": {
            "type": [
              "string",
              "null"
            ],
            "example": "TX"
          },
          "zip5": {
            "type": [
              "string",
              "null"
            ],
            "example": "77060"
          },
          "lat": {
            "type": [
              "number",
              "null"
            ],
            "example": 29.959
          },
          "lng": {
            "type": [
              "number",
              "null"
            ],
            "example": -95.4247
          },
          "geoPrecision": {
            "type": "string",
            "enum": [
              "rooftop",
              "street",
              "zip",
              "none"
            ],
            "description": "How precise `lat`/`lng` are; `none` when there are no coordinates."
          }
        },
        "x-product": "criminal"
      },
      "NormalizedCase": {
        "type": "object",
        "properties": {
          "stage": {
            "type": "string",
            "enum": [
              "open",
              "closed",
              "warrant",
              "unknown"
            ],
            "description": "Where the case stands.",
            "example": "closed"
          },
          "caseClass": {
            "type": "string",
            "enum": [
              "felony",
              "misdemeanor",
              "traffic",
              "infraction",
              "civil",
              "unknown"
            ],
            "description": "The class of case."
          },
          "charges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NormalizedCharge"
            },
            "description": "One entry per charge, in the order of the case's `charges[]`.",
            "example": [
              {
                "category": "burglary",
                "notACharge": false,
                "severity": "felony",
                "severityBasis": "statute_code",
                "degree": "F2",
                "outcome": "convicted",
                "convicted": true,
                "custodyEvent": null,
                "rule": "disposition_text:guilty"
              }
            ]
          }
        },
        "x-product": "criminal"
      },
      "NormalizedCharge": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "enum": [
              "supervision",
              "homicide",
              "sex_offense",
              "robbery",
              "domestic_violence",
              "dui",
              "assault",
              "weapons",
              "burglary",
              "fraud",
              "theft",
              "drug_distribution",
              "drug_possession",
              "traffic",
              "public_order",
              "other"
            ],
            "description": "What the charge is about. `other` when no category fits."
          },
          "notACharge": {
            "type": "boolean",
            "description": "`true` when the text in the charge slot is not an offense (a custody, supervision or caption entry).\n",
            "example": false
          },
          "severity": {
            "type": "string",
            "enum": [
              "felony",
              "misdemeanor",
              "infraction",
              "unknown"
            ]
          },
          "severityBasis": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "published",
              "statute_code",
              "statute_table",
              "case_type",
              "charge_text",
              null
            ],
            "description": "What decided `severity`: `published` (the source states it), `statute_code`, `statute_table`, `case_type` or `charge_text`. `null` when `severity` is `unknown`.\n"
          },
          "degree": {
            "type": [
              "string",
              "null"
            ],
            "description": "The source's class or degree text (`F3`, `Class A`), when stated.",
            "example": "Class A"
          },
          "outcome": {
            "type": "string",
            "enum": [
              "convicted",
              "pending",
              "dismissed",
              "nolle_prosequi",
              "acquitted",
              "deferred_or_diverted",
              "vacated",
              "warrant",
              "transferred",
              "closed_unspecified",
              "administrative",
              "unknown"
            ]
          },
          "convicted": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "`true` for `convicted`; `false` for `acquitted`, `dismissed`, `nolle_prosequi`, `deferred_or_diverted`, `vacated`; `null` otherwise.",
            "example": true
          },
          "custodyEvent": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "booked",
              "released",
              "bonded",
              "held",
              "transferred",
              null
            ],
            "description": "A jail event listed against the charge (not a court outcome). `null` when none."
          },
          "rule": {
            "type": "string",
            "description": "Only with `include: [\"normalizedDetail\"]`. Which rule decided `outcome`, for audits.",
            "example": "disposition_text:guilty"
          }
        },
        "x-product": "criminal"
      },
      "StatsResponse": {
        "type": "object",
        "description": "`GET /v1/criminal/stats` (internal only). Counts of records, never people.",
        "properties": {
          "total": {
            "oneOf": [
              {
                "type": "integer"
              },
              {
                "type": "string",
                "enum": [
                  "<10"
                ]
              }
            ],
            "description": "Records matching the parameters, or `\"<10\"`.",
            "example": 1284
          },
          "groupBy": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The groups requested, in order.",
            "example": [
              "recordCategory",
              "severity"
            ]
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  },
                  "description": "The group's value for each `groupBy` name."
                },
                "count": {
                  "oneOf": [
                    {
                      "type": "integer"
                    },
                    {
                      "type": "string",
                      "enum": [
                        "<10"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "One entry per combination of values, largest first. `[]` without `groupBy`.",
            "example": [
              {
                "key": {
                  "recordCategory": "jail",
                  "severity": "felony"
                },
                "count": 912
              }
            ]
          },
          "note": {
            "type": "string",
            "example": "Counts of records, not people. Cells under 10 are shown as <10."
          }
        },
        "x-product": "criminal"
      },
      "CriminalName": {
        "type": "object",
        "description": "Four string keys, each of which can be `\"\"`. Casing is not normalized (display only; matching is case-insensitive).\n",
        "properties": {
          "first": {
            "type": "string",
            "description": "Given name. `\"\"` here is meaningful for matching — the record is kept and flagged `firstName:absent`, never dropped.\n",
            "example": "ALEX"
          },
          "middle": {
            "type": "string",
            "description": "Middle name or initial, as published.",
            "example": "Q"
          },
          "last": {
            "type": "string",
            "description": "Surname.",
            "example": "HAMILTON"
          },
          "suffix": {
            "type": "string",
            "description": "`JR`, `III`, … as published.",
            "example": ""
          }
        },
        "x-product": "criminal"
      },
      "Dob": {
        "type": "object",
        "description": "The birth-evidence object — one object, several kinds of evidence. Read it as a whole; `dobPrecision` tells you which parts are real. **`date` is a full `YYYY-MM-DD` date or `null` — never anything else, and never a fabricated day.** A source that publishes only a year, or a `1/1` date with nothing else to support it, collapses to `year`. A sentinel (`1900-01-01`, `0001-01-01`, any `9999` date, a year before 1900 or after this year) is no birth evidence: `date` and `birthYear` are `null` and the record reads `age` or `none`.\n",
        "properties": {
          "date": {
            "type": [
              "string",
              "null"
            ],
            "description": "A full `YYYY-MM-DD` date, or `null`. Safe to hand straight to a date parser.",
            "example": "1989-04-23"
          },
          "birthYear": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Year of birth when known (published, or derived from a full `date`).",
            "example": 1989
          },
          "birthMonth": {
            "type": [
              "integer",
              "null"
            ],
            "description": "`1–12` when the source publishes a month+year but no day.",
            "example": 4
          },
          "age": {
            "type": [
              "integer",
              "null"
            ],
            "description": "A published age, or one derived from a full date at capture time.",
            "example": 36
          },
          "ageAsOf": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO date the age was observed — the anchor a derived-age match uses.",
            "example": "2026-03-01"
          },
          "dobPrecision": {
            "type": "string",
            "enum": [
              "full",
              "month_year",
              "year",
              "age",
              "none"
            ],
            "description": "The discriminator. `full` — full date, `date` set. `month_year` — year and month, no day; `date` null. `year` — only the year; `date` null. `age` — only an age (common on jail rosters); `date`/`birthYear` null. `none` — no birth evidence at all.\n"
          }
        },
        "x-product": "criminal"
      },
      "Case": {
        "type": "object",
        "description": "A court case and its charges. `filedDate` is ISO or `null`; the rest of the string fields are `\"\"` when the source publishes nothing.\n",
        "properties": {
          "caseNumber": {
            "type": "string",
            "example": "CR-2023-004182"
          },
          "court": {
            "type": "string",
            "example": "144th District Court, Bexar County"
          },
          "county": {
            "type": "string",
            "example": "Bexar"
          },
          "state": {
            "type": "string",
            "example": "TX"
          },
          "level": {
            "type": "string",
            "enum": [
              "county",
              "state",
              "federal"
            ],
            "default": "county"
          },
          "filedDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO date the case was filed.",
            "example": "2023-06-14"
          },
          "status": {
            "type": "string",
            "description": "Case status, as published.",
            "example": "disposed"
          },
          "charges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Charge"
            },
            "example": [
              {
                "statute": "TPC 30.02",
                "description": "BURGLARY OF HABITATION",
                "severity": "felony",
                "disposition": "GUILTY",
                "dispositionDate": "2024-02-09",
                "offenseDate": "2023-05-30",
                "plea": "GUILTY",
                "counts": 1
              }
            ]
          },
          "sentence": {
            "$ref": "#/components/schemas/Sentence",
            "description": "The sentence imposed on the case, when the source publishes one. **The key is OMITTED entirely** when the case carries no sentence — treat \"absent\" as \"not published\", not \"no sentence\".\n"
          },
          "chargesPending": {
            "type": "boolean",
            "description": "`true` when the court lists this case but its charges have not been retrieved yet — `charges` is then `[]` meaning \"not retrieved yet\", NOT \"none on file\". **The key is OMITTED entirely** otherwise. A live check of the record's source retrieves the charges for that person.\n",
            "example": true
          },
          "caseType": {
            "type": [
              "string",
              "null"
            ],
            "description": "Case type or category, as published (`\"FELONY\"`, `\"Criminal\"`). On a record with more than one case these are `null` / `[]` (the source does not say which case they belong to).",
            "example": "FELONY"
          },
          "judge": {
            "type": [
              "string",
              "null"
            ],
            "description": "Judge or judicial officer. On a record with more than one case these are `null` / `[]` (the source does not say which case they belong to).",
            "example": "Hon. A. Example"
          },
          "attorney": {
            "type": [
              "string",
              "null"
            ],
            "description": "Defense attorney. On a record with more than one case these are `null` / `[]` (the source does not say which case they belong to).",
            "example": "B. Example"
          },
          "prosecutor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Prosecutor. On a record with more than one case these are `null` / `[]` (the source does not say which case they belong to).",
            "example": "Bexar County District Attorney"
          },
          "division": {
            "type": [
              "string",
              "null"
            ],
            "description": "Court division or department. On a record with more than one case these are `null` / `[]` (the source does not say which case they belong to).",
            "example": "Criminal Division"
          },
          "balanceDue": {
            "type": [
              "string",
              "null"
            ],
            "description": "Fines and costs still owed, as published. On a record with more than one case these are `null` / `[]` (the source does not say which case they belong to).",
            "example": "$0.00"
          },
          "plaintiff": {
            "type": [
              "string",
              "null"
            ],
            "description": "Plaintiff or complainant, as published (often the state). On a record with more than one case these are `null` / `[]` (the source does not say which case they belong to).",
            "example": "State of Washington"
          },
          "offenseDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Offense date the source gives for the case. ISO when it parses cleanly. On a record with more than one case these are `null` / `[]` (the source does not say which case they belong to).",
            "example": "2023-05-30"
          },
          "convictedDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Conviction date (or year), as published. On a record with more than one case these are `null` / `[]` (the source does not say which case they belong to).",
            "example": "2024-02-09"
          },
          "sentencedDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Sentencing or judgment date, as published. On a record with more than one case these are `null` / `[]` (the source does not say which case they belong to).",
            "example": "2024-02-09"
          },
          "chargeCount": {
            "type": [
              "string",
              "null"
            ],
            "description": "Number of charges, as published. On a record with more than one case these are `null` / `[]` (the source does not say which case they belong to).",
            "example": "1"
          },
          "chargeSummary": {
            "type": [
              "string",
              "null"
            ],
            "description": "The charge as text, for sources that publish it only as text (calendars, dockets). On a record with more than one case these are `null` / `[]` (the source does not say which case they belong to).",
            "example": "THEFT 3RD DEGREE"
          },
          "lastActivityDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Latest docket, filing or hearing date, as published. On a record with more than one case these are `null` / `[]` (the source does not say which case they belong to).",
            "example": "2024-02-09"
          },
          "nextHearing": {
            "$ref": "#/components/schemas/NextHearing",
            "description": "Next scheduled court event. Always an object. On a record with more than one case these are `null` / `[]` (the source does not say which case they belong to)."
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CaseEvent"
            },
            "description": "Docket history. `[]` when none. On a record with more than one case these are `null` / `[]` (the source does not say which case they belong to).",
            "example": [
              {
                "date": "2023-08-21",
                "type": "PRE-TRIAL CONFERENCE",
                "description": "Criminal Complaint",
                "outcome": "Continued"
              }
            ]
          }
        },
        "x-product": "criminal"
      },
      "Sentence": {
        "type": "object",
        "description": "A sentence imposed on a case. String fields are `\"\"` when the source publishes nothing; dates are ISO or `null`; `fine` is `null` when unpriced. Present only when the case carries a sentence (the `sentence` key is otherwise omitted).\n",
        "properties": {
          "length": {
            "type": "string",
            "description": "The sentence length, verbatim as published (e.g. \"10 Years\", \"LIFE\").",
            "example": "10 Years"
          },
          "minDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO date — earliest release / parole eligibility, where published.",
            "example": "2026-01-01"
          },
          "maxDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO date — maximum expiration, where published.",
            "example": "2031-01-01"
          },
          "probation": {
            "type": "string",
            "description": "Probation terms, verbatim. `\"\"` when none published.",
            "example": "5 Years Community Supervision"
          },
          "fine": {
            "type": [
              "string",
              "null"
            ],
            "description": "The fine as published. `null` when unpriced.",
            "example": "$1,000.00"
          },
          "dischargeDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO date the sentence was discharged, where published.",
            "example": null
          },
          "years": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The years part of the sentence length, where published as a number.",
            "example": 10
          },
          "months": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The months part of the sentence length, where published as a number.",
            "example": 0
          },
          "goodTimeLaw": {
            "type": "string",
            "description": "The good-time law that applies, in the source's words. `\"\"` when not published.",
            "example": "Eligible for good-time credit"
          },
          "truthInSentencing": {
            "type": "string",
            "description": "The truth-in-sentencing designation, in the source's words. `\"\"` when not published.",
            "example": "85%"
          }
        },
        "x-product": "criminal"
      },
      "Parole": {
        "type": "object",
        "description": "Parole posture as published. Dates are ISO or `null`; strings `\"\"` when not published.",
        "properties": {
          "eligibilityDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO date the person becomes eligible for parole.",
            "example": "2026-01-01"
          },
          "nextReviewDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO date of the next parole review.",
            "example": "2026-11-15"
          },
          "reviewStatus": {
            "type": "string",
            "description": "Parole review status, as published.",
            "example": "Scheduled"
          },
          "lastDecision": {
            "type": "string",
            "description": "The most recent parole decision, as published.",
            "example": "Denied"
          }
        },
        "x-product": "criminal"
      },
      "Custody": {
        "type": "object",
        "description": "Custody classification detail, alongside `currentStatus` and `custodyFacility`.",
        "properties": {
          "custodyClass": {
            "type": "string",
            "description": "Custody classification, as published.",
            "example": "Medium"
          },
          "description": {
            "type": "string",
            "description": "Custody description, as published.",
            "example": "General population"
          },
          "facilityType": {
            "type": "string",
            "description": "Facility type, as published.",
            "example": "County jail"
          }
        },
        "x-product": "criminal"
      },
      "Physical": {
        "type": "object",
        "description": "Physical description as the source publishes it. Every key is present; `null` when the source shows none. Values are the source's own text — `\"5'10\"`\" and `\"510\"` both occur — never converted.",
        "required": [
          "height",
          "weight",
          "hairColor",
          "eyeColor",
          "build",
          "skinTone",
          "marks",
          "heightInches",
          "weightPounds"
        ],
        "properties": {
          "height": {
            "type": [
              "string",
              "null"
            ],
            "description": "Height, as published.",
            "example": "5'10\""
          },
          "weight": {
            "type": [
              "string",
              "null"
            ],
            "description": "Weight, as published.",
            "example": "180 lbs"
          },
          "hairColor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Hair color, as published.",
            "example": "Brown"
          },
          "eyeColor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Eye color, as published.",
            "example": "Blue"
          },
          "build": {
            "type": [
              "string",
              "null"
            ],
            "description": "Build, as published.",
            "example": "Medium"
          },
          "skinTone": {
            "type": [
              "string",
              "null"
            ],
            "description": "Skin tone or complexion, as published.",
            "example": "Light"
          },
          "marks": {
            "type": [
              "string",
              "null"
            ],
            "description": "Scars, marks and tattoos, as published.",
            "example": "Tattoo, left forearm"
          },
          "heightInches": {
            "type": [
              "integer",
              "null"
            ],
            "description": "`height` in total inches, when it is unambiguous (`5'10\"`, `5-10`, `510`). `null` otherwise.",
            "example": 70
          },
          "weightPounds": {
            "type": [
              "integer",
              "null"
            ],
            "description": "`weight` in pounds, when it is unambiguous (`180`, `180 lbs`). `null` otherwise.",
            "example": 180
          }
        },
        "x-product": "criminal"
      },
      "Bond": {
        "type": "object",
        "description": "Bond or bail set on a booking.",
        "required": [
          "amount",
          "text",
          "type",
          "company"
        ],
        "properties": {
          "amount": {
            "type": [
              "number",
              "null"
            ],
            "description": "The amount as a number, when the source publishes ONE plain amount (or a list of amounts that all parse, totalled). `null` otherwise — read `text`.",
            "example": 1500
          },
          "text": {
            "type": [
              "string",
              "null"
            ],
            "description": "The bond exactly as published (`\"$1,500.00\"`, `\"NO BOND\"`, `\"$500; $250\"`).",
            "example": "$1,500.00"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Bond type or remarks, as published.",
            "example": "Cash"
          },
          "company": {
            "type": [
              "string",
              "null"
            ],
            "description": "Bonding company, as published.",
            "example": "Example Bail Bonds, Inc."
          }
        },
        "x-product": "criminal"
      },
      "Booking": {
        "type": "object",
        "description": "The booking facts a jail roster publishes. Every key is present; `null` / `[]` when not published, which is typical outside jail records.",
        "required": [
          "bookingNumber",
          "bookingDate",
          "arrestDate",
          "arrestingAgency",
          "heldForAgency",
          "arrestingOfficer",
          "housing",
          "daysInJail",
          "priorBookings",
          "arrestTime",
          "bookingTime",
          "bookingType",
          "releaseReason",
          "bond",
          "holds"
        ],
        "properties": {
          "bookingNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "The jail's booking number.",
            "example": "2026-004812"
          },
          "bookingDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Booking date — ISO `YYYY-MM-DD` when it parses cleanly, otherwise the source's text.",
            "example": "2026-10-03"
          },
          "arrestDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Arrest date — ISO when it parses cleanly, otherwise the source's text.",
            "example": "2026-10-02"
          },
          "arrestingAgency": {
            "type": [
              "string",
              "null"
            ],
            "description": "The arresting agency.",
            "example": "Example County Sheriff's Office"
          },
          "heldForAgency": {
            "type": [
              "string",
              "null"
            ],
            "description": "The agency the person is held for, when different.",
            "example": "Example Police Department"
          },
          "arrestingOfficer": {
            "type": [
              "string",
              "null"
            ],
            "description": "The arresting officer, as published.",
            "example": "Officer A. Morgan"
          },
          "housing": {
            "type": [
              "string",
              "null"
            ],
            "description": "Housing unit, pod, dorm or cell.",
            "example": "2C-11"
          },
          "daysInJail": {
            "type": [
              "string",
              "null"
            ],
            "description": "Days in custody on this booking, as published.",
            "example": "12"
          },
          "priorBookings": {
            "type": [
              "string",
              "null"
            ],
            "description": "Number of earlier bookings, as published.",
            "example": "3"
          },
          "arrestTime": {
            "type": [
              "string",
              "null"
            ],
            "description": "Arrest time, as published.",
            "example": "11:39 PM"
          },
          "bookingTime": {
            "type": [
              "string",
              "null"
            ],
            "description": "Booking or intake time, as published.",
            "example": "1:05 AM"
          },
          "bookingType": {
            "type": [
              "string",
              "null"
            ],
            "description": "Booking or entry type, as published.",
            "example": "New arrest"
          },
          "releaseReason": {
            "type": [
              "string",
              "null"
            ],
            "description": "How the person was released (bonded out, time served, transferred), as published.",
            "example": "Bonded out"
          },
          "bond": {
            "$ref": "#/components/schemas/Bond",
            "description": "Bond or bail. Always an object; its keys are `null` when no bond is published."
          },
          "holds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Holds and detainers, as published. `[]` when none.",
            "example": [
              "US Marshals"
            ]
          }
        },
        "x-product": "criminal"
      },
      "Identifiers": {
        "type": "object",
        "description": "Official numbers the source publishes for this person or case. Every key is present; `null` when not published.",
        "required": [
          "inmateNumber",
          "stateId",
          "fbiNumber",
          "trackingNumber",
          "warrantNumber",
          "ncicNumber",
          "citationNumber",
          "policeReportNumber",
          "registrationNumber",
          "localPersonNumber"
        ],
        "properties": {
          "inmateNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Prison or inmate number (DOC number, DIN, offender number).",
            "example": "A123456"
          },
          "stateId": {
            "type": [
              "string",
              "null"
            ],
            "description": "State identification number (SID / SBI).",
            "example": "12345678"
          },
          "fbiNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "FBI number.",
            "example": "123456AB7"
          },
          "trackingNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Offense tracking number (OTN / ITN).",
            "example": "T1234567"
          },
          "warrantNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Warrant number.",
            "example": "W26-1182"
          },
          "ncicNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "NCIC number.",
            "example": "W123456789"
          },
          "citationNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Citation number.",
            "example": "C26-55012"
          },
          "policeReportNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Police or incident report number.",
            "example": "26-017733"
          },
          "registrationNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Registry registration number.",
            "example": "R-20991"
          },
          "localPersonNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "The local agency's own person or arrest number (jacket, SO, SPN, MNI, ATN).",
            "example": "J-118204"
          }
        },
        "x-product": "criminal"
      },
      "Warrant": {
        "type": "object",
        "description": "Warrant and wanted-person facts. Every key is present; `null` when not published, which is typical outside warrant records.",
        "required": [
          "issuedDate",
          "issuedBy",
          "type",
          "reward",
          "caution",
          "escapedFrom",
          "escapedDate",
          "lastSeen",
          "outstanding",
          "captured"
        ],
        "properties": {
          "issuedDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Date issued or wanted since — ISO when it parses cleanly, otherwise the source's text.",
            "example": "2025-12-04"
          },
          "issuedBy": {
            "type": [
              "string",
              "null"
            ],
            "description": "The agency that issued it or wants the person.",
            "example": "Example County Sheriff"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Warrant type, as published.",
            "example": "Parole violation"
          },
          "reward": {
            "type": [
              "string",
              "null"
            ],
            "description": "Reward, as published.",
            "example": "$3,000"
          },
          "caution": {
            "type": [
              "string",
              "null"
            ],
            "description": "Caution text, as published.",
            "example": "ARMED AND DANGEROUS"
          },
          "escapedFrom": {
            "type": [
              "string",
              "null"
            ],
            "description": "The facility escaped from.",
            "example": null
          },
          "escapedDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Escape date.",
            "example": null
          },
          "lastSeen": {
            "type": [
              "string",
              "null"
            ],
            "description": "Last-seen location or date, as published.",
            "example": "San Antonio, TX"
          },
          "outstanding": {
            "type": [
              "string",
              "null"
            ],
            "description": "Outstanding or active warrant note, as published.",
            "example": "Active"
          },
          "captured": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "`true` when the source marks the person captured or located, `false` when it says not, `null` when it says nothing.",
            "example": false
          }
        },
        "x-product": "criminal"
      },
      "Supervision": {
        "type": "object",
        "description": "Parole or probation supervision. Every key is present; `null` when not published.",
        "required": [
          "officer",
          "office",
          "status",
          "type"
        ],
        "properties": {
          "officer": {
            "type": [
              "string",
              "null"
            ],
            "description": "Supervising officer or agent.",
            "example": "J. Example"
          },
          "office": {
            "type": [
              "string",
              "null"
            ],
            "description": "Supervising office.",
            "example": "Region 3 Parole Office"
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "description": "Supervision status, as published.",
            "example": "Active"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Supervision type, as published.",
            "example": "Parole"
          }
        },
        "x-product": "criminal"
      },
      "ReleaseDates": {
        "type": "object",
        "description": "Projected and limit release dates a prison publishes (the actual release is `actualReleaseDate`). ISO when the text parses cleanly, otherwise the source's text; `null` when not published.",
        "required": [
          "projected",
          "earliest",
          "maximum",
          "supervisionEnds",
          "parole"
        ],
        "properties": {
          "projected": {
            "type": [
              "string",
              "null"
            ],
            "description": "Projected or tentative release date.",
            "example": "2031-07-14"
          },
          "earliest": {
            "type": [
              "string",
              "null"
            ],
            "description": "Earliest or minimum release / parole-eligibility date.",
            "example": "2028-01-10"
          },
          "maximum": {
            "type": [
              "string",
              "null"
            ],
            "description": "Maximum release date.",
            "example": "2033-07-14"
          },
          "supervisionEnds": {
            "type": [
              "string",
              "null"
            ],
            "description": "End of supervision.",
            "example": "2034-07-14"
          },
          "parole": {
            "type": [
              "string",
              "null"
            ],
            "description": "Parole or parole-eligibility date, as published.",
            "example": "2028-01-10"
          }
        },
        "x-product": "criminal"
      },
      "RegistryFacts": {
        "type": "object",
        "description": "Facts a non-sex-offender registry publishes (violent-offender, arson, animal-abuse, habitual-DUI and similar). Every key is present; `null` when not published.",
        "required": [
          "name",
          "registeredOn",
          "lastRegistered",
          "expires",
          "compliance",
          "offenderType",
          "victimAge",
          "lifetime"
        ],
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Which registry, in words.",
            "example": "Violent offender"
          },
          "registeredOn": {
            "type": [
              "string",
              "null"
            ],
            "description": "First registration date.",
            "example": "2019-04-02"
          },
          "lastRegistered": {
            "type": [
              "string",
              "null"
            ],
            "description": "Most recent registration date.",
            "example": "2026-04-02"
          },
          "expires": {
            "type": [
              "string",
              "null"
            ],
            "description": "Registration end date.",
            "example": "2029-04-02"
          },
          "compliance": {
            "type": [
              "string",
              "null"
            ],
            "description": "Compliance status, as published.",
            "example": "Compliant"
          },
          "offenderType": {
            "type": [
              "string",
              "null"
            ],
            "description": "Offender type or tier, as published.",
            "example": "Violent offender"
          },
          "victimAge": {
            "type": [
              "string",
              "null"
            ],
            "description": "Victim age, as published.",
            "example": "Adult"
          },
          "lifetime": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "`true` when the registry marks the registration lifetime, `false` when it says not, `null` when it says nothing.",
            "example": false
          }
        },
        "x-product": "criminal"
      },
      "NextHearing": {
        "type": "object",
        "description": "The next scheduled court event. Every key is present; `null` when not published.",
        "required": [
          "date",
          "time",
          "type",
          "courtroom"
        ],
        "properties": {
          "date": {
            "type": [
              "string",
              "null"
            ],
            "description": "Date — ISO when it parses cleanly, otherwise the source's text.",
            "example": "2026-12-07"
          },
          "time": {
            "type": [
              "string",
              "null"
            ],
            "description": "Time, as published.",
            "example": "9:00 AM"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Hearing type, as published.",
            "example": "Pre-trial conference"
          },
          "courtroom": {
            "type": [
              "string",
              "null"
            ],
            "description": "Courtroom, as published.",
            "example": "3"
          }
        },
        "x-product": "criminal"
      },
      "OtherDetail": {
        "type": "object",
        "description": "One more fact the source published that has no named field above, under the source's own label.",
        "required": [
          "label",
          "value"
        ],
        "properties": {
          "label": {
            "type": "string",
            "description": "The source's own name for the fact, in words (`\"Arrest type\"`, `\"County of commitment\"`).",
            "example": "Arrest type"
          },
          "value": {
            "type": "string",
            "description": "The value as published. Lists and small tables are joined with `; `.",
            "example": "On-view"
          }
        },
        "x-product": "criminal"
      },
      "CaseEvent": {
        "type": "object",
        "description": "One entry of the docket history.",
        "required": [
          "date",
          "type",
          "description",
          "outcome"
        ],
        "properties": {
          "date": {
            "type": [
              "string",
              "null"
            ],
            "description": "Date — ISO when it parses cleanly, otherwise the source's text.",
            "example": "2022-05-11"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Event type (`\"PRE-TRIAL CONFERENCE\"`, `\"filing\"`, `\"judgment\"`).",
            "example": "PRE-TRIAL CONFERENCE"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "What happened, as published.",
            "example": "Criminal Complaint"
          },
          "outcome": {
            "type": [
              "string",
              "null"
            ],
            "description": "Outcome or disposition, as published.",
            "example": "Continued"
          }
        },
        "x-product": "criminal"
      },
      "CriminalAddress": {
        "type": "object",
        "description": "A residence. Same slots as the Sex Offender API's address. String fields are `\"\"` when not published.\n",
        "properties": {
          "type": {
            "type": "string",
            "description": "Address kind. `residence` unless the source labels it otherwise.",
            "example": "residence"
          },
          "line1": {
            "type": "string",
            "example": "4120 Elm St"
          },
          "city": {
            "type": "string",
            "example": "San Antonio"
          },
          "county": {
            "type": "string",
            "example": "Bexar"
          },
          "state": {
            "type": "string",
            "example": "TX"
          },
          "zipcode": {
            "type": "string",
            "example": "78205"
          },
          "lat": {
            "type": [
              "number",
              "null"
            ],
            "description": "Always `null` on criminal records.",
            "example": null
          },
          "lng": {
            "type": [
              "number",
              "null"
            ],
            "description": "Always `null` on criminal records.",
            "example": null
          }
        },
        "x-product": "criminal"
      },
      "Charge": {
        "type": "object",
        "description": "One charge on a case. Note `severity: null` is \"not classified by the source\", NOT \"minor\" — do not infer severity from an empty field.\n",
        "properties": {
          "statute": {
            "type": "string",
            "description": "The cited statute, verbatim. `\"\"` when the source publishes a description but no citation.",
            "example": "TPC 30.02"
          },
          "description": {
            "type": "string",
            "example": "BURGLARY OF HABITATION"
          },
          "severity": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "felony",
              "misdemeanor",
              "infraction",
              null
            ],
            "description": "`null` when the source does not classify it."
          },
          "disposition": {
            "type": "string",
            "example": "GUILTY"
          },
          "dispositionDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO date.",
            "example": "2024-02-09"
          },
          "offenseDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO date.",
            "example": "2023-05-30"
          },
          "plea": {
            "type": "string",
            "example": "GUILTY"
          },
          "counts": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number of counts, where published.",
            "example": 1
          }
        },
        "x-product": "criminal"
      },
      "CriminalSourceRef": {
        "type": "object",
        "description": "One jurisdiction this person was found in. `code` is the PUBLIC jurisdiction code (`<ST>-<COUNTY>` / `<ST>-<RECORD-KIND>`) — never a source host. `lastCheckedAt` is the record's currency.\n",
        "properties": {
          "code": {
            "type": "string",
            "description": "The public jurisdiction code — the same code used in `live.jurisdictions`.",
            "example": "TX-BEXAR"
          },
          "level": {
            "type": "string",
            "enum": [
              "county",
              "state",
              "federal"
            ],
            "default": "county"
          },
          "recordUrl": {
            "type": "string",
            "description": "The source's own page for this record, where one exists. `\"\"` otherwise.",
            "example": "https://…/booking/889201"
          },
          "lastCheckedAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO-8601 — when we last saw this person at this jurisdiction. On a live-verified entry (`live: true`) it is the current request's timestamp.\n",
            "example": "2026-08-24T05:12:00+00:00"
          },
          "live": {
            "type": "boolean",
            "description": "`true` when this entry was re-verified live in the current request.",
            "example": false
          }
        },
        "x-product": "criminal"
      },
      "Lifecycle": {
        "type": "object",
        "description": "The \"fell out of the source\" discipline — records are never hard-deleted, and a person disappearing IS data, reported here rather than by the record vanishing. A `droppedOut: true` record is still returned (kept and flagged).\n",
        "properties": {
          "firstSeen": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO — when we first recorded this person at this source.",
            "example": "2023-06-15T00:00:00+00:00"
          },
          "lastSeen": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO — the most recent sweep that still carried them.",
            "example": "2026-08-24T05:12:00+00:00"
          },
          "presentInLastSweep": {
            "type": "boolean",
            "description": "Were they in the most recent sweep of their source?",
            "example": true
          },
          "droppedOut": {
            "type": "boolean",
            "description": "Have they disappeared from the source since we first saw them?",
            "example": false
          },
          "droppedOutDetected": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO — when the disappearance was first detected.",
            "example": null
          },
          "dropInterpretation": {
            "type": "string",
            "enum": [
              "released",
              "source_removed",
              "reinstated",
              "unknown"
            ],
            "description": "Why the drop most likely happened, by record kind. `released` — a jail booking / roster entry (disappearing most likely means release). `source_removed` — a court/registry-type entry (the source removed or sealed it). `reinstated` — an exclusion-list record (`recordType: \"healthcare_exclusion\"`) that left the list: the person was reinstated or the exclusion term ended. `unknown` — still present, or no interpretation yet.\n",
            "example": "unknown"
          },
          "sourceLastUpdated": {
            "type": [
              "string",
              "null"
            ],
            "description": "When the source itself last changed this record, where the source says. ISO when it parses cleanly, otherwise the source's text. `null` when not published.",
            "example": "2026-10-01"
          }
        },
        "x-product": "criminal"
      },
      "Exclusion": {
        "type": "object",
        "description": "The `exclusion` block of an exclusion-list record (`recordType: \"healthcare_exclusion\"`): what the publishing list says about the person. The three list families are the HHS Office of Inspector General's List of Excluded Individuals/Entities (`program: medicare_medicaid`, republished monthly), the SAM.gov exclusions placed by federal agencies (`program: federal_procurement`, published daily) and the state Medicaid exclusion / sanction lists (`program: state_medicaid`, mostly monthly). `convictionBased` is the one field that decides default visibility — see `include: [\"exclusions\"]`.\n",
        "properties": {
          "program": {
            "type": "string",
            "enum": [
              "medicare_medicaid",
              "federal_procurement",
              "state_medicaid",
              "nurse_aide_registry",
              "sanctions"
            ],
            "description": "Which list family placed the exclusion. `medicare_medicaid` — the HHS-OIG list (public code `US-EXCLUSION`). `federal_procurement` — a SAM.gov exclusion from a federal agency (`US-EXCLUSION`). `state_medicaid` — a state Medicaid exclusion or sanction list (`<ST>-EXCLUSION`). `nurse_aide_registry` — a state nurse-aide registry's abuse, neglect or misappropriation finding (`<ST>-NURSE-AIDE`); always `convictionBased: false`. `sanctions` — a U.S. sanctions or export-control watchlist entry (OFAC SDN and non-SDN lists, Commerce BIS, State; `US-SANCTIONS`): `authority` is the list's code (`SDN`, `EL`, `DPL`, …); always `convictionBased: false`.\n"
          },
          "authority": {
            "type": "string",
            "description": "The authority for the exclusion, as the list labels it — an HHS-OIG statutory code such as `1128(a)(1)`, a SAM exclusion type such as `Prohibition/Restriction`, or a state action such as `Termination`.\n",
            "example": "1128(a)(1)"
          },
          "authorityDescription": {
            "type": "string",
            "description": "The authority in words, from the list's own vocabulary.",
            "example": "Conviction of program-related crimes"
          },
          "statute": {
            "type": "string",
            "description": "The statute cited for the authority. `\"\"` when the list cites none.",
            "example": "42 USC 1320a-7(a)(1)"
          },
          "convictionBased": {
            "type": "boolean",
            "description": "`true` when the authority is a criminal conviction (HHS-OIG 1128(a)(1)-(4), (c)(3)(G), (b)(1)-(3), or a SAM / state row whose stated reason names a conviction). Conviction-based records are returned on every search. `false` — a license action, an administrative debarment, a loan default or another non-conviction basis — is returned only with `include: [\"exclusions\"]`.\n",
            "example": true
          },
          "excludedOn": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO date the exclusion took effect. `null` when the list publishes none.",
            "example": "2021-03-19"
          },
          "reinstatedOn": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO date of reinstatement, where the list publishes one on the record. A person who has left the list is also reported through `lifecycle` (`droppedOut: true`, `dropInterpretation: \"reinstated\"`).\n",
            "example": null
          },
          "minimumPeriodYears": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The statutory minimum exclusion period in years where the authority sets one (5 for HHS-OIG 1128(a), 10 for a second mandatory exclusion, 3 for 1128(b)(1)-(3)); `null` when there is none or the exclusion is indefinite.\n",
            "example": 5
          },
          "excludingAgency": {
            "type": "string",
            "description": "The agency that placed the exclusion — `HHS-OIG`, a SAM agency code, or a state agency. `\"\"` when not published.",
            "example": "HHS-OIG"
          },
          "npi": {
            "type": [
              "string",
              "null"
            ],
            "description": "The National Provider Identifier on the list entry, where published.",
            "example": "1234567890"
          },
          "profession": {
            "type": [
              "string",
              "null"
            ],
            "description": "The profession or provider type the list records, as published.",
            "example": "NURSING PROFESSION"
          },
          "licenseNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "The professional license or certificate number on the list entry, where published (state Medicaid lists, nurse-aide registries).\n",
            "example": null
          },
          "findingType": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "abuse",
              "neglect",
              "misappropriation",
              "other",
              null
            ],
            "description": "A nurse-aide registry finding's type (`program: nurse_aide_registry`) — substantiated abuse, neglect or misappropriation of resident property. `null` on every other list.\n",
            "example": null
          }
        },
        "x-product": "criminal"
      },
      "Coverage": {
        "type": "object",
        "description": "The honest per-product coverage totals from the manifest.",
        "properties": {
          "jurisdictions_total": {
            "type": "integer",
            "description": "Every jurisdiction the product knows about.",
            "example": 1410
          },
          "jurisdictions_live_connector": {
            "type": "integer",
            "description": "Jurisdictions actively covered today.",
            "example": 727
          },
          "jurisdictions_pending_connector": {
            "type": "integer",
            "description": "Known but not yet actively covered.",
            "example": 683
          },
          "states_covered": {
            "type": "integer",
            "description": "Distinct state-level codes in the catalog (states, DC, territories and `US`).",
            "example": 50
          },
          "jurisdictions_verified": {
            "type": "integer",
            "description": "Covered jurisdictions reached through a shared or statewide system.",
            "example": 512
          },
          "jurisdictions_custom_verified": {
            "type": "integer",
            "description": "Covered jurisdictions reached through a system specific to that jurisdiction.",
            "example": 215
          },
          "jurisdictions_config_pending": {
            "type": "integer",
            "description": "Known jurisdictions not covered yet.",
            "example": 683
          },
          "jurisdictions_statewide_fallback": {
            "type": "integer",
            "description": "Jurisdictions covered through a statewide custody notification system.",
            "example": 0
          }
        },
        "additionalProperties": true,
        "x-product": "criminal"
      },
      "SourcesResponse": {
        "type": "object",
        "description": "The `GET /v1/criminal/sources` body.",
        "properties": {
          "catalog": {
            "type": "object",
            "description": "Totals over the same rows as `sources[]`, so the two always agree.",
            "properties": {
              "total": {
                "type": "integer",
                "description": "Number of rows in `sources[]`.",
                "example": 1410
              },
              "live": {
                "type": "integer",
                "description": "Rows with `status: live`.",
                "example": 727
              },
              "comingSoon": {
                "type": "integer",
                "description": "Rows with `status: pending`.",
                "example": 683
              },
              "states": {
                "type": "integer",
                "description": "Distinct states among the rows (the federal `US` row excluded).",
                "example": 50
              }
            }
          },
          "coverage": {
            "$ref": "#/components/schemas/Coverage"
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CriminalSourceInfo"
            }
          },
          "count": {
            "type": "integer",
            "description": "Number of source rows.",
            "example": 1410
          }
        },
        "x-product": "criminal"
      },
      "CriminalSourceInfo": {
        "type": "object",
        "description": "One jurisdiction in the coverage catalog, with live freshness health.",
        "properties": {
          "id": {
            "type": "string",
            "description": "The public jurisdiction code — usable in `live.jurisdictions`.",
            "example": "TX-BEXAR"
          },
          "name": {
            "type": "string",
            "description": "A human jurisdiction label — county/state + record kind. **Never a portal or vendor name.**",
            "example": "Bexar County, TX — County Jail Roster"
          },
          "covers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The state(s) it covers.",
            "example": [
              "TX"
            ]
          },
          "scope": {
            "type": "string",
            "enum": [
              "county",
              "state",
              "federal"
            ]
          },
          "recordType": {
            "type": "string",
            "description": "The kind of record this source holds, in words (`\"County jail roster\"`, `\"Court records\"`, `\"Exclusion list\"`).",
            "example": "County jail roster"
          },
          "status": {
            "type": "string",
            "enum": [
              "live",
              "pending"
            ],
            "description": "`live` (covered today) | `pending` (known, not yet covered)."
          },
          "health": {
            "type": "object",
            "properties": {
              "lastSuccessAt": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ISO-8601 of the last successful ingest. `null` = never ingested.",
                "example": "2026-08-24T05:12:00+00:00"
              },
              "ageSeconds": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Age of that snapshot right now. `null` = never ingested.",
                "example": 30074
              },
              "freshFor": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "daily",
                    "weekly"
                  ]
                },
                "description": "The freshness tiers the snapshot falls inside (`daily` ≈ ≤36 h, `weekly` ≈ ≤8 days) — a restatement of `ageSeconds`, not a filter. `[]` = never ingested.\n",
                "example": [
                  "daily",
                  "weekly"
                ]
              },
              "feeds": {
                "type": "object",
                "description": "Only on a code made of several lists (`US-EXCLUSION`): each list's own `lastSuccessAt`, keyed `leie` (HHS-OIG) and `sam` (SAM.gov). The code's own `lastSuccessAt` is the older of them.\n",
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "lastSuccessAt": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "geography": {
            "$ref": "#/components/schemas/SourceGeography"
          },
          "recordKinds": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "jail-roster",
                "court",
                "doc-inmate",
                "registry",
                "warrant",
                "exclusion"
              ]
            },
            "description": "The kinds of record this source holds — the values `recordKinds` accepts.",
            "example": [
              "jail-roster"
            ]
          },
          "capabilities": {
            "type": "object",
            "properties": {
              "live": {
                "type": "boolean",
                "description": "The source can be checked live (`live.jurisdictions`)."
              },
              "snapshot": {
                "type": "boolean",
                "description": "Records from this source are on file for cached searches."
              }
            }
          },
          "coverage": {
            "type": "object",
            "properties": {
              "yearsBack": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "How many years back the source reaches. `null` = not stated.",
                "example": null
              },
              "basis": {
                "type": "string",
                "enum": [
                  "stated",
                  "measured",
                  "unknown"
                ],
                "description": "Where `yearsBack` comes from; `unknown` = the source states no window."
              }
            }
          },
          "cadence": {
            "type": "string",
            "description": "How often the source is refreshed (`daily`, `weekly`, `every 2 weeks`, `monthly`, `manual`).",
            "example": "daily"
          }
        },
        "x-product": "criminal"
      },
      "SourceGeography": {
        "type": "object",
        "description": "Where a source's records come from.",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "county",
              "city",
              "regional",
              "statewide",
              "federal"
            ],
            "description": "`county` — one county; `city` — a city (its county listed); `regional` — a jail or court serving several counties (every one listed); `statewide`; `federal`.\n"
          },
          "counties": {
            "type": "array",
            "description": "The counties the source covers. Empty for `statewide` and `federal`.",
            "items": {
              "type": "object",
              "properties": {
                "fips": {
                  "type": "string",
                  "description": "Five-digit county FIPS code.",
                  "example": "39049"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "example": "Franklin County"
                },
                "state": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "example": "OH"
                }
              }
            }
          },
          "place": {
            "type": [
              "string",
              "null"
            ],
            "description": "The city, for a `city` source.",
            "example": null
          }
        },
        "x-product": "criminal"
      },
      "SearchGeography": {
        "type": "object",
        "description": "A place in your own words. Send at least one of `county`, `zip`, `city` + `state`, or `states`; they combine (the union of the areas). A place that matches no county is `422 unknown_geography`; a malformed one is `422 invalid_geography`.\n",
        "properties": {
          "county": {
            "type": "string",
            "description": "A five-digit county FIPS code, or `\"ST:County name\"`.",
            "example": "OH:Franklin"
          },
          "zip": {
            "type": "string",
            "pattern": "^\\d{5}$",
            "description": "A five-digit ZIP code. Every county the ZIP touches is included.",
            "example": "43215"
          },
          "radiusMiles": {
            "type": "number",
            "minimum": 0,
            "maximum": 100,
            "description": "Also include the counties whose center lies within this many miles of the `zip`, `county` or `city` counties' centers.\n",
            "example": 25
          },
          "city": {
            "type": "string",
            "description": "A city or town; needs `state`. Every county the city spans is included.",
            "example": "Columbus"
          },
          "state": {
            "type": "string",
            "description": "Two-letter state for `city`.",
            "example": "OH"
          },
          "states": {
            "type": "array",
            "maxItems": 10,
            "items": {
              "type": "string"
            },
            "description": "Whole states (up to 10), two-letter codes.",
            "example": [
              "OH"
            ]
          }
        },
        "x-product": "criminal"
      },
      "SearchCoverageRequest": {
        "type": "object",
        "properties": {
          "yearsBack": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "Keep only sources whose stated window reaches at least this many years back.",
            "example": 7
          }
        },
        "x-product": "criminal"
      },
      "GeographyCoverage": {
        "type": "object",
        "description": "Present when the request sends `geography`, `recordKinds` or `coverage`, or a geography object in `live.jurisdictions`. What stood behind the answer, in names — and what did not.\n",
        "properties": {
          "asked": {
            "type": "object",
            "description": "The geography as sent."
          },
          "recordKinds": {
            "description": "The record kinds searched, or `\"all\"`.",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "sourcesSearched": {
            "type": "integer",
            "description": "How many sources were in scope."
          },
          "jurisdictionsSearched": {
            "type": "array",
            "description": "Every source in scope. Present with `geography`.",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "example": "OH-FRANKLIN"
                },
                "name": {
                  "type": "string",
                  "example": "Franklin County, OH"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "county",
                    "city",
                    "regional",
                    "statewide",
                    "federal"
                  ]
                },
                "recordKinds": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "counties": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "The asked counties this source covers, by name.",
                  "example": [
                    "Franklin County, OH"
                  ]
                }
              }
            }
          },
          "counties": {
            "type": "array",
            "description": "Every county in the asked area and the county-level sources that cover it.",
            "items": {
              "type": "object",
              "properties": {
                "fips": {
                  "type": "string",
                  "example": "39049"
                },
                "name": {
                  "type": "string",
                  "example": "Franklin County"
                },
                "state": {
                  "type": "string",
                  "example": "OH"
                },
                "sources": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "example": [
                    "OH-FRANKLIN"
                  ]
                }
              }
            }
          },
          "countiesWithoutSource": {
            "type": "array",
            "description": "Asked counties with no county, city or regional source of the asked record kinds — only the statewide and federal sources searched cover them.\n",
            "items": {
              "type": "object",
              "properties": {
                "fips": {
                  "type": "string",
                  "example": "39097"
                },
                "name": {
                  "type": "string",
                  "example": "Madison County"
                },
                "state": {
                  "type": "string",
                  "example": "OH"
                }
              }
            }
          },
          "countiesNote": {
            "type": "string",
            "description": "What `countiesWithoutSource` means, in one sentence."
          },
          "yearsBack": {
            "type": "object",
            "description": "Present when the request sends `coverage.yearsBack`.",
            "properties": {
              "asked": {
                "type": "integer",
                "example": 7
              },
              "droppedShorterWindow": {
                "type": "array",
                "description": "Sources not searched because their stated window is shorter than asked.",
                "items": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "yearsBack": {
                      "type": "integer"
                    }
                  }
                }
              },
              "unknownWindow": {
                "type": "integer",
                "description": "Sources searched that state no window."
              },
              "note": {
                "type": "string"
              }
            }
          }
        },
        "x-product": "criminal"
      },
      "JurisdictionsResponse": {
        "type": "object",
        "description": "The `GET /v1/criminal/jurisdictions` body.",
        "properties": {
          "coverage": {
            "$ref": "#/components/schemas/Coverage"
          },
          "jurisdictions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JurisdictionInfo"
            }
          },
          "count": {
            "type": "integer",
            "description": "Number of rows after filtering.",
            "example": 1
          }
        },
        "x-product": "criminal"
      },
      "JurisdictionInfo": {
        "type": "object",
        "description": "One covered jurisdiction. Public code + state/county only — never a source host.",
        "properties": {
          "code": {
            "type": "string",
            "example": "TX-BEXAR"
          },
          "state": {
            "type": "string",
            "example": "TX"
          },
          "county": {
            "type": [
              "string",
              "null"
            ],
            "example": "Bexar"
          },
          "recordKind": {
            "type": "string",
            "enum": [
              "jail-roster",
              "court",
              "doc-inmate",
              "registry",
              "warrant",
              "exclusion"
            ]
          },
          "level": {
            "type": "string",
            "enum": [
              "county",
              "state",
              "federal"
            ]
          },
          "live": {
            "type": "boolean",
            "description": "Whether it is reachable for live verification.",
            "example": true
          }
        },
        "x-product": "criminal"
      },
      "ResolveResult": {
        "type": "object",
        "description": "One website's resolution result. `code` is the public jurisdiction code when `supported: true`, else `null`. The response names only the state, the county and the neutral code — never a source host.\n",
        "properties": {
          "input": {
            "type": "string",
            "description": "Your website, echoed back verbatim.",
            "example": "https://sheriff.examplecounty.gov/inmates"
          },
          "supported": {
            "type": "boolean",
            "description": "`true` = we have equivalent data and `code` is populated. `false` = not covered.",
            "example": true
          },
          "code": {
            "type": [
              "string",
              "null"
            ],
            "description": "The public jurisdiction code, or `null` when unsupported.",
            "example": "TX-BEXAR"
          },
          "state": {
            "type": [
              "string",
              "null"
            ],
            "description": "The jurisdiction's state, when we can identify it — even for an unsupported site.",
            "example": "TX"
          },
          "county": {
            "type": [
              "string",
              "null"
            ],
            "description": "The jurisdiction's county, when we can identify it.",
            "example": "Bexar"
          },
          "note": {
            "type": "string",
            "description": "A plain-language explanation — e.g. `\"equivalent data available for this jurisdiction\"`, `\"we cover this jurisdiction\"`, or, when unsupported, `\"Baldwin, AL is not currently covered\"` / `\"not a recognizable website\"`.\n",
            "example": "equivalent data available for this jurisdiction"
          }
        },
        "x-product": "criminal"
      },
      "ResolveListResponse": {
        "type": "object",
        "description": "The `results[]` wrapper returned when `websites` (a list) was sent.",
        "properties": {
          "count": {
            "type": "integer",
            "example": 2
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResolveResult"
            }
          }
        },
        "x-product": "criminal"
      },
      "AsyncAccepted": {
        "type": "object",
        "description": "The `202` body returned when a live search must run asynchronously.",
        "properties": {
          "searchId": {
            "type": "string",
            "example": "crs_7f2a1c9e0b4d6a8f1e23"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending"
            ]
          },
          "mode": {
            "type": "string",
            "enum": [
              "async"
            ]
          },
          "liveSourcesRequested": {
            "type": "integer",
            "description": "How many live sources this job will check.",
            "example": 6
          },
          "poll": {
            "type": "string",
            "description": "Poll this URL for status + results.",
            "example": "/v1/criminal/searches/crs_7f2a1c9e0b4d6a8f1e23"
          },
          "reason": {
            "type": "string",
            "description": "Why the search is asynchronous.",
            "example": "6 live sources (> 2 or not sync-eligible) — running asynchronously"
          },
          "resolution": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResolutionEntry"
            },
            "description": "Present only when a website was resolved."
          }
        },
        "x-product": "criminal"
      },
      "JobRecord": {
        "type": "object",
        "description": "The stored async-job record returned by the poll endpoint. While pending, `result` is `null`; when complete, `result` carries the full search envelope.\n",
        "properties": {
          "searchId": {
            "type": "string",
            "example": "crs_7f2a1c9e0b4d6a8f1e23"
          },
          "accountId": {
            "type": "string",
            "example": "acct_1a2b3c"
          },
          "tier": {
            "type": "string",
            "enum": [
              "core",
              "live"
            ],
            "description": "`core` (cached) or `live`."
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "complete"
            ],
            "description": "`pending` on a `202` poll, `complete` on a `200` poll. A job whose stored query was refused when it ran is not returned as a JobRecord: the poll answers `422` with `{\"searchId\", \"error\": {\"code\": \"query_too_broad\", \"message\"}}` and `GET /v1/criminal/history` lists it with `status: \"refused\"`.\n"
          },
          "recordsCount": {
            "type": "integer",
            "description": "Total records the search matched (`0` while pending).",
            "example": 12
          },
          "liveCompleted": {
            "type": "integer",
            "description": "Live sources that completed (`0` while pending / for cached searches).",
            "example": 3
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-08-25T15:04:11+00:00"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-08-25T15:04:29+00:00"
          },
          "result": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CriminalSearchResponse"
              }
            ],
            "description": "The full search envelope when `status` is `complete`; `null` while pending.",
            "nullable": true
          }
        },
        "x-product": "criminal"
      },
      "HistoryResponse": {
        "type": "object",
        "description": "The `GET /v1/criminal/history` body — the account's prior searches, most recent first.",
        "properties": {
          "searches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HistoryEntry"
            }
          }
        },
        "x-product": "criminal"
      },
      "HistoryEntry": {
        "type": "object",
        "properties": {
          "searchId": {
            "type": "string",
            "example": "crs_7f2a1c9e0b4d6a8f1e23"
          },
          "tier": {
            "type": "string",
            "enum": [
              "core",
              "live"
            ],
            "description": "`core` (cached) or `live`."
          },
          "status": {
            "type": "string",
            "enum": [
              "complete",
              "pending"
            ]
          },
          "query": {
            "type": "object",
            "description": "Who you searched — your own search terms, blanks left out, so a history row reads \"Jane Smith · DOB 1990-01-02 · GA\". Never the street address.\n",
            "properties": {
              "first": {
                "type": "string",
                "example": "Alex"
              },
              "last": {
                "type": "string",
                "example": "Hamilton"
              },
              "dob": {
                "type": "string",
                "description": "Full date of birth, YYYY-MM-DD.",
                "example": "1989-04-23"
              },
              "birthYear": {
                "type": "integer",
                "example": 1989
              },
              "age": {
                "type": "integer",
                "example": 36
              },
              "state": {
                "type": "string",
                "example": "TX"
              },
              "county": {
                "type": "string",
                "example": "Bexar"
              },
              "city": {
                "type": "string",
                "example": "San Antonio"
              },
              "zipcode": {
                "type": "string",
                "example": "78205"
              }
            }
          },
          "recordsCount": {
            "type": "integer",
            "description": "Total records the search matched.",
            "example": 12
          },
          "liveCompleted": {
            "type": "integer",
            "description": "Live sources that completed (`0` for cached searches).",
            "example": 3
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-08-25T15:04:11+00:00"
          }
        },
        "x-product": "criminal"
      },
      "BatchResponse": {
        "type": "object",
        "description": "The `POST /v1/criminal/batch` body — NOT the standard envelope. A wrapper with one entry per input row, in input order.\n",
        "properties": {
          "count": {
            "type": "integer",
            "description": "Number of result entries — always equals the number of input rows.",
            "example": 2
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BatchRow"
            }
          },
          "meterEvents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CriminalMeterEvent"
            },
            "description": "Batch-wide meter events — one `criminal_call` per row that ran."
          },
          "unfinished": {
            "type": "array",
            "description": "Present only when some rows could not be run in time (`status: \"not_run\"`): each such row's `index` and the `query` it was sent with. Resend exactly these rows (as a batch) to complete the file; rows that ran are not repeated or re-billed. Rare: the API itself resends them for up to 14 minutes before answering.\n",
            "items": {
              "type": "object",
              "properties": {
                "index": {
                  "type": "integer"
                },
                "query": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-product": "criminal"
      },
      "BatchRow": {
        "type": "object",
        "description": "One batch row's result, in input order. A row that ran is the search envelope without the per-request keys (`searchId`, `meterEvents`, `usage`, `resolution`), plus `index`. A row that failed validation carries only `index`, `status: \"error\"`, `error`, zeroed `counts` and `records: []`; the other rows still ran.\n",
        "properties": {
          "index": {
            "type": "integer",
            "description": "0-based input row index.",
            "example": 0
          },
          "status": {
            "type": "string",
            "enum": [
              "complete",
              "partial",
              "error",
              "not_run"
            ],
            "description": "`error` when this row failed validation or was refused; `not_run` when the batch could not reach this row in time — nothing was searched for it, nothing is billed, and it is listed in `unfinished[]` to resend; otherwise as on a search.\n"
          },
          "error": {
            "type": "string",
            "description": "Present only on `status: \"error\"` — that row's validation failure.",
            "example": "a lastName predicate is required — an unbounded query returns a lottery, not an answer"
          },
          "errorCode": {
            "type": "string",
            "description": "Present only on `status: \"error\"`: the machine-readable code, the same one `POST /v1/criminal/search` would answer for that query (e.g. `guard_unbounded_query`, `invalid_dob`, `query_too_broad`).\n",
            "example": "guard_unbounded_query"
          },
          "matchSummary": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MatchSummary"
              }
            ],
            "description": "This row's identity picture over every record (see the search response)."
          },
          "counts": {
            "$ref": "#/components/schemas/Counts"
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": []
          },
          "page": {
            "type": "integer",
            "example": 1
          },
          "perPage": {
            "type": "integer",
            "example": 50
          },
          "totalPages": {
            "type": "integer",
            "example": 1
          },
          "sourceStatus": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CriminalSourceStatus"
            }
          },
          "cappedOmittedSources": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": []
          },
          "omittedFields": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "sourceData"
              ]
            }
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CriminalRecord"
            }
          },
          "proof": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "none"
                ]
              }
            }
          },
          "coverage": {
            "$ref": "#/components/schemas/SearchCoverage"
          },
          "legal": {
            "$ref": "#/components/schemas/Legal"
          }
        },
        "x-product": "criminal"
      }
    },
    "headers": {}
  }
}