> ## Documentation Index
> Fetch the complete documentation index at: https://vaquill.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get several US court decisions

> Up to 50 distinct cases by `caseIds` in one call: the same record as `GET /us/cases/{caseId}`, in the order sent. Duplicates collapse. An id that matches no case is listed in `notFound` and not charged. Priced per case served.



## OpenAPI

````yaml https://api.vaquill.ai/external/openapi.json post /api/v1/us/cases/batch
openapi: 3.1.0
info:
  title: Vaquill Developer API
  description: >-
    Public API for legal statutes and legislation.


    **Authentication**: Pass your API key as `Authorization: Bearer vq_key_...`
    (preferred) or in the `X-API-Key` header. Sending two different keys in one
    request is rejected with a 401.


    **Credits**: Each call costs API credits. See `GET
    /api/v1/api-credits/pricing` for the full pricing matrix.


    ## Jurisdictions


    | Jurisdiction | Coverage | `countryCode` |

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

    | **United States** | USC and the Statutes at Large, the CFR and its annual
    editions, all 56 state and territory statutory codes (50 states, DC and five
    territories), state administrative regulations, court rules, federal and
    state constitutions, federal agency guidance and adjudications, the Federal
    Register, the Sentencing Guidelines and US tax treaties. | `US` |


    See the full [Coverage page](https://www.vaquill.ai/docs/api-guide/coverage)
    for the jurisdiction-by-jurisdiction breakdown, or call
    `/us/statutes/coverage` for live counts. Coverage is per (jurisdiction,
    corpusType) pair, so treat that endpoint as the authoritative list rather
    than this summary.


    ## Endpoints


    - **US Statutes**: Search and retrieve any of the corpora above with full
    text, resolve a citation to its exact section, browse the statutory
    hierarchy, read a section as it stood on a past date, and follow its change
    history, cross-references and defined terms

    - **Board Watches**: Subscribe to a corpus source and get a webhook or email
    when it refreshes with real changes (free, API key required)

    - **Pricing**: Credit costs per endpoint (no auth required)


    ## Rate limits


    Limits are enforced per API key and scale with your plan. A `429` response
    includes a `Retry-After` header.


    | Plan | Per minute | Per hour | Per day |

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

    | No API plan (pay as you go, trial keys) | 30 | 500 | 1,000 |

    | Vaquill API Pro | 60 | 1,000 | 2,000 |

    | Vaquill API Business | 150 | 2,500 | 10,000 |


    For full documentation, visit the [API
    Reference](https://www.vaquill.ai/docs/api-reference/).
  version: 1.0.0+d6119b4ae4dd9eeb
  contact:
    name: Vaquill API Support
    url: https://www.vaquill.ai
    email: support@vaquill.ai
  license:
    name: Proprietary
    url: https://www.vaquill.ai/terms
  termsOfService: https://www.vaquill.ai/terms
  x-revision: d6119b4ae4dd9eeb
servers:
  - url: https://api.vaquill.ai
    description: Production
security:
  - ApiKeyAuth: []
  - ApiKeyHeader: []
tags:
  - name: US Statutes
    description: >-
      Search and retrieve US primary law. Covers the United States Code and the
      Statutes at Large, the Code of Federal Regulations and its annual
      editions, state statutory codes and administrative regulations, federal
      and state constitutions, court rules, Federal Register rules and
      Presidential documents, federal and state agency guidance, agency
      adjudications, state Attorney General opinions, the Sentencing Guidelines
      and US tax treaties. Scope a search with the `corpusType` filter, and call
      `/us/statutes/coverage` for the live jurisdiction-by-corpusType list.


      - **Search**: Search across all USC, CFR, state, and regulatory sections

      - **Section**: Get metadata, citation, hierarchy, and source links for a
      specific section

      - **Body**: Get the full text of a section

      - **Enactments**: Which state session laws a publisher's own tables list
      against a section (supported jurisdictions only, never a complete history)
  - name: US Session Laws
    description: >-
      State session laws: the acts of each legislature as they were enacted,
      chapter by chapter, before they are folded into a code. A session law is
      what the governor signs. It carries the act's own text, including the
      language it strikes and inserts, its approval and effective dates, and,
      where the publisher prints one, the code sections it changes. That makes
      it the source for "which act changed this section, and when did it take
      effect".


      Every act has a permanent `sessionLawId` (for example
      `SSL_MN_2025R_G_Y2025_C1`, Minnesota Laws 2025, regular session, chapter
      1) whether or not we hold its text, and a citation or bill number such as
      `S.F.No. 1552` is accepted where an id goes. v1 serves STATE acts only.
      Federal session laws (the Statutes at Large, `SAL_` ids) are served by
      `/us/statutes/section`, and `/us/statutes/resolve` points a session-law
      citation here.


      **Start here**: check `/us/statutes/coverage` (free) for what we hold per
      state: each jurisdiction's `sessionLaws` block lists its sessions, which
      are complete or only partly collected, and the `series` and
      `instrumentTypes` that exist. Then **List** a session or a date range to
      get ids, **Get** one act for its record, then **Body** for its text. A law
      missing from a partly collected session is a free 404
      (`session_not_fully_collected`), not proof it does not exist.


      - **List**: everything enacted in a state's session, approved in a window,
      or taking effect on a date

      - **Get**: one act by id or by citation; dates (`effectiveDates` is always
      a list), sources and the code sections it affects

      - **Body**: the act's text as printed, paged by cursor, with amendatory
      markup preserved where the publisher printed it

      - **Batch**: up to 50 ids or citations in one call, the same record as
      Get, billed per law served, with every miss listed and its reason

      - **Changes**: a sync feed of the registry over an integer cursor
      (`sinceId`): what began to be served, was corrected, withdrawn or merged


      The reverse link, from a code section to the acts a publisher's own tables
      list against it, is `GET /us/statutes/section/{actId}/enactments`.
  - name: US Case Law
    description: >-
      US court decisions and their text. A decision has a permanent `caseId`,
      one or more opinions (majority, concurrence, dissent) with their own
      `opinionId`, reporter citations, the court and the judges. Search is full
      text over opinion text with court, state, date, publication status and
      judge filters; a citation such as `410 U.S. 113` resolves to its case.


      - **Search**: best match first, one result per case, paginated; each hit
      carries up to 3 passages (`passages`) with character offsets into the
      opinion text

      - **Case**: metadata, citations, panel and the list of opinions

      - **Opinion**: the text as `html` (our markup, citations to cases we hold
      carry their `caseId`) or `text`

      - **Citations**: the citation graph in either direction (`direction=cites`
      or `cited_by`), paginated

      - **Case list**: `GET /us/cases/list`, a filter-only list by court, state,
      judge and date with a cursor

      - **Resolve / batch**: citations to cases (or a whole document in `text`,
      each citation returned with its place in it), several cases in one call
      (`POST /us/cases/batch`) and several opinions in one call (`POST
      /us/opinions/batch`)

      - **Outcome**: every case row carries `outcome`, a one-word reading of the
      printed disposition (`affirmed`, `reversed`, `vacated`, `remanded`,
      `affirmed_in_part`, `reversed_in_part`, `dismissed`, `granted`, `denied`,
      `other`)

      - **Courts and judges**: the free registry of courts (add
      `include=coverage` for what we hold per court) and judge profiles (add
      `include=stats` for case counts by year, court, role and outcome)
  - name: US Rulemaking
    description: >-
      How a federal rule is made, as public records tied together by its
      Regulation Identifier Number (RIN): the semiannual Unified Agenda (every
      edition from Fall 1995), the OIRA review under Executive Order 12866, the
      Regulations.gov docket and its documents, and the Federal Register
      documents that proposed and finalised it.


      **Start here**: `GET /us/rulemaking/coverage` (free) lists what is held
      per source and whether each is fresh. Then **By RIN** for everything held
      for one rule, **Agenda history** for how its timetable moved edition by
      edition, or **Dockets** and **Documents** for the Regulations.gov side.


      Every link between sources carries its `basis` and `quality` (`verified`,
      `candidate`, `ambiguous`). A link we could not make with confidence is
      marked, never guessed, and an umbrella RIN shared by unrelated rules
      claims no proposal-to-final pairing. A comment count of `null` means not
      measured, never zero. Comment text, attachments and commenter information
      are not held or served.
  - name: Board Watches
    description: >-
      Law-change alerts. Subscribe to a **board** (a tracked corpus source,
      identified by `corpusType` plus an optional `state`) and get a webhook or
      email whenever it refreshes with real changes, naming the exact sections
      that changed. Fetch old-vs-new text for any amended section via the change
      diff.


      Boards refresh on their own existing cadence; watching one does not change
      how often it refreshes. Every endpoint here is **free**: authenticated by
      API key and rate-limited, but not credit-metered.


      See the [Law Change Alerts
      guide](https://www.vaquill.ai/docs/api-guide/alerts) for the full
      walkthrough.
  - name: Pricing
    description: >-
      Credit pricing and conversion rates. No authentication required. 1 credit
      = $0.01 USD.
  - name: Agent Onboarding
    description: >-
      How an AI agent gets an API key for its human, with no copy and paste.
      Free and keyless. The agent starts a signup, the human approves a short
      code while signed in, and the agent collects an ordinary API key. Full
      walkthrough: https://api.vaquill.ai/auth.md
  - name: Credits
    description: >-
      Your own credit balance: what is spendable right now, where it came from,
      and what is about to expire.


      Free and never charged, so it is safe to poll for low-balance alerting or
      to pre-flight a batch job.
externalDocs:
  description: Full API Reference
  url: https://www.vaquill.ai/docs/api-reference/
paths:
  /api/v1/us/cases/batch:
    post:
      tags:
        - US Case Law
      summary: Get several US court decisions
      description: >-
        Up to 50 distinct cases by `caseIds` in one call: the same record as
        `GET /us/cases/{caseId}`, in the order sent. Duplicates collapse. An id
        that matches no case is listed in `notFound` and not charged. Priced per
        case served.
      operationId: batch_cases
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
                minLength: 16
                maxLength: 255
                pattern: ^[\x21-\x7e]+$
              - type: 'null'
            description: >-
              Optional. 16 to 255 visible ASCII characters (a UUIDv4 works).
              Repeating the same request with the same key replays the original
              2xx response for 24 hours without charging again. The same key on
              a different request is rejected. With the account's
              `cacheQueryDerivedData` retention setting off, no body is stored
              and a retry answers 409 `idempotency_replay_unavailable`, still
              without a second charge.
            examples:
              - 3f9c2a1e-7b44-4d0a-9c1e-5a6b7c8d9e0f
            title: Idempotency-Key
          description: >-
            Optional. 16 to 255 visible ASCII characters (a UUIDv4 works).
            Repeating the same request with the same key replays the original
            2xx response for 24 hours without charging again. The same key on a
            different request is rejected. With the account's
            `cacheQueryDerivedData` retention setting off, no body is stored and
            a retry answers 409 `idempotency_replay_unavailable`, still without
            a second charge.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchResponse'
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            X-RateLimit-Limit-Day:
              $ref: '#/components/headers/X-RateLimit-Limit-Day'
            X-RateLimit-Remaining-Day:
              $ref: '#/components/headers/X-RateLimit-Remaining-Day'
            X-RateLimit-Limit-Hour:
              $ref: '#/components/headers/X-RateLimit-Limit-Hour'
            X-RateLimit-Remaining-Hour:
              $ref: '#/components/headers/X-RateLimit-Remaining-Hour'
            X-RateLimit-Reset-Day:
              $ref: '#/components/headers/X-RateLimit-Reset-Day'
            X-RateLimit-Scope:
              $ref: '#/components/headers/X-RateLimit-Scope'
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/InsufficientCredits'
        '403':
          $ref: '#/components/responses/Forbidden'
        '409':
          description: >-
            Idempotency conflict. `idempotency_in_progress`: the original
            request with this key is still running (retry after `Retry-After`).
            `idempotency_replay_unavailable`: it completed but its response was
            not kept (too large, or the account's data retention setting), so it
            cannot be replayed; nothing is charged again, so check the credit
            balance instead of retrying. Read the top-level `code`; `detail` is
            the message string, as on every other error. A replayed response
            reports `creditsConsumed: 0`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiDetailError'
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            X-RateLimit-Limit-Day:
              $ref: '#/components/headers/X-RateLimit-Limit-Day'
            X-RateLimit-Remaining-Day:
              $ref: '#/components/headers/X-RateLimit-Remaining-Day'
            X-RateLimit-Limit-Hour:
              $ref: '#/components/headers/X-RateLimit-Limit-Hour'
            X-RateLimit-Remaining-Hour:
              $ref: '#/components/headers/X-RateLimit-Remaining-Hour'
            X-RateLimit-Reset-Day:
              $ref: '#/components/headers/X-RateLimit-Reset-Day'
            X-RateLimit-Scope:
              $ref: '#/components/headers/X-RateLimit-Scope'
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
        '422':
          description: >-
            A parameter failed validation (for example a malformed id). Never
            charged. `idempotency_key_reused`: the `Idempotency-Key` was already
            used with a different request (another body, path or method). Not
            charged.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiDetailError'
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            X-RateLimit-Limit-Day:
              $ref: '#/components/headers/X-RateLimit-Limit-Day'
            X-RateLimit-Remaining-Day:
              $ref: '#/components/headers/X-RateLimit-Remaining-Day'
            X-RateLimit-Limit-Hour:
              $ref: '#/components/headers/X-RateLimit-Limit-Hour'
            X-RateLimit-Remaining-Hour:
              $ref: '#/components/headers/X-RateLimit-Remaining-Hour'
            X-RateLimit-Reset-Day:
              $ref: '#/components/headers/X-RateLimit-Reset-Day'
            X-RateLimit-Scope:
              $ref: '#/components/headers/X-RateLimit-Scope'
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
components:
  schemas:
    BatchRequest:
      properties:
        caseIds:
          items:
            type: string
            pattern: ^USCASE_[0-9A-F]{20}$
          type: array
          maxItems: 200
          minItems: 1
          title: Caseids
          description: Up to 50 distinct case ids.
          examples:
            - - USCASE_0123456789ABCDEF0123
      additionalProperties: false
      type: object
      required:
        - caseIds
      title: BatchRequest
    BatchResponse:
      properties:
        results:
          items:
            $ref: '#/components/schemas/CaseDetail'
          type: array
          title: Results
          description: >-
            The cases found, in the order first requested, with their opinions
            listed.
        notFound:
          items:
            type: string
          type: array
          title: Notfound
          description: Requested case ids no case carries.
        count:
          type: integer
          title: Count
          description: Number of cases in `results`.
        duplicatesCollapsed:
          type: integer
          title: Duplicatescollapsed
          description: How many repeated ids in the request were answered once.
        creditsConsumed:
          type: integer
          title: Creditsconsumed
          description: Credits this call cost. 0 on a free route.
        processingTimeMs:
          type: number
          title: Processingtimems
          description: Server time spent on this call, in milliseconds.
      type: object
      required:
        - results
        - notFound
        - count
        - duplicatesCollapsed
        - creditsConsumed
        - processingTimeMs
      title: BatchResponse
      examples:
        - count: 1
          creditsConsumed: 1
          duplicatesCollapsed: 0
          notFound: []
          processingTimeMs: 12.4
          results:
            - caseId: USCASE_3F9A2B1C4D5E6F708192
              caseName: Roe v. Wade
              caseNameFull: >-
                Jane Roe, et al. v. Henry Wade, District Attorney of Dallas
                County
              caseNameShort: Roe
              citationDetails:
                - citation: 410 U.S. 113
                  page: '113'
                  reporter: U.S.
                  type: federal
                  volume: '410'
              citations:
                - 410 U.S. 113
              citeable: unknown
              citedByCount: 3
              counsel: Sarah Weddington for appellants; Jay Floyd for appellee.
              court:
                courtId: US_FED_SCOTUS
                level: supreme
                name: Supreme Court of the United States
                shortName: SCOTUS
              decisionDate: '1973-01-22'
              decisionDatePrecision: day
              disposition: Reversed in part and affirmed in part.
              docketNumber: 70-18
              firstSeenAt: '2026-11-01T12:00:00Z'
              judgesText: Blackmun, J.
              leadOpinionId: USOP_3F9A2B1C4D5E6F708192
              opinions:
                - authorName: Harry A. Blackmun
                  isPerCuriam: false
                  kind: lead
                  opinionId: USOP_3F9A2B1C4D5E6F708192
                  ordinal: 1
                  textFromOcr: false
              outcome: reversed_in_part
              panel: []
              posture: Appeal from a three-judge district court.
              publicationStatus: published
              sourcePublishedDate: '1973-01-22'
    ApiDetailError:
      properties:
        detail:
          type: string
          title: Detail
          description: >-
            Human-readable reason, safe to surface to an end user. Branch on the
            HTTP status rather than on this string: the wording is not part of
            the contract and may be reworded, but 401 (bad key), 402 (out of
            credits), 403 (missing scope), 404 (no such resource) and 429 (rate
            limited) are stable.
          examples:
            - Insufficient API credits.
        errors:
          anyOf:
            - items:
                $ref: '#/components/schemas/ApiFieldError'
              type: array
            - type: 'null'
          title: Errors
          description: 'Present on 422 only: every field that failed validation.'
        code:
          anyOf:
            - type: string
            - type: 'null'
          title: Code
          description: >-
            Stable machine code for the failure. Branch on this, not on
            `detail`. The set is open: tolerate values you do not know. Known
            values: authentication_required, invalid_api_key, api_key_expired,
            agent_trial_expired, permission_denied, insufficient_scope,
            insufficient_credits, payment_required, rate_limited,
            quota_exceeded, daily_cap_exceeded, bad_request, validation_error,
            method_not_allowed, payload_too_large, unsupported_media_type,
            invalid_query, invalid_citation_input, section_not_found,
            resource_not_found, idempotency_key_reused, idempotency_in_progress,
            idempotency_replay_unavailable, upstream_timeout,
            service_unavailable, internal_error, conflict.
          examples:
            - insufficient_credits
          x-known-values:
            - authentication_required
            - invalid_api_key
            - api_key_expired
            - agent_trial_expired
            - permission_denied
            - insufficient_scope
            - insufficient_credits
            - payment_required
            - rate_limited
            - quota_exceeded
            - daily_cap_exceeded
            - bad_request
            - validation_error
            - method_not_allowed
            - payload_too_large
            - unsupported_media_type
            - invalid_query
            - invalid_citation_input
            - section_not_found
            - resource_not_found
            - idempotency_key_reused
            - idempotency_in_progress
            - idempotency_replay_unavailable
            - upstream_timeout
            - service_unavailable
            - internal_error
            - conflict
        type:
          anyOf:
            - type: string
            - type: 'null'
          title: Type
          description: >-
            URL naming the error kind,
            `https://www.vaquill.ai/docs/errors/{code}`.
          examples:
            - https://www.vaquill.ai/docs/errors/insufficient_credits
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
          description: Short fixed English title for `code`.
          examples:
            - Insufficient credits
        status:
          anyOf:
            - type: integer
            - type: 'null'
          title: Status
          description: Echo of the HTTP status code.
          examples:
            - 402
        requestId:
          anyOf:
            - type: string
            - type: 'null'
          title: Requestid
          description: Equals the `X-Request-ID` response header. Quote it to support.
          examples:
            - 8d32789e-7b27-44f7-9523-424596e7a929
        retryable:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Retryable
          description: True only when repeating the same request is safe and may succeed.
          examples:
            - false
        retryAfterSeconds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Retryafterseconds
          description: 'On 429 and 503 when `Retry-After` is set: the same value in seconds.'
          examples:
            - 30
        actId:
          anyOf:
            - type: string
            - type: 'null'
          title: Actid
          description: 'Section routes only, on a miss: the identifier that matched nothing.'
          examples:
            - UNKNOWN_99999
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
          description: >-
            Section routes only, on a miss: why nothing matched, for example
            `unsupported_jurisdiction` or `not_in_registry`. The set is open.
          examples:
            - not_in_registry
        didYouMean:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Didyoumean
          description: 'Section routes only, on a miss: identifiers worth trying instead.'
        sessionLawId:
          anyOf:
            - type: string
            - type: 'null'
          title: Sessionlawid
          description: >-
            Session-law routes only, on a miss: the id or citation that matched
            nothing.
          examples:
            - Pub. L. 117-58
        defaultSessionLawId:
          anyOf:
            - type: string
            - type: 'null'
          title: Defaultsessionlawid
          description: >-
            Session-law routes only, on an `ambiguous_citation` miss: the
            conventional reading, which is NOT chosen for you. `didYouMean`
            lists every candidate.
          examples:
            - us1_ca_2019_ch_123
        candidateCount:
          anyOf:
            - type: integer
            - type: 'null'
          title: Candidatecount
          description: 'Session-law routes only: how many laws the citation names in all.'
          examples:
            - 3
        truncated:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Truncated
          description: >-
            Session-law routes only: true when `didYouMean` lists fewer laws
            than `candidateCount`, so the list is not complete.
          examples:
            - false
        jurisdictions:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Jurisdictions
          description: >-
            Session-law routes only, on a `needs_jurisdiction` miss: every state
            where the citation exists. Name one in the citation, or pass
            `state`.
        sessionCoverage:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Sessioncoverage
          description: >-
            Session-law routes only, on a `session_not_fully_collected` miss:
            how much of the session we hold.
        creditsRequired:
          anyOf:
            - type: integer
            - type: 'null'
          title: Creditsrequired
          description: '402 only, when known: the credits this call needed.'
          examples:
            - 5
        creditsAvailable:
          anyOf:
            - type: integer
            - type: 'null'
          title: Creditsavailable
          description: '402 only, when known: the credits you can spend right now.'
          examples:
            - 2
        topUpHint:
          anyOf:
            - type: string
            - type: 'null'
          title: Topuphint
          description: '402 only, when known: where to add credits.'
          examples:
            - >-
              Add credits in the developer dashboard, then retry the same
              request.
      type: object
      required:
        - detail
      title: ApiDetailError
      description: >-
        Error envelope the API actually returns.


        Every error (400/401/402/403/404/405/422/429/5xx) carries a `detail`

        string, e.g. `{"detail": "Insufficient API credits."}`, on every mount
        of

        the API. A 422 adds `errors`, one entry per rejected field. Some 404s
        add

        endpoint-specific diagnosis beside `detail` (the statutes section routes

        add `actId`, `reason` and `didYouMean`); treat unknown keys as optional.
    CaseDetail:
      properties:
        caseId:
          type: string
          title: Caseid
          description: >-
            Our id of the case (`USCASE_` plus 20 hex characters). Stable: safe
            to store.
        caseName:
          anyOf:
            - type: string
            - type: 'null'
          title: Casename
          description: The caption, such as `Roe v. Wade`. Null when the record has none.
        caseNameShort:
          anyOf:
            - type: string
            - type: 'null'
          title: Casenameshort
          description: A short form of the caption, such as `Roe`. Null when none is known.
        caseNameFull:
          anyOf:
            - type: string
            - type: 'null'
          title: Casenamefull
          description: The full caption with every party. Null when none is known.
        docketNumber:
          anyOf:
            - type: string
            - type: 'null'
          title: Docketnumber
          description: >-
            The docket number as the court prints it, such as `70-18` or
            `1:21-cv-00123`. Null when none is known.
        court:
          $ref: '#/components/schemas/CourtRef'
          description: The deciding court.
        decisionDate:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Decisiondate
          description: Date of the decision. Null when the decision carries no date.
        decisionDatePrecision:
          type: string
          enum:
            - day
            - month
            - year
          title: Decisiondateprecision
          description: >-
            How exact `decisionDate` is: `day`, `month` or `year`. When `month`
            or `year`, the date is the first day of that period.
        publicationStatus:
          type: string
          enum:
            - published
            - unpublished
            - unknown
            - errata
            - separate
            - in_chambers
            - relating_to
          title: Publicationstatus
          description: >-
            `published`, `unpublished`, `unknown`, `errata`, `separate`,
            `in_chambers` or `relating_to`.
        citations:
          items:
            type: string
          type: array
          title: Citations
          description: Reporter citations, as printed.
        citedByCount:
          type: integer
          title: Citedbycount
          description: >-
            Number of opinions in our corpus that cite this case. Counts only
            what we hold, so it understates the true figure.
          default: 0
        outcome:
          anyOf:
            - type: string
            - type: 'null'
          enum:
            - affirmed
            - reversed
            - vacated
            - remanded
            - affirmed_in_part
            - reversed_in_part
            - dismissed
            - granted
            - denied
            - other
            - null
          title: Outcome
          description: >-
            The result of the case in one word, read from the disposition line
            the court printed (`disposition` on the case record): `affirmed`,
            `reversed` (also `reversed and remanded`), `vacated` (also `vacated
            and remanded`), `remanded`, `affirmed_in_part`, `reversed_in_part`,
            `dismissed`, `granted`, `denied` or `other` (a disposition that says
            none of these). A split judgment takes the verb named first:
            `affirmed in part, reversed in part` is `affirmed_in_part`. Null
            when the case has no disposition. A reading of the printed line, not
            of the opinion, and not legal advice.
        addedAt:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Addedat
          description: >-
            When this case was added to our corpus (ISO 8601, UTC). Null until
            we serve the date.
        updatedAt:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updatedat
          description: >-
            When we last changed this case (ISO 8601, UTC). Null until we serve
            the date.
        firstSeenAt:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Firstseenat
          description: >-
            When we first collected this case from its publisher (ISO 8601,
            UTC). A different fact from `decisionDate` (when the court decided)
            and `sourcePublishedDate` (when the publisher posted it). Null for
            cases that were in our corpus before we began collecting them one by
            one, and until we serve the date.
        sourcePublishedDate:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Sourcepublisheddate
          description: >-
            The date the publisher posted the decision, when its listing gives
            one separate from the decision date. Null when the source has no
            separate posting date.
        citeable:
          anyOf:
            - type: string
            - type: 'null'
          enum:
            - citeable
            - citeable_with_limits
            - not_citeable
            - unknown
          title: Citeable
          description: >-
            Whether a court rule we have recorded lets a lawyer cite this kind
            of decision: `citeable`, `citeable_with_limits` (for example an
            unpublished federal appellate opinion issued on or after 2007-01-01,
            Fed. R. App. P. 32.1, which is non-precedential), `not_citeable`, or
            `unknown` (no rule recorded, which is most cases). Guidance, not
            legal advice: it ignores local rules and standing orders, and says
            nothing about whether the decision is good law. Separate from
            `publicationStatus`. Null until we serve it.
        leadOpinionId:
          anyOf:
            - type: string
            - type: 'null'
          title: Leadopinionid
          description: >-
            The opinion to read first: the `combined` opinion, else the `lead`
            one, else the `plurality`, else the first of the case. Fetch its
            text with `GET /us/opinions/{opinionId}`. Null when the case has no
            opinion we hold.
        judgesText:
          anyOf:
            - type: string
            - type: 'null'
          title: Judgestext
          description: The judges as the decision prints them. Null when not printed.
        counsel:
          anyOf:
            - type: string
            - type: 'null'
          title: Counsel
          description: Counsel as the decision prints them. Null when not printed.
        headmatter:
          anyOf:
            - type: string
            - type: 'null'
          title: Headmatter
          description: >-
            The headmatter the reporter printed before the opinion. Null when
            none.
        syllabus:
          anyOf:
            - type: string
            - type: 'null'
          title: Syllabus
          description: The syllabus the court issued with the opinion. Null when none.
        summary:
          anyOf:
            - type: string
            - type: 'null'
          title: Summary
          description: A short summary printed with the decision. Null when none.
        disposition:
          anyOf:
            - type: string
            - type: 'null'
          title: Disposition
          description: The outcome, such as `Affirmed`. Null when not stated.
        posture:
          anyOf:
            - type: string
            - type: 'null'
          title: Posture
          description: How the matter reached this court. Null when not stated.
        history:
          anyOf:
            - type: string
            - type: 'null'
          title: History
          description: The prior procedural history as printed. Null when none.
        otherDates:
          anyOf:
            - type: string
            - type: 'null'
          title: Otherdates
          description: >-
            Other dates printed with the decision, such as the argument date.
            Null when none.
        seeAlso:
          anyOf:
            - type: string
            - type: 'null'
          title: Seealso
          description: Related decisions the reporter points to. Null when none.
        natureOfSuit:
          anyOf:
            - type: string
            - type: 'null'
          title: Natureofsuit
          description: Nature of the suit. Null when not stated.
        citationDetails:
          items:
            $ref: '#/components/schemas/CaseCitation'
          type: array
          title: Citationdetails
          description: >-
            The reporter citations, split into volume, reporter and page.
            Citations a third party issued are never listed.
        opinions:
          items:
            $ref: '#/components/schemas/OpinionRef'
          type: array
          title: Opinions
          description: >-
            The opinions of the case in reading order. Fetch the text with `GET
            /us/opinions/{opinionId}`.
        panel:
          items:
            $ref: '#/components/schemas/JudgeRef'
          type: array
          title: Panel
          description: >-
            The judges on the panel, when we hold them as judges. Empty
            otherwise.
        qualityFlags:
          items:
            $ref: '#/components/schemas/QualityFlag'
          type: array
          title: Qualityflags
          description: >-
            Data-quality checks this record failed, so a caller can weigh it.
            Empty when none were raised.
      type: object
      required:
        - caseId
        - court
        - decisionDatePrecision
        - publicationStatus
      title: CaseDetail
      examples:
        - caseId: USCASE_3F9A2B1C4D5E6F708192
          caseName: Roe v. Wade
          caseNameFull: Jane Roe, et al. v. Henry Wade, District Attorney of Dallas County
          caseNameShort: Roe
          citationDetails:
            - citation: 410 U.S. 113
              page: '113'
              reporter: U.S.
              type: federal
              volume: '410'
          citations:
            - 410 U.S. 113
          citeable: unknown
          citedByCount: 3
          counsel: Sarah Weddington for appellants; Jay Floyd for appellee.
          court:
            courtId: US_FED_SCOTUS
            level: supreme
            name: Supreme Court of the United States
            shortName: SCOTUS
          decisionDate: '1973-01-22'
          decisionDatePrecision: day
          disposition: Reversed in part and affirmed in part.
          docketNumber: 70-18
          firstSeenAt: '2026-11-01T12:00:00Z'
          judgesText: Blackmun, J.
          leadOpinionId: USOP_3F9A2B1C4D5E6F708192
          opinions:
            - authorName: Harry A. Blackmun
              isPerCuriam: false
              kind: lead
              opinionId: USOP_3F9A2B1C4D5E6F708192
              ordinal: 1
              textFromOcr: false
          outcome: reversed_in_part
          panel: []
          posture: Appeal from a three-judge district court.
          publicationStatus: published
          sourcePublishedDate: '1973-01-22'
    ApiFieldError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Loc
          description: >-
            Where the bad value is: `body`, `query` or `path`, then the
            parameter name exactly as you send it (camelCase), then list
            indexes. A bare `["body"]` means the body as a whole was not a JSON
            object.
          examples:
            - - body
              - query
        msg:
          type: string
          title: Msg
          description: What is wrong with the value, in plain English.
          examples:
            - Field required
        type:
          type: string
          title: Type
          description: >-
            Machine-readable error kind, e.g. `missing`, `literal_error`,
            `json_invalid`.
          examples:
            - missing
      type: object
      required:
        - loc
        - msg
        - type
      title: ApiFieldError
      description: One rejected field in a 422 response.
    CourtRef:
      properties:
        courtId:
          type: string
          title: Courtid
          description: Our id of the court, to use on `GET /us/courts/{courtId}`.
        name:
          type: string
          title: Name
          description: The court's full name.
        shortName:
          anyOf:
            - type: string
            - type: 'null'
          title: Shortname
          description: >-
            A short name or abbreviation, such as `SCOTUS`. Null when none is
            known.
        level:
          anyOf:
            - type: string
            - type: 'null'
          enum:
            - supreme
            - appellate
            - trial
            - bankruptcy
            - bankruptcy_appellate
            - special
            - attorney_general
            - agency
            - other
            - null
          title: Level
          description: >-
            Level in its system: `supreme`, `appellate`, `trial`, `bankruptcy`,
            `bankruptcy_appellate`, `special`, `attorney_general`, `agency` or
            `other`.
        stateCode:
          anyOf:
            - type: string
            - type: 'null'
          title: Statecode
          description: >-
            Two-letter state or territory code of a state court. Null for a
            federal court.
      type: object
      required:
        - courtId
        - name
      title: CourtRef
    CaseCitation:
      properties:
        volume:
          type: string
          title: Volume
          description: Volume number of the reporter.
        reporter:
          type: string
          title: Reporter
          description: Reporter abbreviation, such as `U.S.` or `F.3d`.
        page:
          type: string
          title: Page
          description: First page, or the number the court assigned in a neutral citation.
        citation:
          type: string
          title: Citation
          description: The citation as printed, e.g. `410 U.S. 113`.
        type:
          type: string
          enum:
            - federal
            - state
            - state_regional
            - specialty
            - neutral
            - scotus_early
          title: Type
          description: >-
            `federal`, `state`, `state_regional`, `specialty`, `neutral` or
            `scotus_early`.
      type: object
      required:
        - volume
        - reporter
        - page
        - citation
        - type
      title: CaseCitation
    OpinionRef:
      properties:
        opinionId:
          type: string
          title: Opinionid
          description: Our id of the opinion, to use on `GET /us/opinions/{opinionId}`.
        ordinal:
          type: integer
          title: Ordinal
          description: Reading order of the opinion within the case, from 1.
        kind:
          type: string
          enum:
            - combined
            - lead
            - plurality
            - concurrence
            - concurrence_in_part
            - dissent
            - addendum
            - remittitur
            - rehearing
            - on_the_merits
            - on_motion_to_strike
            - trial_court
            - unknown
          title: Kind
          description: >-
            Kind of opinion: `combined`, `lead`, `plurality`, `concurrence`,
            `concurrence_in_part`, `dissent`, `addendum`, `remittitur`,
            `rehearing`, `on_the_merits`, `on_motion_to_strike`, `trial_court`
            or `unknown`.
        isPerCuriam:
          type: boolean
          title: Ispercuriam
          description: True when the court issued the opinion without naming an author.
        authorName:
          anyOf:
            - type: string
            - type: 'null'
          title: Authorname
          description: >-
            Name of the author as printed. Null for a per curiam opinion or when
            unknown.
        authorJudgeId:
          anyOf:
            - type: string
            - type: 'null'
          title: Authorjudgeid
          description: >-
            Our id of the author, when the name matched a judge we hold. Null
            otherwise.
        joinedByNames:
          anyOf:
            - type: string
            - type: 'null'
          title: Joinedbynames
          description: >-
            Names of the judges who joined, as printed. Null when none are
            printed.
        joinedByJudgeIds:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Joinedbyjudgeids
          description: >-
            Our ids of the judges who joined, for the names that matched a judge
            we hold. Null until we serve the link, and an empty list when no
            joining judge matched.
        pageCount:
          anyOf:
            - type: integer
            - type: 'null'
          title: Pagecount
          description: Number of pages of the opinion in print. Null when unknown.
        textFromOcr:
          type: boolean
          title: Textfromocr
          description: >-
            True when the text was read from a scan by optical character
            recognition, so it may carry misreadings.
      type: object
      required:
        - opinionId
        - ordinal
        - kind
        - isPerCuriam
        - textFromOcr
      title: OpinionRef
    JudgeRef:
      properties:
        judgeId:
          type: string
          title: Judgeid
          description: Our id of the judge, to use on `GET /us/judges/{judgeId}`.
        name:
          type: string
          title: Name
          description: The judge's name, first to last.
      type: object
      required:
        - judgeId
        - name
      title: JudgeRef
    QualityFlag:
      properties:
        code:
          type: string
          title: Code
          description: >-
            The defect found, such as `ocr_garbled`. Codes are stable: a code is
            never renamed.
        severity:
          type: string
          enum:
            - info
            - warn
            - block
          title: Severity
          description: >-
            `info`, `warn` or `block`. A `block` flag on an opinion means its
            text is withheld (`bodyUnavailable`).
        detectorVersion:
          type: integer
          title: Detectorversion
          description: Version of the check that raised the flag.
      type: object
      required:
        - code
        - severity
        - detectorVersion
      title: QualityFlag
  headers:
    X-RateLimit-Limit:
      description: Requests allowed in the current per-minute window.
      schema:
        type: integer
    X-RateLimit-Remaining:
      description: Requests left in the current per-minute window.
      schema:
        type: integer
    X-RateLimit-Reset:
      description: Unix timestamp at which the per-minute window resets.
      schema:
        type: integer
    X-RateLimit-Limit-Day:
      description: Requests allowed per day (the slow-drip backstop).
      schema:
        type: integer
    X-RateLimit-Remaining-Day:
      description: Requests left in the daily window.
      schema:
        type: integer
    X-RateLimit-Limit-Hour:
      description: Requests allowed per hour.
      schema:
        type: integer
    X-RateLimit-Remaining-Hour:
      description: Requests left in the hourly window.
      schema:
        type: integer
    X-RateLimit-Reset-Day:
      description: Unix timestamp at which the daily window resets (next UTC midnight).
      schema:
        type: integer
    X-RateLimit-Scope:
      description: >-
        Which bucket the limits above describe: `key` (this API key's own
        allowance) or `ip` (the shared per-address ceiling, also used when the
        key did not validate). Absent on requests without an API key.
      schema:
        type: string
        enum:
          - key
          - ip
    X-Request-ID:
      description: Correlation id of this request. Quote it when contacting support.
      schema:
        type: string
    Retry-After:
      description: Seconds to wait before retrying.
      schema:
        type: integer
  responses:
    Unauthorized:
      description: Missing, invalid or revoked API key. Not charged.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiDetailError'
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-RateLimit-Limit-Hour:
          $ref: '#/components/headers/X-RateLimit-Limit-Hour'
        X-RateLimit-Remaining-Hour:
          $ref: '#/components/headers/X-RateLimit-Remaining-Hour'
        X-RateLimit-Reset-Day:
          $ref: '#/components/headers/X-RateLimit-Reset-Day'
        X-RateLimit-Scope:
          $ref: '#/components/headers/X-RateLimit-Scope'
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
    InsufficientCredits:
      description: >-
        Insufficient credits (`insufficient_credits`, never retry).
        `creditsRequired` and `creditsAvailable` say how short you are when
        known; top up, then repeat the call.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiDetailError'
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-RateLimit-Limit-Hour:
          $ref: '#/components/headers/X-RateLimit-Limit-Hour'
        X-RateLimit-Remaining-Hour:
          $ref: '#/components/headers/X-RateLimit-Remaining-Hour'
        X-RateLimit-Reset-Day:
          $ref: '#/components/headers/X-RateLimit-Reset-Day'
        X-RateLimit-Scope:
          $ref: '#/components/headers/X-RateLimit-Scope'
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
    Forbidden:
      description: The API key lacks the `cases:read` scope. Not charged.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiDetailError'
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-RateLimit-Limit-Hour:
          $ref: '#/components/headers/X-RateLimit-Limit-Hour'
        X-RateLimit-Remaining-Hour:
          $ref: '#/components/headers/X-RateLimit-Remaining-Hour'
        X-RateLimit-Reset-Day:
          $ref: '#/components/headers/X-RateLimit-Reset-Day'
        X-RateLimit-Scope:
          $ref: '#/components/headers/X-RateLimit-Scope'
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
    RateLimited:
      description: Rate limit exceeded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiDetailError'
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-RateLimit-Limit-Hour:
          $ref: '#/components/headers/X-RateLimit-Limit-Hour'
        X-RateLimit-Remaining-Hour:
          $ref: '#/components/headers/X-RateLimit-Remaining-Hour'
        X-RateLimit-Reset-Day:
          $ref: '#/components/headers/X-RateLimit-Reset-Day'
        X-RateLimit-Scope:
          $ref: '#/components/headers/X-RateLimit-Scope'
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
    InternalError:
      description: >-
        Internal error (`internal_error`, retryable). Any credits charged for
        the call are refunded; retry with backoff and quote `requestId` to
        support if it persists.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiDetailError'
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-RateLimit-Limit-Hour:
          $ref: '#/components/headers/X-RateLimit-Limit-Hour'
        X-RateLimit-Remaining-Hour:
          $ref: '#/components/headers/X-RateLimit-Remaining-Hour'
        X-RateLimit-Reset-Day:
          $ref: '#/components/headers/X-RateLimit-Reset-Day'
        X-RateLimit-Scope:
          $ref: '#/components/headers/X-RateLimit-Scope'
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
    ServiceUnavailable:
      description: >-
        The case-law database could not answer. A charge, if the route takes
        one, is refunded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiDetailError'
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-RateLimit-Limit-Hour:
          $ref: '#/components/headers/X-RateLimit-Limit-Hour'
        X-RateLimit-Remaining-Hour:
          $ref: '#/components/headers/X-RateLimit-Remaining-Hour'
        X-RateLimit-Reset-Day:
          $ref: '#/components/headers/X-RateLimit-Reset-Day'
        X-RateLimit-Scope:
          $ref: '#/components/headers/X-RateLimit-Scope'
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: vq_key_*
      description: >-
        API key issued from the developer dashboard. Pass as `Authorization:
        Bearer vq_key_...` (preferred).
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        The same API key as a bare header value: `X-API-Key: vq_key_...`.
        Equivalent to the Bearer form.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.