openapi: 3.1.0
info:
  title: Offendersearch API
  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 usage.\n\n## Authentication\n\
    Every 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.

      '
  - 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.

      '
  - 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.

      '
  - 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/search:
    post:
      operationId: syncSearch
      summary: Synchronous search (PRIMARY — call and wait)
      description: 'Searches the full dataset by default (or the jurisdictions you name) in a single call and returns scored,
        de-duplicated results in the response. Served from the current snapshot for speed. `deadlineMs` is a target: since
        2026-10-15 a search that can still finish keeps working past it (up to the ~40 s the gateway allows) so that you receive
        a COMPLETE answer rather than a partial one. Only a search that cannot finish inside that window is partial; with
        `onDeadline: partial` the response then returns whatever completed, with per-jurisdiction status in `sourceStatus`;
        with `onDeadline: error` a forced-partial result returns 504 instead. Live evidence: send `live.evidence: "pdf"` with
        `live.jurisdictions` and the same request also prints each named registry''s own page to a PDF. That search always
        answers `202` (EvidenceAccepted) and is returned by `GET /v1/searches/{searchId}`, whose body then carries `evidence[]`.

        '
      security:
        - ApiKeyAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchRequest'
      responses:
        '200':
          description: 'Search results (complete, or partial when a deadlineMs bound is hit). ★ One exception: a `live` block
            that resolves to more sources than run inline (more than two, or any async-only registry) is accepted as a background
            job and the `200` body is a `SearchAsyncAcknowledgement` — `status: "pending"`, `mode: "async"`, `poll` — not
            a `SearchResponse`. Branch on `body.status === "pending"` and poll `GET /v1/searches/{searchId}` with an API key.

            '
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/SearchResponse'
                  - $ref: '#/components/schemas/SearchAsyncAcknowledgement'
        '202':
          description: 'Only when the request sent `live.evidence: "pdf"`: the live evidence search was accepted and runs
            asynchronously. Poll `pollUrl` (`GET /v1/searches/{searchId}`) for the records and `evidence[]`.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EvidenceAccepted'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          description: 'Billing required for the requested `proof` documents (account has no billing enabled).

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: 'The request was refused and nothing ran. Field validation failures carry a `detail` list (`loc`, `msg`,
            `type`). A query that constrains nothing (no name, DOB, age, place, radius, free text or `jurisdictions`), or
            only `firstName` or only `state`, is refused with a `detail` sentence (`QueryTooBroad`). Unknown `match`, `jurisdictions`,
            `recordTypes` or an out-of-range `deadlineMs` are refused the same way. With `live.evidence: "pdf"`, `live.scope`
            is refused — name the registries in `live.jurisdictions`.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: 'Only with `live.evidence: "pdf"`: live evidence is temporarily unavailable. The search was not run
            and nothing was billed; retry, or omit `live.evidence`. ★ The body is the evidence gateway''s shape, `{"error":
            {"code": "unavailable", "message": "…"}}` — not a `detail` envelope.

            '
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - unavailable
                      message:
                        type: string
        '504':
          description: 'Deadline was hit and `onDeadline=error` was set (forced-partial): `{"detail": "Deadline hit and onDeadline=error"}`.
            Also `{"detail": {"code": "incomplete_no_results", "message", "unfinishedSources", "sourcesQueried"}}` when a
            search found nothing before some registries finished (skipped when you explicitly sent `onDeadline: "partial"`).
            Under load both cases answer `429` instead.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: 'Queue full, or (with live.evidence) the evidence service is at capacity: Retry-After carries the seconds
            to wait (10 for evidence). Nothing was searched or billed.'
  /v1/searches:
    post:
      operationId: asyncSearch
      summary: Asynchronous search — built for batch and high-volume work
      description: '**The batch endpoint.** Submit the search, get a job id back immediately, and collect the result when
        it is ready — poll `GET /v1/searches/{searchId}` or supply a `webhookUrl` and we POST the finished envelope to it.


        Because you are not holding a connection open there is no request-timeout ceiling on the work, so every named jurisdiction
        runs to completion. Use it for bulk screening, periodic re-screens of a roster you already hold, backfills, unattended
        scheduled jobs, and broad national sweeps.


        Use `POST /v1/search` instead when a person is waiting on the answer — that is the interactive endpoint and it returns
        in one round trip. Both search the same registries and return the same envelope; the choice is about how you collect
        the result, not how current it is. Both accept a `live` block: here the named registries are re-verified live inside
        the job and billed as on `POST /v1/search` (the search plus $0.02 per registry that completed, at most $2.00). Without
        `live`, the job is billed as one search. To submit many searches at once, `POST /v1/batch` takes up to 1,000 queries
        in a single request.

        '
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AsyncSearchRequest'
      responses:
        '202':
          description: Search accepted; poll `resultsUrl` for status + results.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncSearchAccepted'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          description: 'The account has no active subscription and no free-trial searches left, or the request sent `proof`
            and billing is not enabled on the account.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          $ref: '#/components/responses/Unprocessable'
  /v1/searches/{searchId}:
    get:
      operationId: getSearch
      summary: Fetch an async search's status + results
      description: 'Returns the job''s current state. While `pending`/`running` the body carries empty `records`/`sourceStatus`
        and a zeroed `counts`; on `error` it carries an `error` string; when finished it is the full SearchResponse. For a
        search that sent `live.evidence: "pdf"` (an `evs_…` id) the finished body is an EvidenceSearchResponse: the same SearchResponse
        plus `evidence[]` (one entry per registry named in `live.jurisdictions`), `usage.liveEvidence` / `usage.liveEvidenceUsd`
        and `sourceSearchId`; `evidence` is `[]` while the job is pending or running. A job is readable only with a key on
        the account that submitted it; any other key gets 404, the same answer as an id that does not exist.

        '
      parameters:
        - name: searchId
          in: path
          required: true
          schema:
            type: string
          example: srch_9f2c1a7b
      responses:
        '200':
          description: 'Search status + results: a SearchResponse — or, for a search that sent `live.evidence: "pdf"`, an
            EvidenceSearchResponse.

            '
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/SearchResponse'
                  - $ref: '#/components/schemas/EvidenceSearchResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
  /v1/searches/{searchId}/results:
    get:
      operationId: getStoredSearchResults
      summary: Re-open a past search's stored results
      description: 'Returns the records a past search on this account returned, exactly as they were returned. It does not
        run the search again and is not billed. Results are kept for the account''s retention window (`retentionDays`) and
        then erased.

        '
      security:
        - ApiKeyAuth: []
      parameters:
        - name: searchId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The stored results.
          content:
            application/json:
              schema:
                type: object
                properties:
                  searchId:
                    type: string
                    example: srch_9f2c1a7b
                  ranAt:
                    type: string
                    format: date-time
                    description: When the search ran.
                    example: '2026-10-24T14:02:11+00:00'
                  status:
                    type: string
                    nullable: true
                    description: The search's status when it ran.
                    example: complete
                  query:
                    type: object
                    description: The query that was sent, with empty fields removed.
                    example:
                      firstName: Jordan
                      lastName: Rivera
                      dob: '1988-04-12'
                  records:
                    type: array
                    items:
                      $ref: '#/components/schemas/Record'
                  storedCount:
                    type: integer
                    description: Records filed with the search.
                    example: 1
                  totalCount:
                    type: integer
                    description: Records the search matched.
                    example: 1
                  retentionDays:
                    type: integer
                    description: How many days results are kept.
                    example: 14
        '202':
          description: The async search is still running; its results are filed when it completes.
          content:
            application/json:
              schema:
                type: object
                properties:
                  searchId:
                    type: string
                    example: srch_9f2c1a7b
                  status:
                    type: string
                    enum:
                      - pending
                      - running
                  detail:
                    type: string
                    example: The search is still running. Poll again in a few seconds.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '410':
          description: The results are past the retention window and have been erased.
          content:
            application/json: null
  /v1/searches/{searchId}/evidence/{jurisdiction}.pdf:
    get:
      tags:
        - live-evidence
      operationId: getEvidenceDocument
      summary: Download a live evidence document (PDF)
      description: 'One registry''s live evidence document — the registry''s own public website, printed as shown behind a
        cover page — from a search that sent `live.evidence: "pdf"`. The path is the `downloadUrl` of the matching `evidence[]`
        entry on `GET /v1/searches/{searchId}`. Readable by the account that ran the search; any other account, an unknown
        search, a registry with no completed document, or a document older than 30 days answers 404. Not billed: the document
        was billed when it was produced. Returns the raw PDF body, not JSON.

        '
      security:
        - ApiKeyAuth: []
      parameters:
        - name: searchId
          in: path
          required: true
          schema:
            type: string
          example: evs_7d41e2
          description: 'The `searchId` from the `202` of a search that sent `live.evidence: "pdf"`.

            '
        - name: jurisdiction
          in: path
          required: true
          schema:
            type: string
          example: CA
          description: The `jurisdiction` of the evidence entry, as returned in `evidence[]`.
      responses:
        '200':
          description: The document.
          content:
            application/pdf:
              schema:
                type: string
                format: binary
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
  /v1/searches/{searchId}/proof:
    post:
      operationId: makeProof
      summary: Per-registry look-alike proof docs (internal add-on — NOT the verification report)
      description: 'Internal per-registry add-on, distinct from the customer-facing consolidated verification report (`POST
        /v1/report`). Renders a per-registry look-alike PDF/HTML for ONLY the registries the caller names. Requires billing
        (402 otherwise); each rendered document is billed as one PDF (+$0.02, the verification-report rate, admin-overridable
        per customer). Never generated for all sources implicitly. `registries` is required. A registry with no look-alike
        template yet is skipped and NOT billed (its document row carries an empty `url` + explanatory `note`). Only the account
        that ran the search can request its proof; any other key gets 404.

        '
      security:
        - ApiKeyAuth: []
      parameters:
        - name: searchId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProofRequest'
      responses:
        '200':
          description: Proof bundle (one verification-report document per requested registry)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProofBundle'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          description: Payment required — billing not enabled on the account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/Unprocessable'
  /v1/report:
    post:
      operationId: makeReport
      summary: Consolidated verification / proof PDF for one search
      description: 'Renders a SINGLE consolidated verification PDF for a search that was ALREADY run — pass the `searchId`
        of a prior `POST /v1/search` (or `/v1/searches`) call (valid for 7 days), optionally with the `viewerName`/`viewerEmail`
        of whoever is viewing it (both OPTIONAL, printed at the top as a viewer verification — not an access gate). Any valid
        key may call it — there is NO per-key entitlement. Because the search call was already billed, the report meters ONLY
        the **+$0.02 per-PDF** charge (admin-overridable per customer via `pdf_rate_cents`). (Legacy one-shot: omit `searchId`
        and pass an inline `query`, which runs the search inline and also bills the call.) The PDF shows EVERY matching offender
        and EVERY field on file (name, aliases, DOB/age match state, address/jurisdiction, offense/risk, photo when available,
        and the full extensive field set), plus a source-attribution section with a citation on every record — proving provenance.
        A legal notice (use restrictions; informational only, not an FCRA consumer report) is printed on the document. Responds
        with `application/pdf` as a file attachment (`Content-Disposition: attachment`); the report id is echoed in the `X-Report-Id`
        header.

        '
      security:
        - ApiKeyAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReportRequest'
      responses:
        '200':
          description: The consolidated verification report (a PDF file attachment).
          headers:
            X-Report-Id:
              description: Unique id of the generated report (also printed on the document).
              schema:
                type: string
                example: rpt_9f2c1a7b3e4d
          content:
            application/pdf:
              schema:
                type: string
                format: binary
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/Unprocessable'
        '400':
          description: Malformed request body.
        '404':
          description: Unknown searchId, or a search another account ran.
        '410':
          description: The search's stored results have expired (14-day retention); run the search again.
  /v1/batch:
    post:
      operationId: batchSearch
      summary: Batch search (row-in / row-out bulk lookups)
      description: 'Runs many queries in one call — offenders.io CSV-batch parity (one row = one call in, one result out).
        Each row goes through the SAME engine as `/v1/search` (served from the current snapshot), with bounded server-side
        concurrency, and results come back in input order. Send either a JSON array of query objects, a JSON envelope `{ "queries":
        [...], ...batch-wide options }` (the non-`queries` keys — `jurisdictions`, `match`, `recordTypes`, `locationScoped`,
        `include` — apply to every row), or a `text/csv` body whose header row names Query fields (`firstName,lastName,state,dob,city,zipcode,address,age,q`).
        A JSON row that cannot be read (an unknown key, or a value of the wrong type such as `"dob": "1980"`) makes the whole
        request a 422 whose `detail` names the row index and the field; nothing runs. A row that fails while it runs is reported
        with `status: error` in place; it never aborts the batch. Max 1000 rows.


        **Clearances, per row.** A JSON row (or a CSV column) may carry `subjectId`, and optionally `clientId` and `clearanceMode`,
        beside its Query fields — each row is one subject being screened. That row''s result then honours the subject''s clearances
        exactly as `POST /v1/search` does: suppressed people leave the row''s `records[]` and are listed in its `cleared[]`,
        and `counts.clearedSuppressed` says how many. A row without `subjectId` is unchanged. See `SearchRequest.subjectId`.


        **Billing — per search, NOT per request.** A batch is one HTTP call but contains N searches, and **each search in
        the batch is billed as one search** (at the graduated per-call rate). A batch of 100 rows = 100 billable searches.
        Batch is cache-only (Regular): the retired `freshness` tier no longer applies, and live re-verification is not offered
        per row.

        '
      security:
        - ApiKeyAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
                - type: array
                  items:
                    $ref: '#/components/schemas/Query'
                - type: object
                  properties:
                    queries:
                      type: array
                      items:
                        $ref: '#/components/schemas/Query'
                    jurisdictions:
                      type: array
                      items:
                        type: string
                    match:
                      type: string
                      enum:
                        - strict
                        - balanced
                        - broad
                    recordTypes:
                      type: array
                      items:
                        type: string
                    locationScoped:
                      type: boolean
                    include:
                      type: array
                      items:
                        type: string
                    deadlineMs:
                      type: integer
                      default: 120000
                      minimum: 1000
                      maximum: 600000
                      description: Per-row time bound in ms, applied to every row. Same rules as `SearchRequest.deadlineMs`.
                    onDeadline:
                      type: string
                      enum:
                        - partial
                        - error
                      default: partial
                      description: What a row does when it reaches `deadlineMs`. Same rules as `SearchRequest.onDeadline`.
                  required:
                    - queries
          text/csv:
            schema:
              type: string
              description: Header row of Query field names, then one query per line.
              example: 'firstName,lastName,state

                John,Smith,FL

                Jane,Doe,TX

                '
      responses:
        '200':
          description: 'Per-row results, in input order. A row carries no `searchId` (rows are not individually citable by
            `POST /v1/report`, `GET /v1/searches/{id}/results` or a clearance — run `POST /v1/search` for a row you need to
            cite) and no `sourceStatus[]`, `page*` or `proof`. `subjectId`, `clientId` and `clearanceMode` may be sent per
            row or once at the envelope level (a row value wins). A row refused by validation is reported in the row (`status:
            "error"`, `error` a sentence or a `{code, message}` object), not raised for the batch.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  count:
                    type: integer
                    description: Number of rows processed.
                    example: 2
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        index:
                          type: integer
                          description: 0-based input row index.
                          example: 0
                        status:
                          type: string
                          description: Row outcome (complete/partial/error).
                          example: complete
                        counts:
                          type: object
                          properties:
                            records:
                              type: integer
                              example: 1
                            sourcesQueried:
                              type: integer
                              example: 58
                            sourcesIncomplete:
                              type: integer
                              description: Registries in THIS ROW that could not be searched to the end. Check it per row
                                — one row can be short while the rest are whole. See API-CONTRACT.md §5.0.
                              example: 0
                            sourcesComplete:
                              type: integer
                              description: Registries in THIS ROW that were searched to the end.
                              example: 58
                            sourcesSkippedByScope:
                              type: integer
                              description: Registries not queried for this row because `locationScoped` narrowed the search.
                                0 unless `locationScoped` was sent.
                              example: 0
                            recordsReturned:
                              type: integer
                              description: Records this row carries. Equal to `counts.records` unless the row was capped.
                              example: 1
                            clearedSuppressed:
                              type: integer
                              description: Records a `not_this_person` clearance removed from this row. Present only when
                                the row sent `subjectId`. See `SearchResponse.counts.clearedSuppressed`.
                              example: 0
                        warnings:
                          type: array
                          items:
                            type: string
                          description: Per-row warnings, same shape as the envelope's. `[]` when nothing shortened this row.
                            A batch row carries no `sourceStatus`, so this is the only prose signal it has.
                          example: []
                        records:
                          type: array
                          items:
                            $ref: '#/components/schemas/Record'
                        cleared:
                          type: array
                          items:
                            $ref: '#/components/schemas/ClearedEntry'
                          description: 'Present only when the row sent `subjectId`: the people a `not_this_person` clearance
                            removed from this row. `[]` when none were.'
                        error:
                          type: string
                          description: Present only when status=error.
                          example: null
        '401':
          $ref: '#/components/responses/Unauthorized'
        '413':
          description: Batch exceeded the maximum row count (1000).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          $ref: '#/components/responses/Unprocessable'
        '402':
          description: A trial account cannot run a batch; add billing.
  /v1/proof-docs/{token}:
    get:
      operationId: getProofDoc
      summary: Fetch a rendered verification-report document
      description: 'Serves the rendered proof document referenced by a ProofBundle document `url`. Returns the raw file body
        with the appropriate content type (`application/pdf` or `text/html`), not JSON.

        '
      security:
        - ApiKeyAuth: []
      parameters:
        - name: token
          in: path
          required: true
          schema:
            type: string
          description: Opaque document token from a ProofBundle document `url`.
      responses:
        '200':
          description: The rendered document.
          content:
            application/pdf:
              schema:
                type: string
                format: binary
            text/html:
              schema:
                type: string
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
  /v1/records/{recordId}:
    get:
      operationId: getRecord
      summary: Fetch a single normalized record by recordId or uuid
      description: 'Resolves a record by EITHER identifier a search published for it: our `recordId` (`rec_…`) or the registry''s
        own `uuid`. DATABASE-BACKED since 2026-08-04 — it previously read only an in-memory index local to one API container,
        keyed on `recordId` alone, so a `uuid` never resolved and a `recordId` resolved only when the follow-up request happened
        to reach the same container as the search.


        A `404` means THIS IDENTIFIER WAS NEVER ISSUED FOR A RECORD — never that the person is unregistered. Registries re-issue
        their ids (KY, MO, OR, AZ, IA and WV each re-issued their entire registry within eight days to 2026-08-04; CA re-issued
        ~104,000), and a registry identifier that was later SUPERSEDED still resolves here to the person''s CURRENT record
        — the one a search returns today, carrying the current `uuid` and the same `personRef`. Store `personRef` to recognise
        the person next time; keep the identifier you cited in a report as it was issued, since it keeps resolving.


        An identifier carrying a byte no id of ours can hold — a NUL or any other control character — is also a `404`. Until
        2026-08-05 `/v1/records/%00` and `/v1/records/a%00b` returned **500**, the only 5xx reachable from ~60 hostile inputs,
        because the NUL reached a database parameter. A 5xx is a claim that WE failed, and for a malformed id that claim is
        false. `%01` and `%25` always answered 404; now every impossible id answers the same way.


        A `409` means the id is AMBIGUOUS. A `uuid` is unique only together with its jurisdiction — `20059` identifies a Florida,
        a Pennsylvania and a Wisconsin registrant, and 55,893 ids are shared across jurisdictions (147,624 records). This
        endpoint returns one record and will not guess which you meant; use `recordId`, which is namespaced per jurisdiction
        and does not collide.

        '
      parameters:
        - name: recordId
          in: path
          required: true
          description: The `recordId` (`rec_…`) or the registry `uuid` from a search result. A `uuid` the registry has since
            replaced still resolves to the person's current record.
          schema:
            type: string
          example: rec_ab12cd34ef56gh78ij90
      responses:
        '200':
          description: The record
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Record'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: 'The identifier matches records in more than one jurisdiction. `detail` names them. Disambiguate with
            the compat endpoint''s `state`, or use `recordId`.

            '
  /v1/sources:
    get:
      operationId: listSources
      summary: Coverage catalog + live health of every jurisdiction
      description: 'The catalog of every jurisdiction we cover, with lightweight health. No API key required — this doubles
        as public coverage transparency.

        '
      security: []
      responses:
        '200':
          description: Coverage catalog
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SourceInfo'
  /v1/clearances:
    post:
      operationId: createClearance
      tags:
        - clearances
      summary: Record a verdict — a returned person is, or is not, the subject
      description: 'Records that the person behind one `personRef` is (`this_person`) or is not (`not_this_person`) the subject
        identified by your `subjectId` — and, for a platform serving many facilities, your `clientId`. From then on every
        search that sends the same `subjectId` (and `clientId`) honours the verdict: a `not_this_person` person leaves `records[]`
        and is listed in `cleared[]`; a `this_person` person is kept and annotated. Both the sex offender search and the criminal
        search accept the same `subjectId`; `product` says which dataset the verdict belongs to.


        The verdict must cite the search that showed the person: `searchId` must be a search in this account''s history (searches
        are kept 14 days) and that search''s stored results must contain the `personRef`. That is the proof the person was
        reviewed. A second verdict for the same subject, client and `personRef` replaces the first; the new clearance''s `supersedes`
        names the one it replaced.


        A clearance matches by `personRef` only — never by name or date of birth. The person being cleared shares a name,
        and often a birthday, with the subject, so a name match would also hide the subject''s own record. Included in the
        search price; nothing on this route is metered.

        '
      security:
        - ApiKeyAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ClearanceCreate'
            example:
              product: sex_offender
              subjectId: resident-48213
              clientId: facility-07
              personRef: prs_3c9e1f0a7b2d4e6f8a1b
              recordId: rec_6d066763131ebe8c77ea
              searchId: srch_9f2c1a7b
              verdict: not_this_person
              reviewer: admissions-desk
              note: Photo and registry address do not match the resident.
      responses:
        '201':
          description: The verdict was recorded and applies to the next search for this subject.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Clearance'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: '`search_not_found` — `searchId` is not one of this account''s searches, or it is older than the 14-day
            history window and its results are gone. Run the search again and clear from the new result.

            '
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - search_not_found
                      message:
                        type: string
        '409':
          description: '`person_not_in_search` — the search named by `searchId` did not return this `personRef`. A clearance
            must cite a search that showed the person being cleared.

            '
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - person_not_in_search
                      message:
                        type: string
        '422':
          description: 'A field failed validation — an unknown `product` or `verdict`, a `subjectId` or `clientId` outside
            1–128 characters, a `personRef` that is not the `prs_` value a search returned, a `reviewer` over 120 or a `note`
            over 500 characters, or an unknown key.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    get:
      operationId: listClearances
      tags:
        - clearances
      summary: List the clearances recorded for one subject
      description: 'Every clearance recorded for `subjectId` (and `clientId`, when you send one), newest first. Active clearances
        only unless `includeRevoked=true`. The ids you send are hashed before the lookup, exactly as they were when the clearances
        were recorded, so a listing needs the same `subjectId` and `clientId` the verdict was recorded under.

        '
      security:
        - ApiKeyAuth: []
      parameters:
        - name: subjectId
          in: query
          required: true
          description: Your id for the subject, as sent when the clearances were recorded.
          schema:
            type: string
            minLength: 1
            maxLength: 128
        - name: clientId
          in: query
          required: false
          description: Your facility / tenant / client id, when the clearances were recorded with one.
          schema:
            type: string
            minLength: 1
            maxLength: 128
        - name: product
          in: query
          required: false
          description: Restrict to one dataset. Omit for both.
          schema:
            type: string
            enum:
              - sex_offender
              - criminal
        - name: includeRevoked
          in: query
          required: false
          description: '`true` also returns revoked clearances. Default `false`: active ones only.'
          schema:
            type: boolean
            default: false
      responses:
        '200':
          description: The subject's clearances, newest first.
          content:
            application/json:
              schema:
                type: object
                properties:
                  clearances:
                    type: array
                    items:
                      $ref: '#/components/schemas/Clearance'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/Unprocessable'
  /v1/clearances/{clearanceId}:
    get:
      operationId: getClearance
      tags:
        - clearances
      summary: Retrieve one clearance
      description: 'One clearance by id. `subjectId` and `clientId` are `null` on this route: only a per-account hash of them
        is stored, so they can be echoed only on the request that carried them.

        '
      security:
        - ApiKeyAuth: []
      parameters:
        - name: clearanceId
          in: path
          required: true
          description: The clearance `id` (`clr_…`).
          schema:
            type: string
      responses:
        '200':
          description: The clearance.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Clearance'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    delete:
      operationId: revokeClearance
      tags:
        - clearances
      summary: Revoke a clearance
      description: 'Sets `revokedAt`. The verdict stops applying at once: the next search for that subject shows the person
        again. The clearance stays readable with `includeRevoked=true`, so the audit trail is not lost.

        '
      security:
        - ApiKeyAuth: []
      parameters:
        - name: clearanceId
          in: path
          required: true
          description: The clearance `id` (`clr_…`).
          schema:
            type: string
      responses:
        '200':
          description: The clearance was revoked.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: The revoked clearance's `id`.
                    example: clr_7d2f41c0a9b3e8f6
                  revokedAt:
                    type: string
                    format: date-time
                    description: When it was revoked — now.
                    example: '2026-10-25T09:30:44+00:00'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
  /v1/map/viewport:
    get:
      tags:
        - map
      operationId: mapViewport
      summary: What to draw for one map view — clusters, pins or named pins
      description: 'You draw the map; this returns what to draw for one view. Send the view as

        `bbox`, or as `center` with `radiusMiles` — one or the other, not both.


        The detail returned depends on the effective zoom. That is the `zoom` you

        send, or — when you send none — the zoom at which the box is about four tiles

        wide. If the box covers more than 64 tiles at that zoom, the zoom is lowered

        until it fits, never below 3. The response states the zoom used.


        | Effective zoom | `mode` | Returned |

        |---|---|---|

        | 3–12 | `clusters` | A count per grid cell |

        | 13–14 | `pins` | One pin per address: position only, no name |

        | 15+ | `markers` | Pins with a name label and basic fields |


        A view at zoom 13 or closer that holds more than 300 pins is answered as

        clusters on a finer grid (`mode: "clusters"`). With `detail=count` the mode

        is `count`.


        **Billing.** One map request per answer, whatever the view holds. Clusters

        and pins are never charged per person. A `304`, test mode and any error

        response are free.


        **Caching.** Every answer carries `Cache-Control: private, max-age=300` and

        an `ETag`. Send the `ETag` back in `If-None-Match`: an unchanged view answers

        `304` with no body and is not billed. The `ETag` changes when the data

        changes, and at least every 12 hours.


        **Test mode.** `sandbox=true` returns made-up people (every label starts

        with "Sample") around eight US cities, in the real response shape. Group and

        marker ids from a test-mode response open test-mode data. It needs no plan,

        is never billed and counts against no budget. The response carries

        `"sandbox": true`.


        **Auth.** A secret API key from any server, or a

        map browser key (`os_map_pk_…`) sent from a site on that key''s list.

        '
      security:
        - ApiKeyAuth: []
      parameters:
        - name: bbox
          in: query
          description: '`west,south,east,north` in degrees. Any size. A box crossing the date line has west greater than east.

            '
          schema:
            type: string
          example: -83.5,39.6,-82.4,40.3
        - name: center
          in: query
          description: 'Instead of `bbox`: `lat,lng` in degrees. Goes together with `radiusMiles`.'
          schema:
            type: string
          example: 39.9612,-82.9988
        - name: radiusMiles
          in: query
          description: 'With `center`: the radius in miles, 0.1 to 100.'
          schema:
            type: number
            minimum: 0.1
            maximum: 100
        - name: zoom
          in: query
          description: Optional. The map's current zoom, 0 to 22. Fractions are floored.
          schema:
            type: number
            minimum: 0
            maximum: 22
        - name: format
          in: query
          description: '`json` (default) or `geojson`.'
          schema:
            type: string
            enum:
              - json
              - geojson
            default: json
        - name: detail
          in: query
          description: '`full` (default) or `count` (numbers only).'
          schema:
            type: string
            enum:
              - full
              - count
            default: full
        - name: housing
          in: query
          description: 'Keep only people with this housing status. One or more of `housed`, `homeless`, `incarcerated`, comma-separated.

            '
          schema:
            type: string
          example: homeless,incarcerated
        - name: precision
          in: query
          description: '`street` keeps only people with an exact street address. `any`, or leaving it out, keeps everyone.'
          schema:
            type: string
            enum:
              - street
              - any
        - name: sandbox
          in: query
          description: '`true` answers in test mode.'
          schema:
            type: boolean
            default: false
        - $ref: '#/components/parameters/MapEndUser'
        - $ref: '#/components/parameters/MapIfNoneMatch'
      responses:
        '200':
          description: The answer for this view.
          headers:
            ETag:
              description: Validator for this view. Send it back in `If-None-Match`.
              schema:
                type: string
            Cache-Control:
              description: '`private, max-age=300`.'
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapViewportResponse'
            application/geo+json:
              schema:
                $ref: '#/components/schemas/MapGeoJson'
        '304':
          description: The view has not changed since the `ETag` sent in `If-None-Match`. No body. Not billed.
          headers:
            ETag:
              schema:
                type: string
            Cache-Control:
              schema:
                type: string
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/MapForbidden'
        '422':
          description: 'The request could not be read. `detail.code` is one of `invalid_bbox`, `invalid_center`, `invalid_radius`,
            `invalid_zoom`, `invalid_filter`, `invalid_format`, `invalid_detail`.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapError'
        '429':
          $ref: '#/components/responses/MapTooManyRequests'
        '503':
          $ref: '#/components/responses/MapUnavailable'
  /v1/map/area:
    post:
      tags:
        - map
      operationId: mapArea
      summary: The same answer for a drawn shape — a polygon, or a route with a buffer
      description: 'Everyone inside a drawn shape: a school zone, a delivery area, a walking route. Send one of `polygon`
        or `route`.


        The response is the viewport response for the shape''s bounding box, limited to what is inside the shape, plus `shape`.
        The detail level follows the same zoom rules as `GET /v1/map/viewport`. In pins and markers mode `total` is exact.
        In clusters mode a cluster is included when its centre is inside the shape, and the response carries `"totalIsEstimate":
        true`.


        **Billing.** One map request per answer. Test mode and any error response are free.

        '
      security:
        - ApiKeyAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MapAreaRequest'
            examples:
              polygon:
                summary: A polygon
                value:
                  polygon:
                    - - -83.01
                      - 39.96
                    - - -82.99
                      - 39.96
                    - - -82.99
                      - 39.98
                    - - -83.01
                      - 39.98
              route:
                summary: A route with a buffer
                value:
                  route:
                    points:
                      - - -83.01
                        - 39.96
                      - - -83.0
                        - 39.97
                      - - -82.99
                        - 39.98
                    bufferMiles: 0.25
      responses:
        '200':
          description: The answer for this shape.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapViewportResponse'
            application/geo+json:
              schema:
                $ref: '#/components/schemas/MapGeoJson'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/MapForbidden'
        '422':
          description: 'The request could not be read. `detail.code` is `invalid_shape` for the polygon or route, or one of
            `invalid_zoom`, `invalid_filter`, `invalid_format`, `invalid_detail`.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapError'
        '429':
          $ref: '#/components/responses/MapTooManyRequests'
        '503':
          $ref: '#/components/responses/MapUnavailable'
  /v1/map/route:
    post:
      tags:
        - map
      operationId: mapRoute
      summary: Exact counts and nameless pins along one route, its legs and its stops
      description: 'Who is registered along a route: within a corridor either side of a line,

        within a radius of each stop, or both. The answer is exact, never an

        estimate and never partial.


        Send the line as one of `path` (a GeoJSON LineString, or `[[lng, lat], …]`),

        `points` (`[[lng, lat], …]`) or `polyline` (an encoded polyline: precision 5

        for Google Directions `overview_polyline`, 6 for Mapbox Directions

        `geometry: polyline6`). Without a line, two or more `stops` are joined by

        straight lines.


        The answer counts people per leg (between two stops) and per stop, places

        every pin on the route (`distanceMiles`, `leg`, `alongMiles`) and next to

        its nearest stop (`nearestStop`, `stopDistanceFeet`). People mapped only to

        a ZIP code, city or county are counted separately under `approximate` and

        never in `total`. **A route answer never carries a name**, on any plan; for

        a labelled map, request a viewport at zoom 15 or closer. The record behind a

        pin opens with `GET /v1/map/records/{markerId}`.


        **Billing.** A route is billed as route units, each one map request:

        `ceil(corridor miles) × width factor` when the corridor is measured (×1 up

        to a 0.25-mile corridor) plus `ceil(stops / 10)` when stop radii are

        measured, at least 1. A 17.42-mile bus route with a 0.1-mile corridor and 35

        stops at 1,000 feet is 18 + 4 = 22 units. `detail=count` costs the same. A

        `304`, test mode and any error response are free.


        **Never partial.** More than 300 pins with `detail=full` is `422

        route_too_many_people` with the exact counts and nothing charged; a route

        through more addresses than one call counts exactly is `422

        route_too_dense`; a read that fails is `503` with no result and nothing

        charged.


        **Caching.** `Cache-Control: private, max-age=300` and an `ETag`. Send it

        back in `If-None-Match`: the same route asked again answers `304`, free.


        **Auth.** A secret API key, or a map browser key (`os_map_pk_…`) from a

        site on its list. A browser key must send `X-End-User`.

        '
      security:
        - ApiKeyAuth: []
      parameters:
        - $ref: '#/components/parameters/MapEndUser'
        - $ref: '#/components/parameters/MapIfNoneMatch'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MapRouteRequest'
            examples:
              busRoute:
                summary: A bus route with stops, a corridor and a stop radius
                value:
                  profile: bus
                  polyline: o|{rFnuqyN_v@oi@o}@g^
                  stops:
                    - id: stop-1
                      lng: -82.9988
                      lat: 39.9612
                    - id: stop-2
                      lng: -82.987
                      lat: 39.98
                  corridorMiles: 0.1
                  stopRadiusFeet: 1000
                  detail: count
              walk:
                summary: A walking loop as a GeoJSON LineString
                value:
                  profile: walk
                  path:
                    type: LineString
                    coordinates:
                      - - -83.0006
                        - 39.9601
                      - - -82.9951
                        - 39.9608
                      - - -82.9949
                        - 39.9655
                      - - -83.0006
                        - 39.9601
      responses:
        '200':
          description: The answer for this route.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapRouteResponse'
            application/geo+json:
              schema:
                $ref: '#/components/schemas/MapGeoJson'
        '304':
          description: The same route was asked within the `ETag`'s life. No body, not billed.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/MapForbidden'
        '422':
          description: 'The route was refused, with nothing charged. `detail.code` is one of `invalid_route`, `invalid_path`,
            `invalid_polyline`, `invalid_profile`, `invalid_measure`, `invalid_corridor`, `invalid_radius`, `invalid_stops`,
            `invalid_detail`, `invalid_format`, `invalid_filter`, `route_too_long`, `route_too_many_points`, `route_too_many_stops`,
            `route_too_dense`, `route_too_many_people` (with `counts` and `maxMarkers`) or `end_user_required`.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapError'
        '429':
          $ref: '#/components/responses/MapTooManyRequests'
        '503':
          $ref: '#/components/responses/MapUnavailable'
  /v1/map/routes:
    post:
      tags:
        - map
      operationId: mapRoutes
      summary: Up to 50 routes in one call, answered all or nothing
      description: 'Up to 50 routes, each shaped like a `POST /v1/map/route` body, answered in

        one call. Every route answers, or none does: one invalid route is a `422`

        naming its `routeIndex`, one route over 300 pins (with `detail=full`) is

        `422 route_too_many_people` naming its `routeIndex`, and a failed read is a

        `503`. Nothing is billed unless the whole batch answers.


        All the markers share one response, so a person on three routes opened from

        this answer is one record open. A batch answers in JSON only.


        **Billing.** The sum of the routes'' units, each one map request.

        '
      security:
        - ApiKeyAuth: []
      parameters:
        - $ref: '#/components/parameters/MapEndUser'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MapRoutesRequest'
      responses:
        '200':
          description: Every route's answer, in the order sent.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapRoutesResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/MapForbidden'
        '422':
          description: 'The batch was refused, with nothing charged. `route_batch_too_large` (more than 50 routes), `invalid_route`
            (no routes), `invalid_format` (a batch answers in JSON), or any `POST /v1/map/route` code, with `routeIndex` naming
            the route.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapError'
        '429':
          $ref: '#/components/responses/MapTooManyRequests'
        '503':
          $ref: '#/components/responses/MapUnavailable'
  /v1/map/groups/{groupId}:
    get:
      tags:
        - map
      operationId: mapGroup
      summary: The people behind a many-people or approximate-area pin
      description: 'One page of the people a `groupId` stands for. A `groupId` comes from a pin with `id: null` (several people
        at one address) or from an entry in `areas`. Each member `id` opens with `GET /v1/map/records/{markerId}`.


        Members carry `label` only when the group id came from a view at zoom 15 or closer (`named: true`). A group id works
        for 24 hours, and only for the account it was issued to.


        **Billing.** One map request per page. Test mode and any error response are free.

        '
      security:
        - ApiKeyAuth: []
      parameters:
        - name: groupId
          in: path
          required: true
          description: A `groupId` (`mg_…`) from a viewport or area response.
          schema:
            type: string
        - name: page
          in: query
          description: Page number, starting at 1.
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: perPage
          in: query
          description: People per page, 1 to 100.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
      responses:
        '200':
          description: One page of the group.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapGroupResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/MapForbidden'
        '404':
          description: '`unknown_group` — not a group id this account was given.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapError'
        '410':
          description: '`group_expired` — older than 24 hours. Request the map view again for a new one.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapError'
        '422':
          description: '`invalid_page` — `page` starts at 1; `perPage` is 1 to 100.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapError'
        '429':
          $ref: '#/components/responses/MapTooManyRequests'
        '503':
          $ref: '#/components/responses/MapUnavailable'
  /v1/map/records/{markerId}:
    get:
      tags:
        - map
      operationId: mapOpenRecord
      summary: The complete record behind a marker or a saved reference
      description: "Accepts a marker id (`mk_…`) or a saved reference (`mr_…`). Returns the same record object `POST /v1/search`\
        \ returns, a lasting `recordRef`, and a `billing` block that says whether this open was charged.\n\n**Billing.** One\
        \ record open per person per map response.\n- Opening the same marker id again is free\n  (`reason: \"marker_already_opened\"\
        `).\n\n- A new viewport or groups response carries new ids. Opening the same person\n  from it is a new charge.\n\n\
        - `recordRef` is a lasting reference for bookmarks and shared links. Opening\n  by reference is one record open, then\
        \ free for 24 hours. A record just\n  opened from a marker is also free by its reference for 24 hours.\n\n- `record_no_longer_listed`,\
        \ test mode and every other error response are\n  not billed.\n\n\nMarker ids work for 24 hours, and only for the\
        \ account they were issued to. Photo links on hosted photos are signed and work in an `<img>` tag, with no key, for at least 7 days and any number of loads.\n"
      security:
        - ApiKeyAuth: []
      parameters:
        - name: markerId
          in: path
          required: true
          description: A marker id (`mk_…`) from a map response, or a saved reference (`mr_…`) from an opened record.
          schema:
            type: string
        - $ref: '#/components/parameters/MapEndUser'
      responses:
        '200':
          description: The record.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapRecordResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/MapForbidden'
        '404':
          description: '`unknown_marker` — not an id this account was given.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapError'
        '410':
          description: '`marker_expired` — the marker id is older than 24 hours; request the map view again, or keep the `recordRef`
            from an opened record. `record_no_longer_listed` — the registry no longer lists the person. Not billed.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapError'
        '429':
          $ref: '#/components/responses/MapTooManyRequests'
        '503':
          $ref: '#/components/responses/MapUnavailable'
  /v1/map/status:
    get:
      tags:
        - map
      operationId: mapStatus
      summary: The Map API plan, rates, limits and this month's usage
      description: 'Free. Answers for an account whose Map API is off too — it is how a client finds out that it is.

        '
      security:
        - ApiKeyAuth: []
      responses:
        '200':
          description: The plan and this month's usage.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapStatus'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: '`origin_not_allowed` — a browser key used from a site not on its list.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapError'
  /v1/map/enable:
    post:
      tags:
        - map
      operationId: mapEnable
      summary: Turn the Map API on (charges the monthly minimum)
      description: "Any paying business account can turn the Map API on, with a secret API key. A map browser key is not accepted\
        \ here.\n\n1. `acceptMinimum` must be `true`.\n2. The account needs a payment method on file. A free-trial account\
        \ is\n   refused.\n\n3. The monthly minimum ($300) is charged to the card at that moment. It\n   covers the current\
        \ calendar month. If the charge fails, nothing is turned\n   on.\n\n4. The plan is active at once on the same key.\
        \ A confirmation email is sent.\n\nLater months are settled on the month-end invoice: usage, or the minimum if usage\
        \ is lower. The minimum is applied toward everything the account uses that month, search included. The month of turn-on\
        \ is invoiced at month end as `max(total usage, 300) − 300 already paid`.\n\nCalling this on an account that is already\
        \ on changes nothing and charges nothing. Turning it on again in a month it was already paid for charges nothing more.\n"
      security:
        - ApiKeyAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MapEnableRequest'
            example:
              acceptMinimum: true
      responses:
        '200':
          description: The plan after the call, with what was charged.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapEnableResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          description: '`payment_method_required` — no card on file, or a trial account. `payment_failed` — the card was declined;
            nothing was turned on.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapError'
        '403':
          description: '`business_account_required` — a personal account. `admin_required` — a non-admin seat.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapError'
        '422':
          description: '`minimum_not_accepted` — `acceptMinimum` was not `true`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapError'
  /v1/map/disable:
    post:
      tags:
        - map
      operationId: mapDisable
      summary: Turn the Map API off
      description: 'Free. The map routes stop at once. The month stays a minimum month and a minimum already paid is not refunded.
        Turning it on again in the same month charges nothing more. Takes a secret API key; a map browser key is not accepted
        here.

        '
      security:
        - ApiKeyAuth: []
      responses:
        '200':
          description: The plan after the call.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapDisableResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: '`admin_required` — a non-admin seat.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapError'
  /v1/monitors:
    post:
      operationId: createMonitor
      tags:
        - monitoring
      summary: Create a monitor
      description: 'Creates one standing watch: one `product` (`sex-offender` or `criminal`) and one predicate (`person` or
        `location`). Watching the same person in both datasets is two monitors. `channels` must carry at least one email address
        or a `webhookUrl`. `product: "criminal"` with `type: "location"` creates nothing and returns `200` with `status: "not_yet_available"`.

        '
      security:
        - ApiKeyAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MonitorCreateRequest'
      responses:
        '201':
          description: The monitor was created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Monitor'
        '200':
          description: '`product: "criminal"` with `type: "location"`. No monitor was created and nothing is billed.

            '
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - not_yet_available
                  message:
                    type: string
                    description: A sentence you can show a user.
                    example: Location monitors are not yet available for criminal records. No monitor was created and nothing
                      was billed.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          description: The account has no active subscription and no active free trial.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: 'A field failed validation — an unknown `product`, `type` or `minConfidence`, no channel, a person
            monitor without `person.lastName`, a `person.dob` that is not `YYYY-MM-DD`, a location monitor without `location.address`
            or `location.lat` + `location.lng`, or a `location.radiusMiles` outside (0, 100].

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    get:
      operationId: listMonitors
      tags:
        - monitoring
      summary: List this account's monitors
      security:
        - ApiKeyAuth: []
      parameters:
        - name: includeCanceled
          in: query
          required: false
          description: '`true` also returns canceled monitors. Default `false`: active monitors only.'
          schema:
            type: boolean
            default: false
      responses:
        '200':
          description: The account's monitors, newest first.
          content:
            application/json:
              schema:
                type: object
                properties:
                  monitors:
                    type: array
                    items:
                      $ref: '#/components/schemas/Monitor'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          description: The account has no active subscription and no active free trial.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/monitors/{monitorId}:
    get:
      operationId: getMonitor
      tags:
        - monitoring
      summary: Retrieve one monitor with its ten most recent alerts
      security:
        - ApiKeyAuth: []
      parameters:
        - name: monitorId
          in: path
          required: true
          description: The monitor `id` (`mon_…`).
          schema:
            type: string
      responses:
        '200':
          description: The monitor, with `recentAlerts`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Monitor'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          description: The account has no active subscription and no active free trial.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          $ref: '#/components/responses/NotFound'
    delete:
      operationId: cancelMonitor
      tags:
        - monitoring
      summary: Cancel a monitor
      description: 'Sets the monitor''s `status` to `canceled`. Evaluation stops now, the monitor is not charged on any invoice
        prepared after the cancel, and it and its alerts stay readable.

        '
      security:
        - ApiKeyAuth: []
      parameters:
        - name: monitorId
          in: path
          required: true
          description: The monitor `id` (`mon_…`).
          schema:
            type: string
      responses:
        '200':
          description: The monitor was canceled.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - canceled
                  id:
                    type: string
                    description: The canceled monitor's `id`.
                    example: mon_b8f40d7afb9dc0d8
                  note:
                    type: string
                    description: When monitoring and billing stop, as a sentence.
                    example: Evaluation stopped now. This monitor is not charged on any invoice prepared after this cancel;
                      it and its alerts stay readable.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          description: The account has no active subscription and no active free trial.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: '`personal_alert` — the monitor is a personal alert billed by its own subscription; it is canceled
            from the personal dashboard.

            '
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - personal_alert
                      message:
                        type: string
  /v1/monitors/{monitorId}/webhook-secret:
    parameters:
      - name: monitorId
        in: path
        required: true
        schema:
          type: string
        example: mon_b8f40d7afb9dc0d8
    post:
      operationId: rotateMonitorWebhookSecret
      tags:
        - monitoring
      summary: Rotate a monitor's webhook signing secret
      description: 'Issue a new `whsec_…` secret for the monitor''s webhook. The previous secret stops verifying at once.
        The new value is returned in this response only — it is never shown again by `GET` or list. No body.

        '
      security:
        - ApiKeyAuth: []
      responses:
        '200':
          description: The monitor, with `channels.webhookSecret` set to the new secret.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Monitor'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '404':
          description: No monitor with this id on the account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: The monitor has no `webhookUrl`; there is nothing to sign.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/monitors/{monitorId}/alerts:
    get:
      operationId: listMonitorAlerts
      tags:
        - monitoring
      summary: One monitor's alert history
      security:
        - ApiKeyAuth: []
      parameters:
        - name: monitorId
          in: path
          required: true
          description: The monitor `id` (`mon_…`).
          schema:
            type: string
        - name: limit
          in: query
          required: false
          description: How many alerts to return, most recently observed first. Clamped to 1–200.
          schema:
            type: integer
            default: 50
      responses:
        '200':
          description: The monitor's alerts.
          content:
            application/json:
              schema:
                type: object
                properties:
                  alerts:
                    type: array
                    items:
                      $ref: '#/components/schemas/MonitorAlert'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          description: The account has no active subscription and no active free trial.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          $ref: '#/components/responses/NotFound'
  /v1/support:
    post:
      operationId: submitSupportMessage
      summary: Send a message to the Offendersearch team
      description: 'Sends a message to our support team. **No API key required** — this is the endpoint behind the contact
        form on offendersearch.app, and it is open because the people who need it most are the ones who do not have a key
        yet.


        A `200` means the message is **recorded**: it is stored against the `submissionId` in the response and can be looked
        up by that id if you ever need to refer to it. It does not report that an email has arrived anywhere, because that
        is a separate step we do not make you wait for.


        Replies come from the address in `supportEmail`, normally within one business day. You can also write to that address
        directly; both routes reach the same inbox.


        The endpoint accepts `application/json` or `application/x-www-form-urlencoded`, so an ordinary HTML form can post
        to it without any JavaScript.

        '
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SupportRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SupportRequest'
      responses:
        '200':
          description: The message was recorded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SupportResult'
        '413':
          description: 'The body is larger than this endpoint accepts (64 KB). Send a summary and reply to our answer with
            anything bulky.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: 'A required field is missing or the email address is not a valid address. Nothing was stored; correct
            it and send again.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: 'Too many messages from one address in a short period. Nothing was stored, so nothing is duplicated
            when you retry. `Retry-After` gives the number of seconds to wait, and the same value is in `detail.retryAfterSeconds`.

            '
          headers:
            Retry-After:
              description: Seconds to wait before sending the message again.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitError'
        '503':
          description: 'The message could not be recorded, so **do not treat it as sent**. Use the address in the error text
            instead; it is answered by the same team.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /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`.

        '
      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`).

        '
      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.

        '
      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.

        '
      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`.

        '
      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).

            '
    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`.

        '
      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.

        '
      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.

            '
          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
        '409':
          description: '`report_not_ready` — the order has not completed.'
          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'
  /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.

        '
      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`.

            '
          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'
        '422':
          description: '`unknown_record` (a `recordIds` entry was not furnished in this order), `validation`, or the standard
            validation body.'
        '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'
  /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.

        '
      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'
    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/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/apply/{token}:
    parameters:
      - name: token
        in: path
        required: true
        description: The token from the invitation's `applyUrl`.
        schema:
          type: string
    get:
      operationId: fcraApplyView
      tags:
        - fcra
      summary: 'Hosted consent: what the consumer sees'
      description: 'Public, by the link token; rate-limited. The forms to read and acknowledge, who is asking, who prepares the report, and the prefilled name. Never an order id or an access code.

        '
      security: []
      responses:
        '200':
          description: The flow.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FcraApplyView'
        '404':
          description: '`not_found` — the link is not valid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FcraError'
  /v1/apply/{token}/complete:
    parameters:
      - name: token
        in: path
        required: true
        schema:
          type: string
    post:
      operationId: fcraApplyComplete
      tags:
        - fcra
      summary: 'Hosted consent: sign and authorize'
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FcraApplyComplete'
      responses:
        '201':
          description: The authorization is recorded and the order placed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FcraApplyResult'
        '409':
          description: '`invitation_completed` | `invitation_expired` | `invitation_cancelled`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FcraError'
        '422':
          description: '`acknowledgement_required` | `signature_mismatch` | validation'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FcraError'
  /v1/apply/{token}/decline:
    parameters:
      - name: token
        in: path
        required: true
        schema:
          type: string
    post:
      operationId: fcraApplyDecline
      tags:
        - fcra
      summary: 'Hosted consent: decline'
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FcraApplyDecline'
      responses:
        '200':
          description: Declined; the invitation is cancelled and the client told.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - declined
  /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.

        '
      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.

        '
      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.

        '
      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'
    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.

        '
      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`).

        '
      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.

        '
      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'
  /v1/criminal/search:
    post:
      operationId: criminalSearch
      tags:
        - criminal-search
      summary: Search criminal records (cached by default, live with a `live` block)
      description: 'The primary endpoint. Runs one query across the corpus and returns merged, ranked criminal records. **Cached
        mode by default; live verification when you include a `live` block.**


        `lastName` is required inside `query` — a query with no surname predicate is refused with `422 guard_unbounded_query`,
        because an unbounded query is a lottery, not an answer. `page` and `perPage` live at the TOP LEVEL of the request
        (not inside `query`), and are echoed back at the top level too — a deliberate difference from the Sex-Offender API,
        where they live inside `query`.


        A cached search returns `200` with the envelope. A live search returns `200` with the same envelope (plus a populated
        `sourceStatus[]` and a `usage` block) when it can run synchronously (≤2 sync-eligible sources), or `202` with a `searchId`
        + `poll` URL when it must run asynchronously (more than 2 sources, or a source that is not sync-eligible). When the
        request used `query.website` or `live.websites`, the response also carries a top-level `resolution[]` block showing
        the jurisdiction code each site mapped to — and the `202` body carries it too.


        The `query` fields may also be sent FLAT at the top level (without a `query` wrapper); wrapping them in `query` is
        the documented form.

        '
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CriminalSearchRequest'
            examples:
              cached:
                summary: Cached search (the default — no `live` block)
                value:
                  query:
                    lastName: Hamilton
                    firstName: Alex
                    state: TX
                  page: 1
                  perPage: 50
              cachedWithAnnex:
                summary: Cached search asking for the per-source annex
                value:
                  query:
                    lastName: Hamilton
                    state: TX
                  include:
                    - sourceData
              cachedByWebsite:
                summary: Cached search scoped by a roster website
                value:
                  query:
                    lastName: Hamilton
                    website: https://sheriff.examplecounty.gov/inmates
              liveMatched:
                summary: Live verification of the jurisdictions that produced the cached hits
                value:
                  query:
                    lastName: Hamilton
                    state: TX
                  live:
                    scope: matched
              liveExplicit:
                summary: Live verification at explicit jurisdiction codes
                value:
                  query:
                    lastName: Hamilton
                    firstName: Alex
                    state: TX
                  live:
                    jurisdictions:
                      - TX-BEXAR
                      - TX-DOC
              filtered:
                summary: Felony convictions in the last 7 years, with facet counts
                value:
                  query:
                    lastName: Rivera
                    firstName: Jordan
                    dob: '1988-04-12'
                  filters:
                    severity:
                      - felony
                    convictedOnly: true
                    lookbackYears: 7
                  include:
                    - facets
              locations:
                summary: A known person and two places they lived
                value:
                  query:
                    lastName: Rivera
                    firstName: Jordan
                    dob: '1988-04-12'
                  locations:
                    - kind: residence
                      zipcode: '77060'
                    - kind: any
                      state: OK
              liveWebsites:
                summary: Live verification driven by roster websites (mixed supported / unsupported)
                value:
                  query:
                    lastName: Hamilton
                    state: TX
                  live:
                    websites:
                      - https://sheriff.examplecounty.gov/inmates
                      - https://jail.baldwincounty.example/roster
      responses:
        '200':
          description: 'Cached search, or a synchronous live search, completed. The response is the standard envelope; on
            a live search it also carries `sourceStatus[]` and `usage`, and `resolution[]` when a website was resolved.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CriminalSearchResponse'
              examples:
                cached:
                  summary: A cached answer
                  value:
                    status: complete
                    counts:
                      records: 12
                      recordsReturned: 12
                      sourcesQueried: 0
                      sourcesComplete: 0
                      sourcesIncomplete: 0
                      candidatesCapped: false
                      exclusionsIncluded: false
                    warnings: []
                    page: 1
                    perPage: 50
                    totalPages: 1
                    sourceStatus: []
                    cappedOmittedSources: []
                    omittedFields:
                      - sourceData
                    records: []
                    proof:
                      status: none
                    searchId: crs_7f2a1c9e0b4d6a8f1e23
                    meterEvents:
                      - kind: criminal_call
                        quantity: 1
                        chargeCeilingUsd: null
                    legal:
                      notice: 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.).
                liveSync:
                  summary: A synchronous live answer (one unsupported website reported)
                  value:
                    status: partial
                    counts:
                      records: 3
                      recordsReturned: 3
                      sourcesQueried: 2
                      sourcesComplete: 1
                      sourcesIncomplete: 1
                      candidatesCapped: false
                      exclusionsIncluded: false
                    warnings:
                      - 'INCOMPLETE SEARCH: 1 of 2 sources could not be searched to completion (unsupported_site). The records
                        below are a LOWER BOUND: an absent person may simply not have been reached. This is NOT evidence that
                        someone is absent — retry, or narrow the query.'
                    page: 1
                    perPage: 50
                    totalPages: 1
                    sourceStatus:
                      - code: TX-BEXAR
                        source: TX-BEXAR
                        ok: true
                        incomplete: false
                        incompleteReason: null
                        records: 2
                        lastCheckedAt: '2026-08-25T15:04:11+00:00'
                        live: true
                      - code: null
                        source: null
                        ok: false
                        incomplete: true
                        incompleteReason: unsupported_site
                        records: 0
                        lastCheckedAt: '2026-08-25T15:04:11+00:00'
                        live: true
                    cappedOmittedSources: []
                    omittedFields:
                      - sourceData
                    records: []
                    proof:
                      status: none
                    usage:
                      liveChecks: 1
                      liveChargeUsd: 0.02
                      capped: false
                      display: 1 live checks · $0.02
                    resolution:
                      - input: https://sheriff.examplecounty.gov/inmates
                        supported: true
                        code: TX-BEXAR
                        note: equivalent data available for this jurisdiction
                      - input: https://jail.baldwincounty.example/roster
                        supported: false
                        code: null
                        note: Baldwin, AL is not currently covered
                    searchId: crs_9f2c1a7b0b4d6a8f1e23
                    meterEvents:
                      - kind: criminal_call
                        quantity: 1
                        chargeCeilingUsd: null
                      - kind: criminal_live_source
                        quantity: 1
                        chargeCeilingUsd: 2.0
                    legal:
                      notice: 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.).
        '202':
          description: 'A live search that must run asynchronously (more than 2 live sources, or a source that is not sync-eligible).
            Poll `poll` until the job is `complete`. When a website was resolved, `resolution[]` is included here too.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncAccepted'
              example:
                searchId: crs_7f2a1c9e0b4d6a8f1e23
                status: pending
                mode: async
                liveSourcesRequested: 6
                poll: /v1/criminal/searches/crs_7f2a1c9e0b4d6a8f1e23
                reason: 6 live sources (> 2 or not sync-eligible) — running asynchronously
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '422':
          description: '`lastName` missing (`guard_unbounded_query`); a prefix shorter than the 3-character floor (`prefix_too_short`);
            a `page` below 1 or a `perPage` outside 1–200 (`invalid_page`); a body that is not a JSON object (`invalid_body`);
            a wrong-typed `query` field or `live` block (`invalid_query` / `invalid_live`); or a `live` request that resolved
            to no sources (`no_live_sources`). **A `live.websites` list that was ENTIRELY unsupported is not a `422`** — it
            returns `200`/`partial` with the unsupported sites reported in `sourceStatus[]` and `resolution[]`.


            Filters and locations: a value outside a filter''s list, a wrong type, an unknown filter key, a bad `sort` or
            `unknown`/`chargeMatch` value (`invalid_filter_value`, the message lists the allowed values); a date range that
            is not ISO, not a real date, or runs backwards (`invalid_date_range`); a malformed location (`invalid_location`);
            more than 10 locations (`too_many_locations`); `locations` sent together with the flat `state` / `county` / `jurisdiction`
            / `city` / `zipcode` / `address` query keys (`ambiguous_location`); a `radiusMiles` above 100 (`radius_too_large`);
            and filters or locations on a live search that must run asynchronously (`filters_with_async_live`).

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CriminalError'
              examples:
                unbounded:
                  value:
                    error:
                      code: guard_unbounded_query
                      message: a lastName predicate is required — an unbounded query returns a lottery, not an answer
                noLiveSources:
                  value:
                    error:
                      code: no_live_sources
                      message: live requested but no jurisdictions resolved (empty list / no matches)
                invalidFilterValue:
                  value:
                    error:
                      code: invalid_filter_value
                      message: 'filters.severity: capital not allowed; use one of felony, misdemeanor, infraction'
                radiusTooLarge:
                  value:
                    error:
                      code: radius_too_large
                      message: locations[0].radiusMiles must be at most 100
                filtersWithAsyncLive:
                  value:
                    error:
                      code: filters_with_async_live
                      message: filters and locations work with stored searches and live checks of up to 2 sources; narrow
                        live.jurisdictions or search without filters
        '503':
          description: '`filters_unavailable`: the request carried `filters` or `locations` while filtering is switched off.
            A filtered request is never answered with unfiltered results; the response carries `Retry-After: 300`. The same
            search without filters and locations is unaffected.

            '
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
                example: 300
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CriminalError'
              example:
                error:
                  code: filters_unavailable
                  message: Search filters are temporarily unavailable; retry shortly, or search without filters.
  /v1/criminal/searches/{searchId}:
    get:
      operationId: criminalGetSearch
      tags:
        - criminal-search
      summary: Poll an asynchronous live job
      description: 'Poll an asynchronous live job — the one returned as `202` when a live search had more than two sources
        or a source that could not run synchronously. A search is only visible to the account that created it; another account''s
        `searchId` returns `404`.


        While the job is running the stored record carries `status: "pending"`, zeroed `recordsCount` / `liveCompleted`, and
        `result: null`, and the HTTP status is `202`. When it completes, `status` is `"complete"`, `result` carries the full
        response envelope, `liveCompleted` is the number of live sources that finished, and the HTTP status is `200`.

        '
      parameters:
        - name: searchId
          in: path
          required: true
          schema:
            type: string
          example: crs_7f2a1c9e0b4d6a8f1e23
      responses:
        '200':
          description: Job found and complete — `result` carries the full envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobRecord'
              example:
                searchId: crs_7f2a1c9e0b4d6a8f1e23
                accountId: acct_1a2b3c
                tier: live
                status: complete
                recordsCount: 12
                liveCompleted: 3
                createdAt: '2026-08-25T15:04:11+00:00'
                updatedAt: '2026-08-25T15:04:29+00:00'
                result:
                  status: complete
                  counts:
                    records: 12
                    recordsReturned: 12
                    sourcesQueried: 3
                    sourcesComplete: 3
                    sourcesIncomplete: 0
                    candidatesCapped: false
                    exclusionsIncluded: false
                  warnings: []
                  page: 1
                  perPage: 50
                  totalPages: 1
                  sourceStatus: []
                  cappedOmittedSources: []
                  omittedFields:
                    - sourceData
                  records: []
                  proof:
                    status: none
                  usage:
                    liveChecks: 3
                    liveChargeUsd: 0.06
                    capped: false
                    display: 3 live checks · $0.06
                  searchId: crs_7f2a1c9e0b4d6a8f1e23
                  meterEvents:
                    - kind: criminal_call
                      quantity: 1
                      chargeCeilingUsd: null
                    - kind: criminal_live_source
                      quantity: 3
                      chargeCeilingUsd: 2.0
                  legal:
                    notice: 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.).
        '202':
          description: Job found, still pending — poll again.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobRecord'
              example:
                searchId: crs_7f2a1c9e0b4d6a8f1e23
                accountId: acct_1a2b3c
                tier: live
                status: pending
                recordsCount: 0
                liveCompleted: 0
                createdAt: '2026-08-25T15:04:11+00:00'
                updatedAt: '2026-08-25T15:04:11+00:00'
                result: null
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          description: 'The job ran and was refused: the stored query was too broad when it rendered. Not a JobRecord — the
            body carries `searchId` and an `error` object (`code: "query_too_broad"`). Nothing was billed.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CriminalError'
        '404':
          description: Unknown `searchId`, or one that belongs to another account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CriminalError'
              example:
                error:
                  code: not_found
                  message: no such search
  /v1/criminal/batch:
    post:
      operationId: criminalBatch
      tags:
        - criminal-search
      summary: Bulk cached lookups — one row in, one result out
      description: 'Bulk cached lookups: one row in, one result out, in input order. Each row runs through the SAME cached
        engine as `/v1/criminal/search`, so results are identical to running them individually. **Live verification is not
        offered in batch — every row is cache-only.**


        Send either a JSON array of query objects, a JSON envelope `{ "queries": [...], ...batch-wide defaults }` (any key
        beside `queries` — `include`, `nameStrategy`, `state`, … — is applied to every row, and a per-row value overrides
        it), or a `text/csv` body whose header row names `query` field names (empty cells are dropped and a UTF-8 BOM is handled).
        A row that fails validation (e.g. a missing `lastName`) is returned in place with `status: "error"` and its reason;
        it never aborts the batch.


        **Billing is per search, not per request.** A batch is one HTTP call but contains N searches, and each row that ran
        is billed as one `criminal_call` — a 1,000-row batch is 1,000 billable calls.

        '
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
                - type: array
                  items:
                    $ref: '#/components/schemas/CriminalQuery'
                - $ref: '#/components/schemas/BatchEnvelope'
            examples:
              bareArray:
                summary: A bare array of query objects
                value:
                  - lastName: Hamilton
                    state: TX
                  - lastName: Example
                    state: IL
                    firstName: Chris
              withDefaults:
                summary: An envelope with batch-wide defaults
                value:
                  queries:
                    - lastName: Hamilton
                      state: TX
                    - lastName: Example
                      state: IL
                      firstName: Chris
                  include:
                    - sourceData
                  nameStrategy: prefix
          text/csv:
            schema:
              type: string
              description: A header row of `query` field names, then one query per line.
              example: 'firstName,lastName,state

                Alex,Hamilton,TX

                Chris,Example,IL

                '
      responses:
        '200':
          description: 'Batch ran. NOT the standard envelope — a wrapper with one entry per input row, in input order. Individual
            rows may still be `status: "error"`.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchResponse'
              example:
                count: 2
                results:
                  - index: 0
                    status: complete
                    counts:
                      records: 12
                      recordsReturned: 12
                      sourcesQueried: 0
                      sourcesComplete: 0
                      sourcesIncomplete: 0
                      candidatesCapped: false
                      exclusionsIncluded: false
                    warnings: []
                    page: 1
                    perPage: 50
                    totalPages: 1
                    sourceStatus: []
                    cappedOmittedSources: []
                    omittedFields:
                      - sourceData
                    records: []
                    proof:
                      status: none
                  - index: 1
                    status: error
                    error: a lastName predicate is required — an unbounded query returns a lottery, not an answer
                    counts:
                      records: 0
                      recordsReturned: 0
                      sourcesQueried: 0
                      sourcesComplete: 0
                      sourcesIncomplete: 0
                      candidatesCapped: false
                      exclusionsIncluded: false
                    records: []
                meterEvents:
                  - kind: criminal_call
                    quantity: 1
                    chargeCeilingUsd: null
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '413':
          description: Batch exceeded the maximum row count (1000).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CriminalError'
              example:
                error:
                  code: batch_too_large
                  message: batch of 1500 exceeds the 1000-row limit
        '422':
          description: 'Unparseable body or a CSV with no header row (`bad_batch`), or a batch with zero queries (`empty_batch`).

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CriminalError'
              examples:
                bad:
                  value:
                    error:
                      code: bad_batch
                      message: unparseable JSON body
                empty:
                  value:
                    error:
                      code: empty_batch
                      message: no queries in the batch
  /v1/criminal/records/{recordId}:
    get:
      operationId: criminalGetRecord
      tags:
        - criminal-records
      summary: Re-fetch a single cached record by identifier
      description: 'Re-fetch a single cached record by its `externalId`, with its `sources[].code` as `source`. The response
        is the BARE Criminal Record object — not wrapped in an envelope.


        A `404` means "this identifier is not current", NOT "this person has no record." A jail booking that has since dropped
        from the roster, or a source that re-issued its ids, can leave a stored id resolving to nothing. Re-search by name
        and state.

        '
      parameters:
        - name: recordId
          in: path
          required: true
          description: The record's `externalId` from a search result, URL-encoded.
          schema:
            type: string
          example: TX-BEXAR:booking:889201
        - name: source
          in: query
          required: false
          description: 'The record''s `sources[].code`. Send it: an `externalId` is unique only within its source, and with
            the code the lookup is a direct key read. Without it the lookup is bounded to five seconds and answers 404 if
            the row is not found in time.

            '
          schema:
            type: string
          example: TX-BEXAR
      responses:
        '200':
          description: The record.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CriminalRecord'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '404':
          description: No current record carries this id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CriminalError'
              example:
                error:
                  code: not_found
                  message: no current record carries this id
  /v1/criminal/sources:
    get:
      operationId: criminalListSources
      tags:
        - criminal-coverage
      summary: Coverage catalog + per-jurisdiction freshness (no key)
      description: 'The coverage catalog plus live per-jurisdiction currency — the honest, public answer to "how fresh is
        your data?", one row per jurisdiction, with the timestamp of its last successful ingest. **No API key required**,
        so you can check it before you buy and audit it afterwards.


        None of this is a filter: a jurisdiction contributes its records to a cached search whatever its age says, and freshness
        never withholds anything. Read this endpoint to KNOW a jurisdiction''s currency, not to predict which ones will answer.
        Jurisdiction names only — never a portal or vendor name.

        '
      security: []
      responses:
        '200':
          description: Coverage catalog with per-jurisdiction health.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SourcesResponse'
              example:
                coverage:
                  jurisdictions_total: 1410
                  jurisdictions_live_connector: 727
                  jurisdictions_pending_connector: 683
                  states_covered: 50
                sources:
                  - id: TX-BEXAR
                    name: Bexar County, TX — County Jail Roster
                    covers:
                      - TX
                    scope: county
                    status: live
                    health:
                      lastSuccessAt: '2026-08-24T05:12:00+00:00'
                      ageSeconds: 30074
                      freshFor:
                        - daily
                        - weekly
                count: 1410
  /v1/criminal/jurisdictions:
    get:
      operationId: criminalListJurisdictions
      tags:
        - criminal-coverage
      summary: Coverage catalog, filterable by state / county-kind / live-reachability
      description: 'The coverage catalog — every jurisdiction the product covers, filterable by state, record-kind and live-reachability,
        plus an honest per-product coverage summary. Unlike `GET /v1/criminal/sources` it requires a key and does not carry
        the per-jurisdiction freshness health block. Entitlement-gated like search; NOT metered.

        '
      parameters:
        - name: state
          in: query
          required: false
          description: USPS code — filter to one state, case-insensitive.
          schema:
            type: string
          example: TX
        - name: recordKind
          in: query
          required: false
          description: Filter by kind.
          schema:
            type: string
            enum:
              - jail-roster
              - court
              - doc-inmate
              - registry
              - warrant
              - exclusion
        - name: live
          in: query
          required: false
          description: '`true` to list only jurisdictions reachable for live verification.'
          schema:
            type: boolean
      responses:
        '200':
          description: The filtered coverage list.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JurisdictionsResponse'
              example:
                coverage:
                  jurisdictions_total: 1410
                  jurisdictions_live_connector: 727
                  jurisdictions_pending_connector: 683
                  states_covered: 50
                jurisdictions:
                  - code: TX-BEXAR
                    state: TX
                    county: Bexar
                    recordKind: jail-roster
                    level: county
                    live: true
                count: 1
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
  /v1/criminal/resolve:
    post:
      operationId: criminalResolve
      tags:
        - criminal-coverage
      summary: Map a roster / records website to the jurisdiction code we cover
      description: 'Map a roster or records website to the public jurisdiction code we cover for it, so you can drive a search
        from a URL you already know instead of one of our codes. **The mapping is one-directional — your site in, a neutral
        code out — and never reveals our own sources.** Even when the answer is "we cover this", the response names only the
        state, the county, and the neutral code — never the site we actually read.


        Send `{ "website": "..." }` for a single site (→ a single result object) or `{ "websites": [...] }` for a list (→
        a `results[]` wrapper, one entry per input, in order). An unsupported input is `supported: false` with `code: null`
        and a plain-language `note` — it is a resolution outcome to read, not an error. Entitlement-gated exactly like search;
        NOT metered — a cheap in-memory lookup that consults no data source, so it emits no `criminal_call`.

        '
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResolveRequest'
            examples:
              single:
                summary: One website
                value:
                  website: https://sheriff.examplecounty.gov/inmates
              list:
                summary: A list of websites
                value:
                  websites:
                    - https://sheriff.examplecounty.gov/inmates
                    - https://jail.baldwincounty.example/roster
      responses:
        '200':
          description: 'Resolved — a single result object for a `website`, or a `results[]` wrapper for a `websites` list.
            Unsupported inputs are `supported: false`.

            '
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/ResolveResult'
                  - $ref: '#/components/schemas/ResolveListResponse'
              examples:
                single:
                  summary: One website resolved
                  value:
                    input: https://sheriff.examplecounty.gov/inmates
                    supported: true
                    code: TX-BEXAR
                    state: TX
                    county: Bexar
                    note: equivalent data available for this jurisdiction
                list:
                  summary: A list (one supported, one not)
                  value:
                    count: 2
                    results:
                      - input: https://sheriff.examplecounty.gov/inmates
                        supported: true
                        code: TX-BEXAR
                        state: TX
                        county: Bexar
                        note: equivalent data available for this jurisdiction
                      - input: https://jail.baldwincounty.example/roster
                        supported: false
                        code: null
                        state: AL
                        county: Baldwin
                        note: Baldwin, AL is not currently covered
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '422':
          description: Neither `website` nor `websites` was sent (`no_website`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CriminalError'
              example:
                error:
                  code: no_website
                  message: send a 'website' string or a 'websites' array
  /v1/criminal/history:
    get:
      operationId: criminalHistory
      tags:
        - criminal-account
      summary: Your account's prior searches
      description: 'The account''s prior searches — the same stored-search discipline as the Sex-Offender product. Returns
        only YOUR account''s searches, most recent first.

        '
      responses:
        '200':
          description: The account's prior searches.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HistoryResponse'
              example:
                searches:
                  - searchId: crs_7f2a1c9e0b4d6a8f1e23
                    tier: live
                    status: complete
                    recordsCount: 12
                    liveCompleted: 3
                    createdAt: '2026-08-25T15:04:11+00:00'
                  - searchId: crs_1a2b3c4d5e6f7a8b9c0d
                    tier: core
                    status: complete
                    recordsCount: 4
                    liveCompleted: 0
                    createdAt: '2026-08-25T14:59:02+00:00'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
  /v1/criminal/report:
    post:
      operationId: criminalReport
      tags:
        - criminal-account
      summary: A verification PDF attesting a search was performed
      description: "A consolidated verification PDF that ATTESTS a criminal-records search was performed — the criminal analogue\
        \ of the Sex-Offender API's `POST /v1/report`. The PDF shows the query, the run timestamp and a report id (`rpt_…`),\
        \ the matching records grouped by DOB/age match strength, each with its identity and its PUBLIC source citation (the\
        \ neutral jurisdiction code plus a last-checked stamp — **never a portal, platform or vendor name**), a records-searched\
        \ count, and the FCRA \"not a consumer report\" notice prominently. A zero-match search renders a clean \"no records\
        \ found\" attestation.\n\n**Two input modes, exactly one required:**\n* `{\"searchId\": \"...\"}` — render a PREVIOUSLY\
        \ STORED search. The search was\n  already billed when it ran, so this meters **only** the report.\n\n* `{\"query\"\
        : {...}}` (optionally with a `live` block, the SAME shape as\n  `/search`) — run the search inline and render it.\
        \ Bills the underlying\n  `criminal_call` (plus `criminal_live_source` per completed live source) **and**\n  the report.\n\
        \n\nAuthenticated exactly like `/search`. The response is **not JSON — the PDF bytes**. The report id (`rpt_` + 12\
        \ hex) is printed on the document and sent in the `X-Report-Id` response header; `Content-Disposition` names the attachment\
        \ (`offendersearch-criminal-<reportId>.pdf`).\n"
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CriminalReportRequest'
            examples:
              byStoredSearch:
                summary: Report on a prior search (report charge only)
                value:
                  searchId: crs_7f2a1c9e0b4d6a8f1e23
                  viewerName: Case Worker
                  purpose: Records verification
                  reference: FILE-2026-0142
              inlineQuery:
                summary: One-shot — run a cached search inline and render it
                value:
                  query:
                    lastName: Hamilton
                    firstName: Alex
                    state: TX
              inlineLive:
                summary: One-shot with live verification at explicit jurisdictions
                value:
                  query:
                    lastName: Hamilton
                    state: TX
                  live:
                    jurisdictions:
                      - TX-BEXAR
                      - TX-DOC
      responses:
        '200':
          description: 'The verification PDF (`content-type: application/pdf`). The report id is printed on the document and
            returned in `X-Report-Id`.

            '
          content:
            application/pdf:
              schema:
                type: string
                format: binary
        '400':
          description: Neither `searchId` nor an inline `query` was provided (`no_report_input`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CriminalError'
              example:
                error:
                  code: no_report_input
                  message: provide a searchId (a prior search) or an inline query
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '404':
          description: No search with that `searchId` on this account, or it has no stored result to render.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CriminalError'
              example:
                error:
                  code: not_found
                  message: no such search
        '422':
          description: An inline `query` that failed validation (e.g. `guard_unbounded_query`, `prefix_too_short`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CriminalError'
              example:
                error:
                  code: guard_unbounded_query
                  message: a lastName predicate is required — an unbounded query returns a lottery, not an answer
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.

        '
    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.

        '
  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`).

        '
      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.

        '
      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).

        '
      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.

        '
      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).

        '
      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.

        '
      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.

        '
      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.

        '
      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.

        '
      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.

                '
            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.

            '
          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.

            '
        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.

            '
        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.

            '
    SupportResult:
      type: object
      properties:
        status:
          type: string
          enum:
            - received
          description: '`received` means the message is recorded and retrievable by `submissionId`.

            '
        submissionId:
          type: string
          description: 'The reference for this message. Quote it if you follow up about the same thread.

            '
          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.

            '
          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.

        '
      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.


            ★ **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`.

            '
          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`.


            ★ 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.

            '
          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.

            '
          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`.

            '
          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).

            '
        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.

            '
        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.

            '
        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.

            '
        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.

            '
    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.

        '
      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.

            '
          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.

            '
        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.

            '
    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).

        '
      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.

        '
      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`.

        '
      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`.

                '
            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.

                '
            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`.

                '
    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`.

                '
    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.

        '
      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`.

            '
        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`.

            '
        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`.

            '
          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.

            '
        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`.

        '
      properties:
        kind:
          type: string
          example: live_source
        quantity:
          type: integer
          example: 1
        chargeCeilingUsd:
          type: number
          nullable: true
          example: 2.0
    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.

            '
          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.

            '
        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.

            '
        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.

            '
        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.

            '
          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.

            '
          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.

            '
        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.

            '
        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`.

            '
    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.)

        '
      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.

        '
      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).

            '
        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.

            '
        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.

            '
        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.

                '
              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.

                '
              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.

                '
              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.

                '
              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.

                '
              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.

                '
              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[]`.

                '
              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.

            '
          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.

            '
          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.

            '
          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`).

            '
          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.

            '
        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.

            '
          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`.

            '
          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.

            '
          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.

            '
    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.

        '
      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`.

            '
        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.

            '
          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.

            '
          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.


            **The six values, and what to DO about each:**


            `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`.


            `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.


            ★ 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.


            `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.


            `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.


            `unavailable` — we could not READ this registry for this request (a transient backend or transport fault). It
            contributed nothing. ★ RETRYABLE.


            `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.


            **`null`** when `incomplete` is false — this registry was searched to the end and its `matched` count is exact.


            ★ 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.


            ★ 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.

            '
          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.

            '
          example: false
    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.

            '
          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).

        '
      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).

            '
          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.

            '
          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`.

            '
          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.

            '
          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`.

            '
          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.

            '
          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)`.

            '
          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"`.

            '
          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").

            '
          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.

            '
          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.

            '
          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`.


            ★ **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.

            '
          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.

            '
          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`.

            '
          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`.

            '
          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.

            '
          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%).

            '
          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.

            '
          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.

            '
          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.

            '
          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.

            '
          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).

            '
          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.

            '
        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".

            '
        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.

            '
    Record:
      type: object
      description: 'One normalized offender record (offenders.io-parity superset + our extensions).


        **Every key is always present — we never omit a key.** Read the empty values carefully, because they mean different
        things:


        * `""` 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.

        * `null` on `dob` means the registry publishes no date of birth — check `age`, since many portals publish age only.

        * `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.

        * `null` on `matchedName` means your query supplied no name; `null` on `matchState` means your query supplied no `dob`
        or `age`.

        * `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.

        '
      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.

            *** 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.

            CONSEQUENCE: 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.

            DETERMINISTIC WITHIN ONE SCOPE: re-run the same request and you get the same ids. Store the scope with the id.

            A registry identifier the registry has since replaced still resolves on `GET /v1/records/{recordId}` to the person''s
            current record.

            BREAKING 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.

            '
          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.

            '
          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.

            It 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.

            '
          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.

            '
          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"]`.

            **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`.

            **Prefer `matchDetail`**, which is this same information already split into its separate vocabularies.

            '
          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.


            Caution 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.

            '
          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\n\
                The 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.

                '
              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.

                '
            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.

                '
              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.

            '
          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.

            '
          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.

            '
          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.


            `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`.


            **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`.


            `null` means we do not know the year.

            '
        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.

            '
          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.

            '
          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.

            '
          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.

            '
          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.


            ★ `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.


            `""` 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.


            ★ 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).

            '
          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.


            The 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.


            `[]` 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.


            Values 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.

            '
          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.)

            '
          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.

            '
        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.

            '
          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.


            `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`.

            '
          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.

            '
        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.

            THE 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.

            `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.

            recordUrl: 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.

            Two 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.

            '
          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\u2019s **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.

            '
          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
        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.

            '
    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).

        '
      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.

            '
        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.

            '
          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.

            '
          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.

            '
          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`.

            '
          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.

            '
        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.

        '
      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.

            '
          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.

        '
      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.

        '
      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[]`.

            '
          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`.

            '
    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.

        '
      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.

                '
    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.

            '
        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.

            '
        lat:
          type: number
          nullable: true
          description: The centre the radius is evaluated around.
        lng:
          type: number
          nullable: true
        radiusMiles:
          type: number
          default: 3.0
          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}`.

        '
      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.

        '
      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`.

        '
      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.

            '
          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.

            '
          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.

        '
      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.

        '
      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).

                '
            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.

        '
      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.

        '
      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.

        '
      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}`.

        '
      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.

        '
      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`.

        '
      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`.

            '
        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.

            '
        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`).

            '
          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`.

        '
      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.

        '
      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.

            '
          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.

        '
      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).

            '
    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.

            '
          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`.

            '
    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).

        '
      properties:
        detail:
          type: object
          properties:
            code:
              type: string
              example: fcra_not_enabled
            message:
              type: string
              example: FCRA features are not enabled for this account.
    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
    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'
    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
    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.

            '
        licenses:
          type: array
          nullable: true
          maxItems: 10
          items:
            $ref: '#/components/schemas/FcraLicense'
    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.

            '
    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
        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
        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
    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
        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 and address-history trace are coming soon; until a provider is live both report `not_available`.
      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
                - failed
            provider:
              type: string
              nullable: true
        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.

            '
          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
    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
        sandbox:
          type: boolean
        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
    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
        identityNote:
          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
        - addresses
      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
          minItems: 1
          maxItems: 20
          items:
            $ref: '#/components/schemas/FcraApplyAddress'
    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
    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
    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.

            '
        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).

            '
        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.

            '
        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.

            '
          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.

            '
        heldForIdentifiers:
          type: integer
          example: 0
          description: 'Healthcare rows only: name-only candidates held (withheld `insufficient_identifiers`) because nothing
            but the name agreed.

            '
        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.

            '
          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.

            '
          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.

        '
      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`.

            '
        cases:
          type: array
          description: 'Criminal records only: the criminal record''s own `cases`, every one kept, with each furnished charge
            carrying `fcraDisposition`.

            '
          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-----

            MCowBQYDK2VwAyEAq1Zk7b3Xn9Y2cR8dT4fV6gH0jK5lM7nP9qS1tU3vW5x=

            -----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`.**

        '
      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.

                '
              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`.

        '
      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 match the record''s residence
        `address` and so reach only records that publish one. There is no radius filter. `query.website` resolves to a jurisdiction
        scope, not a new filter axis. The query fields may also be sent flat at the top level of the body.

        '
      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.

            '
          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.

            '
          example: Alex
        first:
          type: string
          description: Alias for `firstName`.
        dob:
          type: string
          format: date
          description: 'Full date of birth, `YYYY-MM-DD`. 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` on each returned record for how it verified.

            '
          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).

            '
          example: 36
        state:
          type: string
          description: USPS state code — filters to records in that state.
          example: TX
        county:
          type: string
          description: 'Jurisdiction (county) filter, case-insensitive. Also accepted as `jurisdiction`.

            '
          example: Bexar
        jurisdiction:
          type: string
          description: Alias for `county`.
        city:
          type: string
          description: 'Residence city, compared case-insensitively against the record''s `address.city`. Records with no
            residence address on file are not returned when this is set.

            '
          example: Bexar
        zipcode:
          type: string
          description: 'Residence ZIP, matched as a prefix of the record''s `address.zipcode` (`"750"` matches `75001`). Also
            accepted as `zip`.

            '
          example: '78205'
        zip:
          type: string
          description: Alias for `zipcode`.
        address:
          type: string
          description: 'Street text that must appear, case-insensitively, inside the record''s `address.line1`. Also accepted
            as `streetAddress`.

            '
          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`.

            '
          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).

            '
          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. `prefix` (default) — 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.

            '
        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`.

            '
      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.

        '
      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`.

            '
        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`.

            '
        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.

            '
        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[]`.

            '
        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.

            '
        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.

            '
          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.

            '
          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.

            '
      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.

        '
      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.

            '
          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).

        '
      properties:
        jurisdictions:
          type: array
          items:
            type: string
          description: 'An explicit list of PUBLIC jurisdiction codes to check live (`["TX-BEXAR", "TX-DOC"]`). 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`.

            '
          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.

            '
        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.

            '
          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).

        '
      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`.

            '
        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.

        '
      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.

            '
        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.)

            '
          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.

            '
        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`.

            '
          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.

            '
        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`.

            '
          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.

            '
        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`.

            '
          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`.

            '
        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.

            '
        facets:
          allOf:
            - $ref: '#/components/schemas/SearchFacets'
          description: 'Present when the request sent `include: ["facets"]`. Counts over every record that passed, not only
            this page.

            '
        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`.

            '
          example:
            severity:
              - felony
            convictedOnly: true
            lookbackYears: 7
            unknown: keep
            chargeMatch: any
      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.

        '
      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`.

            '
          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.

            '
          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.

            '
          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.

            '
          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`.

            '
          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`.

            '
          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[]`.

            '
          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.

            '
          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"`.

            '
          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.

            '
          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`.

        '
      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.

                '
              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`.

            '
          items:
            $ref: '#/components/schemas/SearchCoverageSource'
      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).

        '
      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.

            '
          example: TX-BEXAR
        source:
          type:
            - string
            - 'null'
          description: 'A duplicate of `code`, carried for parity with the Sex-Offender API''s `sourceStatus[].source`.

            '
          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`.

            '
          example: false
        incompleteReason:
          type:
            - string
            - 'null'
          description: 'Why it fell short — a closed vocabulary. Non-`null` **only** when `incomplete` is `true`.

            '
          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).

            '
          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.

            '
        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).

            '
        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.

            '
        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).

            '
      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`.

        '
      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.

        '
      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.0
        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.

            '
        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).

            '
          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.

        '
      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.

            '
          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`.

            '
          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.

            '
          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.

            '
          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`).

            '
        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`.

            '
          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"`.

            '
          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.

            '
          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: Photo URL where the source publishes one.
          example: https://sheriff.examplecounty.gov/inmates/889201/photo.jpg
        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"`.

            '
          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.

            '
          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[]`.

            '
        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.

            '
          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.

            '
          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.

            '
        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`.

            '
          example: false
        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.

            '
          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.

            '
        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.

            '
          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.

            '
        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`.

            '
          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.

            '
        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.

            '
        matchedLocations:
          type: array
          items:
            type: integer
          description: 'Present only when the request sent `locations`. The 0-based indexes of the locations this record matched.

            '
          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.

            '
          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.

        '
      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`.

            '
          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.

        '
      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[]`.

            '
          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`.

            '
          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`.

        '
      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.

            '
        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.

            '
          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`.

            '
          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`.

        '
      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`.

        '
      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.

            '
        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`.

            '
        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.

            '
        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`.

            '
        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.

            '
        statute:
          type: string
          minLength: 2
          description: 'The start of the published statute citation, ignoring spaces and case. `22.02` matches `22.02(a)(1)`.

            '
          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.

            '
        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.

            '
          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.

            '
        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`.

            '
      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.

        '
      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.

        '
      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`.

            '
          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).

            '
          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`.

            '
        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).

        '
      properties:
        first:
          type: string
          description: 'Given name. `""` here is meaningful for matching — the record is kept and flagged `firstName:absent`,
            never dropped.

            '
          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`.

        '
      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.

            '
      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.

        '
      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".

            '
        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.

            '
          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).

        '
      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.0
        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.

        '
      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.

        '
      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.

        '
      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.

            '
          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).

        '
      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.

            '
          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"]`.

        '
      properties:
        program:
          type: string
          enum:
            - medicare_medicaid
            - federal_procurement
            - state_medicaid
            - nurse_aide_registry
          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`.

            '
        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`.

            '
          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"]`.

            '
          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"`).

            '
          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.

            '
          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).
          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.
          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.

                '
              example:
                - daily
                - weekly
            feeds:
              type: object
              description: 'Only on a code made of several lists (`US-EXCLUSION`): each list''s own `lastSuccessAt`
                (`leie`, `sam`). The code''s own `lastSuccessAt` is the OLDER of them.

                '
              additionalProperties:
                type: object
                properties:
                  lastSuccessAt:
                    type:
                      - string
                      - 'null'
      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.

        '
      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"`.

            '
          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.

        '
      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"`.

            '
        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.

            '
          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.

        '
      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.
      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.

        '
      properties:
        index:
          type: integer
          description: 0-based input row index.
          example: 0
        status:
          type: string
          enum:
            - complete
            - partial
            - error
          description: '`error` when this row failed validation; otherwise as on a search.'
        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
        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: {}
