{
"query": "can the sheriff pay with a debit card",
"parsed": {
"text": "can the sheriff pay with a debit card",
"phrases": [],
"citationTokens": [],
"billNumbers": []
},
"results": [
{
"sessionLawId": "SSL_AL_2025R_G_Y2025_C2025-127",
"jurisdiction": "al",
"session": "2025R",
"series": "general",
"instrumentType": "act",
"citation": "Act 2025-127",
"title": "Relating to Houston County; to authorize the sheriff to establish procedures for using a credit card or debit card to make purchases.",
"approvedDate": "2025-04-15",
"enactmentOutcome": "signed",
"matchType": "text",
"matchedBy": [
"title",
"text"
],
"passage": {
"seq": 0,
"ownStart": 0,
"ownEnd": 1820,
"heading": "Section 1.",
"snippet": "Section 1. The sheriff of Houston County may establish procedures for using a credit card…",
"highlights": [
[
15,
22
],
[
85,
89
]
],
"bodyHref": "https://api.vaquill.ai/api/v1/us/session-laws/SSL_AL_2025R_G_Y2025_C2025-127/body?startChar=0"
},
"href": "https://api.vaquill.ai/api/v1/us/session-laws/SSL_AL_2025R_G_Y2025_C2025-127"
}
],
"count": 1,
"offset": 0,
"limit": 5,
"hasMore": false,
"creditsConsumed": 4,
"processingTimeMs": 38.6
}
Search the text of state session laws
Find state session laws by what they SAY. Send a question in plain words, words from a title, a quoted
phrase, a citation (63-3004), a code section or a bill number (S.F.No. 1552). You get the laws, best
first, each with the passage of its text that matched and a snippet around your words.
Cost: 4 credits per page, each page a new search. An empty result is an answer (“nothing
matches”) and is charged. A request that fails validation (422) is never charged; a failure on our side
(500, 503) is refunded. To read a law you found, use GET /us/session-laws/{sessionLawId} (record) or
its /body (text), which are priced on their own.
What is searched. The ENACTED text: the law as it reads once the act takes effect. Language an act
strikes out is not searched and never appears in a snippet, so a repealed word cannot match as if it were
law. Only laws we serve with text are searched (see GET /us/statutes/coverage, sessionLaws, for what
each state holds). Laws whose text we withhold are not returned, unless you send includeUnverified
(default false): then a withheld law whose reason we can label may appear, each such result carrying
holdingState: quarantined, textReliability and reasonCode, and it is matched by its title, code
section, citation or bill number rather than by the words of its text.
How it ranks. Keyword relevance (BM25), not meaning. Words are matched as written and stemmed
(licensing finds licensed), so a question has to share vocabulary with the act:
teeth cleaning professional does not find an act that says dental hygienist. A law matched by its
title AND its text, or by an exact part of your query, ranks above one matched a single way. Quote a
phrase to require it verbatim.
What a result says about itself.matchType is exact when a quoted phrase, citation, code
section or bill number you typed matched, otherwise text; matchedBy lists every way. Neither says
the law is the right one: a question with no true answer still returns its closest words, and there is no
“no good match” flag because keyword scores do not separate the two cases. Read the snippet.
Paging.limit is 1 to 25. offset plus limit reaches at most the 60 best matches; narrow with
jurisdiction, session, series, instrumentType or the approval dates rather than paging deeper.
curl -X POST "https://api.vaquill.ai/api/v1/us/session-laws/search" \ -H "Authorization: Bearer vq_key_..." \ -H "Content-Type: application/json" \ -d '{"query": "can the sheriff pay with a debit card", "jurisdiction": "al", "limit": 5}'
Related.GET /us/session-laws/list filters one state’s laws by session, series and date;
POST /us/session-laws/batch reads up to 50 laws by id; GET /us/statutes/section/{actId}/enactments
lists the acts a publisher’s own tables tie to a code section.
POST
/
api
/
v1
/
us
/
session-laws
/
search
Search the text of state session laws
curl --request POST \
--url https://api.vaquill.ai/api/v1/us/session-laws/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "can the sheriff pay with a debit card"
}
'
Optional. 16 to 255 visible ASCII characters (a UUIDv4 is ideal). A retry with the same key and the same request replays the original 2xx response for 24 hours without charging again. The same key with a different request is rejected. Scope is the API key, method, path and body. The stored response body is a query-derived cache controlled by the account's data retention setting cacheQueryDerivedData: when it is false the body is never stored and a retry answers 409 idempotency_replay_unavailable, without charging again.
What to look for: a question in plain words (can a sheriff pay with a debit card), words from a title, a quoted phrase ("credit card or debit card"), a citation (63-3004), a code section or a bill number (S.F.No. 1552). Quoted parts must appear verbatim; everything else is matched on its words, stemmed, so licensing finds licensed. Words are matched as the legislature wrote them: teeth cleaning professional does not find an act that says dental hygienist. 2 to 300 characters.
Limit to one state, dc or pr. Two-letter code, case-insensitive. Omit to search every jurisdiction we hold. federal and an unknown code are a 422, never charged.
Limit to one session, by the code session.code reports (2025R, 2025S1). Case-sensitive. Matches the act's own session, so it narrows the TITLE, citation and bill signals; the passage text of an act carries its session year and type but not the code.
Limit to these numbering series, one or more (they combine with OR). One of general, public, public_act, special_act, private_and_special, act, acts, law, local, municipal, appropriation, resolve, resolves, resolution, resolution_chapter, joint_resolution, concurrent_resolution, memorial, initiated_bill, constitutional_amendment, private, constitutional_resolution, competing_measure_resolution, resolution_act. Any other value is a 422, never charged.
Limit to these kinds of measure, one or more (OR). One of act, joint_resolution, concurrent_resolution, resolution, resolve, memorial, other. Any other value is a 422, never charged.
Only laws approved on or after this date, YYYY-MM-DD, inclusive; a real calendar date (2025-02-30 is a 422). A law with no printed approval date never matches.
Laws to skip, for the next page: offset plus limit can reach at most the 60 best matches. Each page is a new search and is charged. Deeper than 60 is a 422, never charged: narrow the search with a filter instead.
Also search laws we hold but do not serve (holdingState: quarantined). Default false: such laws are never returned and nothing else changes. With true a held-back law whose reason we can label may appear, and every such result carries holdingState, textReliability (unverified or known_issue) and reasonCode; its text MAY show deleted or vetoed law as if enacted. Served laws are returned as usual, without these fields. A law whose licence bars use, or whose text failed our own validation, is never returned. A held-back law is matched by its title, code section, citation or bill number, not by the words of its text. Priced as any search page.
Example:
true
Response
The laws that matched, best first. An empty results is a charged answer.
Server-side time for this request in milliseconds, excluding network transit. Not billed on.
Example:
38.6
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Vaquill AI","description":"US primary law as a developer API. The US Code, the CFR, the Federal Register, state and territory statute codes, state regulations, constitutions and court rules, with Bluebook citation resolution and point-in-time retrieval over REST, MCP and SQL.","colors":{"primary":"#6E3730","light":"#8C4A3F","dark":"#5A2D27"},"logo":{"light":"https://mintcdn.com/vaquill/HoYf91pjRoTl4-t3/logo/light.png?fit=max\u0026auto=format\u0026n=HoYf91pjRoTl4-t3\u0026q=85\u0026s=1c97b6018caaa1fee0a743b05651bb81","dark":"https://mintcdn.com/vaquill/HoYf91pjRoTl4-t3/logo/dark.png?fit=max\u0026auto=format\u0026n=HoYf91pjRoTl4-t3\u0026q=85\u0026s=857ee7c2383d363ffe7fac6f94ad862b","href":"https://vaquill.ai"},"favicon":"https://mintcdn.com/vaquill/HoYf91pjRoTl4-t3/favicon.png?fit=max\u0026auto=format\u0026n=HoYf91pjRoTl4-t3\u0026q=85\u0026s=e9fd33556ddcb3576db2925e6f4e27fe","api":{"openapi":"https://api.vaquill.ai/external/openapi.json","playground":{"display":"interactive","proxy":true},"examples":{"defaults":"required","languages":["bash","python","javascript","go"],"prefill":true},"mdx":{"auth":{"method":"bearer","name":"Authorization"},"server":"https://api.vaquill.ai"}},"appearance":{"default":"light","strict":true},"background":{"color":{"light":"#FAFAF9"}},"navbar":{"links":[{"icon":"github","href":"https://vaquill.ai/open-us-law","label":"Open US Law Dataset"},{"href":"mailto:contact@vaquill.ai","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.vaquill.ai"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/vaquill","youtube":"https://www.youtube.com/@vaquill","slack":"https://join.slack.com/t/vaquillaicommunity/shared_invite/zt-3qxv4mtxg-64mtkVe2PxodDMwKGPfvMQ","github":"https://github.com/Vaquill-AI"},"links":[{"header":"Company","items":[{"label":"About","href":"https://vaquill.ai/about"},{"label":"Contact","href":"https://vaquill.ai/contact"},{"label":"Data Sources \u0026 Credits","href":"https://vaquill.ai/partners"},{"label":"Blog","href":"https://vaquill.ai/blog"},{"label":"Engineering","href":"https://vaquill.ai/engineering"}]},{"header":"Developers","items":[{"label":"Data API","href":"https://vaquill.ai/legal-api"},{"label":"MCP Servers","href":"https://vaquill.ai/mcp"},{"label":"API Reference","href":"/api-reference/us-statutes/search-us-statutes-constitutions-court-rules-and-executive-actions"},{"label":"Open US Law Dataset","href":"https://vaquill.ai/open-us-law"}]},{"header":"Legal","items":[{"label":"Privacy Policy","href":"https://vaquill.ai/privacy"},{"label":"Terms of Service","href":"https://vaquill.ai/terms"},{"label":"DPA","href":"https://vaquill.ai/dpa"},{"label":"Cookie Policy","href":"https://vaquill.ai/cookies"},{"label":"Refund Policy","href":"https://vaquill.ai/refund-policy"},{"label":"Delete My Data","href":"https://vaquill.ai/delete-data"},{"label":"Security","href":"https://vaquill.ai/security"},{"label":"Accessibility","href":"https://vaquill.ai/accessibility"},{"label":"Do Not Sell or Share My Personal Information","href":"https://vaquill.ai/privacy"}]}]},"search":{"prompt":"Search docs, guides, and the API reference..."},"seo":{"metatags":{"canonical":"https://www.vaquill.ai/docs","og:site_name":"Vaquill AI Docs","og:locale":"en_US","twitter:card":"summary_large_image","twitter:site":"@vaquillai"},"indexing":"all"},"fonts":{"heading":{"family":"Source Serif 4","weight":400},"body":{"family":"Schibsted Grotesk","weight":400}},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":"github-light"},"latex":false},"errors":{"404":{"redirect":false,"title":"Page not found","description":"That page doesn't exist, or the URL changed. Try the search bar above, or start from the [API overview](/api-guide/overview)."}},"contextual":{"options":["copy","view","assistant","chatgpt","claude","perplexity","cursor","vscode","windsurf","mcp"],"display":"header"},"thumbnails":{"appearance":"light","fonts":{"family":"Source Serif 4"}},"metadata":{"timestamp":true},"navigation":{"global":{"anchors":[{"anchor":"Changelog","icon":"clock","href":"/api-guide/changelog"},{"anchor":"MCP","icon":"plug","href":"/integrations/mcp/vaquill"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"vaquill","hasAudioNarration":false,"actualSubdomain":"vaquill","customDomains":["vaquill.ai"],"gitSource":{"type":"github","owner":"vaquill-ai","repo":"vaquill-ai-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6aeeddf969e61846fb374a5a","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"Guide","count":56},{"language":"default","tag":"US API reference","count":46},{"language":"default","tag":"India API reference","count":30},{"language":"default","tag":"Endpoints","count":28},{"language":"default","tag":"Indian Acts and Legislation","count":18},{"language":"default","tag":"US Statutes","count":18},{"language":"default","tag":"Guides","count":15},{"language":"default","tag":"Core concepts","count":15},{"language":"default","tag":"Integrations","count":14},{"language":"default","tag":"Get started","count":11}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"custom.css","content":":root{--vq-ink: #1c1a17;--vq-muted: #5f5a52;--vq-hairline: #e4e3e0;--vq-raised: #f2f1ef;--vq-radius: 6px}#navbar img{height:3rem;width:auto}footer img{height:3rem;width:auto}#page-title,#content h2,#content h3{font-family:\"Source Serif 4\", Georgia, serif;font-weight:400;letter-spacing:-0.01em;color:var(--vq-ink)}#content h4,#content h5{font-weight:500}.card,.callout,.accordion,.accordion-group,[data-component-part=\"code-block-root\"]{border-radius:var(--vq-radius)!important;box-shadow:none!important}.card,.accordion,.accordion-group{border:1px solid var(--vq-hairline)}.accordion-group .accordion{border:0!important;border-radius:0!important;margin-bottom:0}.accordion-group .accordion+.accordion{border-top:1px solid var(--vq-hairline)!important}.card:hover{border-color:#6e3730!important}.callout{background-color:var(--vq-raised);border:1px solid var(--vq-hairline)}.callout[data-callout-type=\"warning\"]{border-color:#7d5310}.callout[data-callout-type=\"danger\"]{border-color:#a4123c}code,pre,.shiki{font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace}[data-component-part=\"code-block-root\"]{border:1px solid var(--vq-hairline)}"}],"page":{"pagePath":"api-reference/us-session-laws/search-the-text-of-state-session-laws","slug":"/api-reference/us-session-laws/search-the-text-of-state-session-laws","pageMetadata":{"title":"Search the text of state session laws","description":"Find state session laws by what they SAY. Send a question in plain words, words from a title, a quoted\nphrase, a citation (`63-3004`), a code section or a bill number (`S.F.No. 1552`). You get the laws, best\nfirst, each with the passage of its text that matched and a snippet around your words.\n\n**Cost**: 4 credits per page, each page a new search. An empty result is an answer (\"nothing\nmatches\") and is charged. A request that fails validation (422) is never charged; a failure on our side\n(500, 503) is refunded. To read a law you found, use `GET /us/session-laws/{sessionLawId}` (record) or\nits `/body` (text), which are priced on their own.\n\n**What is searched.** The ENACTED text: the law as it reads once the act takes effect. Language an act\nstrikes out is not searched and never appears in a snippet, so a repealed word cannot match as if it were\nlaw. Only laws we serve with text are searched (see `GET /us/statutes/coverage`, `sessionLaws`, for what\neach state holds). Laws whose text we withhold are not returned, unless you send `includeUnverified`\n(default `false`): then a withheld law whose reason we can label may appear, each such result carrying\n`holdingState: quarantined`, `textReliability` and `reasonCode`, and it is matched by its title, code\nsection, citation or bill number rather than by the words of its text.\n\n**How it ranks.** Keyword relevance (BM25), not meaning. Words are matched as written and stemmed\n(`licensing` finds `licensed`), so a question has to share vocabulary with the act:\n`teeth cleaning professional` does not find an act that says `dental hygienist`. A law matched by its\ntitle AND its text, or by an exact part of your query, ranks above one matched a single way. Quote a\nphrase to require it verbatim.\n\n**What a result says about itself.** `matchType` is `exact` when a quoted phrase, citation, code\nsection or bill number you typed matched, otherwise `text`; `matchedBy` lists every way. Neither says\nthe law is the right one: a question with no true answer still returns its closest words, and there is no\n\"no good match\" flag because keyword scores do not separate the two cases. Read the snippet.\n\n**Paging.** `limit` is 1 to 25. `offset` plus `limit` reaches at most the 60 best matches; narrow with\n`jurisdiction`, `session`, `series`, `instrumentType` or the approval dates rather than paging deeper.\n\n```bash\ncurl -X POST \"https://api.vaquill.ai/api/v1/us/session-laws/search\" \\\n -H \"Authorization: Bearer vq_key_...\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"query\": \"can the sheriff pay with a debit card\", \"jurisdiction\": \"al\", \"limit\": 5}'\n```\n\n```javascript\nconst res = await fetch(\"https://api.vaquill.ai/api/v1/us/session-laws/search\", {\n method: \"POST\",\n headers: { Authorization: \"Bearer vq_key_...\", \"Content-Type\": \"application/json\" },\n body: JSON.stringify({ query: '\"credit card or debit card\"', jurisdiction: \"al\", limit: 5 }),\n});\nconst { results } = await res.json();\n```\n\n**Related.** `GET /us/session-laws/list` filters one state's laws by session, series and date;\n`POST /us/session-laws/batch` reads up to 50 laws by id; `GET /us/statutes/section/{actId}/enactments`\nlists the acts a publisher's own tables tie to a code section.","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json post /api/v1/us/session-laws/search","href":"/api-reference/us-session-laws/search-the-text-of-state-session-laws","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n pre: \"pre\",\n span: \"span\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n }, {CodeBlock} = _components;\n if (!CodeBlock) _missingMdxReference(\"CodeBlock\", true);\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Find state session laws by what they SAY. Send a question in plain words, words from a title, a quoted\\nphrase, a citation (\", _jsx(_components.code, {\n children: \"63-3004\"\n }), \"), a code section or a bill number (\", _jsx(_components.code, {\n children: \"S.F.No. 1552\"\n }), \"). You get the laws, best\\nfirst, each with the passage of its text that matched and a snippet around your words.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Cost\"\n }), \": 4 credits per page, each page a new search. An empty result is an answer (“nothing\\nmatches”) and is charged. A request that fails validation (422) is never charged; a failure on our side\\n(500, 503) is refunded. To read a law you found, use \", _jsx(_components.code, {\n children: \"GET /us/session-laws/{sessionLawId}\"\n }), \" (record) or\\nits \", _jsx(_components.code, {\n children: \"/body\"\n }), \" (text), which are priced on their own.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"What is searched.\"\n }), \" The ENACTED text: the law as it reads once the act takes effect. Language an act\\nstrikes out is not searched and never appears in a snippet, so a repealed word cannot match as if it were\\nlaw. Only laws we serve with text are searched (see \", _jsx(_components.code, {\n children: \"GET /us/statutes/coverage\"\n }), \", \", _jsx(_components.code, {\n children: \"sessionLaws\"\n }), \", for what\\neach state holds). Laws whose text we withhold are not returned, unless you send \", _jsx(_components.code, {\n children: \"includeUnverified\"\n }), \"\\n(default \", _jsx(_components.code, {\n children: \"false\"\n }), \"): then a withheld law whose reason we can label may appear, each such result carrying\\n\", _jsx(_components.code, {\n children: \"holdingState: quarantined\"\n }), \", \", _jsx(_components.code, {\n children: \"textReliability\"\n }), \" and \", _jsx(_components.code, {\n children: \"reasonCode\"\n }), \", and it is matched by its title, code\\nsection, citation or bill number rather than by the words of its text.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"How it ranks.\"\n }), \" Keyword relevance (BM25), not meaning. Words are matched as written and stemmed\\n(\", _jsx(_components.code, {\n children: \"licensing\"\n }), \" finds \", _jsx(_components.code, {\n children: \"licensed\"\n }), \"), so a question has to share vocabulary with the act:\\n\", _jsx(_components.code, {\n children: \"teeth cleaning professional\"\n }), \" does not find an act that says \", _jsx(_components.code, {\n children: \"dental hygienist\"\n }), \". A law matched by its\\ntitle AND its text, or by an exact part of your query, ranks above one matched a single way. Quote a\\nphrase to require it verbatim.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"What a result says about itself.\"\n }), \" \", _jsx(_components.code, {\n children: \"matchType\"\n }), \" is \", _jsx(_components.code, {\n children: \"exact\"\n }), \" when a quoted phrase, citation, code\\nsection or bill number you typed matched, otherwise \", _jsx(_components.code, {\n children: \"text\"\n }), \"; \", _jsx(_components.code, {\n children: \"matchedBy\"\n }), \" lists every way. Neither says\\nthe law is the right one: a question with no true answer still returns its closest words, and there is no\\n“no good match” flag because keyword scores do not separate the two cases. Read the snippet.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Paging.\"\n }), \" \", _jsx(_components.code, {\n children: \"limit\"\n }), \" is 1 to 25. \", _jsx(_components.code, {\n children: \"offset\"\n }), \" plus \", _jsx(_components.code, {\n children: \"limit\"\n }), \" reaches at most the 60 best matches; narrow with\\n\", _jsx(_components.code, {\n children: \"jurisdiction\"\n }), \", \", _jsx(_components.code, {\n children: \"session\"\n }), \", \", _jsx(_components.code, {\n children: \"series\"\n }), \", \", _jsx(_components.code, {\n children: \"instrumentType\"\n }), \" or the approval dates rather than paging deeper.\"]\n }), \"\\n\", _jsx(CodeBlock, {\n numberOfLines: \"4\",\n language: \"shellscript\",\n children: _jsx(_components.pre, {\n className: \"shiki shiki-themes github-light-default dark-plus\",\n style: {\n backgroundColor: \"#ffffff\",\n \"--shiki-dark-bg\": \"#0B0C0E\",\n color: \"#1f2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n language: \"shellscript\",\n children: _jsxs(_components.code, {\n language: \"shellscript\",\n numberOfLines: \"4\",\n children: [_jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#953800\",\n \"--shiki-dark\": \"#DCDCAA\"\n },\n children: \"curl\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \" -X\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" POST\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\"https://api.vaquill.ai/api/v1/us/session-laws/search\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#D7BA7D\"\n },\n children: \" \\\\\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \" -H\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\"Authorization: Bearer vq_key_...\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#D7BA7D\"\n },\n children: \" \\\\\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \" -H\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\"Content-Type: application/json\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#D7BA7D\"\n },\n children: \" \\\\\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \" -d\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" '{\\\"query\\\": \\\"can the sheriff pay with a debit card\\\", \\\"jurisdiction\\\": \\\"al\\\", \\\"limit\\\": 5}'\"\n })]\n }), \"\\n\"]\n })\n })\n }), \"\\n\", _jsx(CodeBlock, {\n numberOfLines: \"6\",\n language: \"javascript\",\n children: _jsx(_components.pre, {\n className: \"shiki shiki-themes github-light-default dark-plus\",\n style: {\n backgroundColor: \"#ffffff\",\n \"--shiki-dark-bg\": \"#0B0C0E\",\n color: \"#1f2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n language: \"javascript\",\n children: _jsxs(_components.code, {\n language: \"javascript\",\n numberOfLines: \"6\",\n children: [_jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \"const\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#4FC1FF\"\n },\n children: \" res\"\n }), _jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" =\"\n }), _jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#C586C0\"\n },\n children: \" await\"\n }), _jsx(_components.span, {\n style: {\n color: \"#8250DF\",\n \"--shiki-dark\": \"#DCDCAA\"\n },\n children: \" fetch\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"(\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"https://api.vaquill.ai/api/v1/us/session-laws/search\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \", {\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" method:\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\"POST\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" headers:\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" { \"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \"Authorization:\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\"Bearer vq_key_...\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \", \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"Content-Type\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \":\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\"application/json\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" },\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" body:\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#4FC1FF\"\n },\n children: \" JSON\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \".\"\n }), _jsx(_components.span, {\n style: {\n color: \"#8250DF\",\n \"--shiki-dark\": \"#DCDCAA\"\n },\n children: \"stringify\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"({ \"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \"query:\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" '\\\"credit card or debit card\\\"'\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \", \"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \"jurisdiction:\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\"al\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \", \"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \"limit:\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#B5CEA8\"\n },\n children: \" 5\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" }),\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"});\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \"const\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" { \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#4FC1FF\"\n },\n children: \"results\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" } \"\n }), _jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"=\"\n }), _jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#C586C0\"\n },\n children: \" await\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" res\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \".\"\n }), _jsx(_components.span, {\n style: {\n color: \"#8250DF\",\n \"--shiki-dark\": \"#DCDCAA\"\n },\n children: \"json\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"();\"\n })]\n }), \"\\n\"]\n })\n })\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Related.\"\n }), \" \", _jsx(_components.code, {\n children: \"GET /us/session-laws/list\"\n }), \" filters one state’s laws by session, series and date;\\n\", _jsx(_components.code, {\n children: \"POST /us/session-laws/batch\"\n }), \" reads up to 50 laws by id; \", _jsx(_components.code, {\n children: \"GET /us/statutes/section/{actId}/enactments\"\n }), \"\\nlists the acts a publisher’s own tables tie to a code section.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\nfunction _missingMdxReference(id, component) {\n throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\");\n}\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":{"theme":"github-light"},"config":{},"pageMetadata":{"title":"Search the text of state session laws","description":"Find state session laws by what they SAY. Send a question in plain words, words from a title, a quoted\nphrase, a citation (`63-3004`), a code section or a bill number (`S.F.No. 1552`). You get the laws, best\nfirst, each with the passage of its text that matched and a snippet around your words.\n\n**Cost**: 4 credits per page, each page a new search. An empty result is an answer (\"nothing\nmatches\") and is charged. A request that fails validation (422) is never charged; a failure on our side\n(500, 503) is refunded. To read a law you found, use `GET /us/session-laws/{sessionLawId}` (record) or\nits `/body` (text), which are priced on their own.\n\n**What is searched.** The ENACTED text: the law as it reads once the act takes effect. Language an act\nstrikes out is not searched and never appears in a snippet, so a repealed word cannot match as if it were\nlaw. Only laws we serve with text are searched (see `GET /us/statutes/coverage`, `sessionLaws`, for what\neach state holds). Laws whose text we withhold are not returned, unless you send `includeUnverified`\n(default `false`): then a withheld law whose reason we can label may appear, each such result carrying\n`holdingState: quarantined`, `textReliability` and `reasonCode`, and it is matched by its title, code\nsection, citation or bill number rather than by the words of its text.\n\n**How it ranks.** Keyword relevance (BM25), not meaning. Words are matched as written and stemmed\n(`licensing` finds `licensed`), so a question has to share vocabulary with the act:\n`teeth cleaning professional` does not find an act that says `dental hygienist`. A law matched by its\ntitle AND its text, or by an exact part of your query, ranks above one matched a single way. Quote a\nphrase to require it verbatim.\n\n**What a result says about itself.** `matchType` is `exact` when a quoted phrase, citation, code\nsection or bill number you typed matched, otherwise `text`; `matchedBy` lists every way. Neither says\nthe law is the right one: a question with no true answer still returns its closest words, and there is no\n\"no good match\" flag because keyword scores do not separate the two cases. Read the snippet.\n\n**Paging.** `limit` is 1 to 25. `offset` plus `limit` reaches at most the 60 best matches; narrow with\n`jurisdiction`, `session`, `series`, `instrumentType` or the approval dates rather than paging deeper.\n\n```bash\ncurl -X POST \"https://api.vaquill.ai/api/v1/us/session-laws/search\" \\\n -H \"Authorization: Bearer vq_key_...\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"query\": \"can the sheriff pay with a debit card\", \"jurisdiction\": \"al\", \"limit\": 5}'\n```\n\n```javascript\nconst res = await fetch(\"https://api.vaquill.ai/api/v1/us/session-laws/search\", {\n method: \"POST\",\n headers: { Authorization: \"Bearer vq_key_...\", \"Content-Type\": \"application/json\" },\n body: JSON.stringify({ query: '\"credit card or debit card\"', jurisdiction: \"al\", limit: 5 }),\n});\nconst { results } = await res.json();\n```\n\n**Related.** `GET /us/session-laws/list` filters one state's laws by session, series and date;\n`POST /us/session-laws/batch` reads up to 50 laws by id; `GET /us/statutes/section/{actId}/enactments`\nlists the acts a publisher's own tables tie to a code section.","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json post /api/v1/us/session-laws/search","href":"/api-reference/us-session-laws/search-the-text-of-state-session-laws","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["US Session Laws"],"summary":"Search the text of state session laws","description":"Find state session laws by what they SAY. Send a question in plain words, words from a title, a quoted\nphrase, a citation (`63-3004`), a code section or a bill number (`S.F.No. 1552`). You get the laws, best\nfirst, each with the passage of its text that matched and a snippet around your words.\n\n**Cost**: 4 credits per page, each page a new search. An empty result is an answer (\"nothing\nmatches\") and is charged. A request that fails validation (422) is never charged; a failure on our side\n(500, 503) is refunded. To read a law you found, use `GET /us/session-laws/{sessionLawId}` (record) or\nits `/body` (text), which are priced on their own.\n\n**What is searched.** The ENACTED text: the law as it reads once the act takes effect. Language an act\nstrikes out is not searched and never appears in a snippet, so a repealed word cannot match as if it were\nlaw. Only laws we serve with text are searched (see `GET /us/statutes/coverage`, `sessionLaws`, for what\neach state holds). Laws whose text we withhold are not returned, unless you send `includeUnverified`\n(default `false`): then a withheld law whose reason we can label may appear, each such result carrying\n`holdingState: quarantined`, `textReliability` and `reasonCode`, and it is matched by its title, code\nsection, citation or bill number rather than by the words of its text.\n\n**How it ranks.** Keyword relevance (BM25), not meaning. Words are matched as written and stemmed\n(`licensing` finds `licensed`), so a question has to share vocabulary with the act:\n`teeth cleaning professional` does not find an act that says `dental hygienist`. A law matched by its\ntitle AND its text, or by an exact part of your query, ranks above one matched a single way. Quote a\nphrase to require it verbatim.\n\n**What a result says about itself.** `matchType` is `exact` when a quoted phrase, citation, code\nsection or bill number you typed matched, otherwise `text`; `matchedBy` lists every way. Neither says\nthe law is the right one: a question with no true answer still returns its closest words, and there is no\n\"no good match\" flag because keyword scores do not separate the two cases. Read the snippet.\n\n**Paging.** `limit` is 1 to 25. `offset` plus `limit` reaches at most the 60 best matches; narrow with\n`jurisdiction`, `session`, `series`, `instrumentType` or the approval dates rather than paging deeper.\n\n```bash\ncurl -X POST \"https://api.vaquill.ai/api/v1/us/session-laws/search\" \\\n -H \"Authorization: Bearer vq_key_...\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"query\": \"can the sheriff pay with a debit card\", \"jurisdiction\": \"al\", \"limit\": 5}'\n```\n\n```javascript\nconst res = await fetch(\"https://api.vaquill.ai/api/v1/us/session-laws/search\", {\n method: \"POST\",\n headers: { Authorization: \"Bearer vq_key_...\", \"Content-Type\": \"application/json\" },\n body: JSON.stringify({ query: '\"credit card or debit card\"', jurisdiction: \"al\", limit: 5 }),\n});\nconst { results } = await res.json();\n```\n\n**Related.** `GET /us/session-laws/list` filters one state's laws by session, series and date;\n`POST /us/session-laws/batch` reads up to 50 laws by id; `GET /us/statutes/section/{actId}/enactments`\nlists the acts a publisher's own tables tie to a code section.","operationId":"search_session_laws","parameters":["7393e7af-2b56-4a79-b62b-535792e3339d"],"requestBody":"e92b8ba8-51f5-4db4-9c96-ce60f974cd64","responses":{"200":"34359cd8-8549-4f6f-af5a-c617f6ae9007","401":"688c4d22-af36-4153-b7c6-1b6956b55c68","402":"d9199265-80b0-4a28-8fae-e288c9e0920a","403":"a9da4012-8eab-484d-a9cf-a3950532ef7b","409":"4f0552e8-de1e-4ad9-a45f-4da282750b8c","422":"ef61ce2f-98ed-4198-bdc5-ef1a2b98707c","429":"37fdfcfa-fc59-43bb-bfb2-52e3812b8f99","500":"996819b5-0036-4786-a8eb-c64a15763cfb","503":"c68c1d1c-6b1e-4711-a685-85ce158a1c93"},"method":"post","type":"path","servers":["72a9d95a-e7d7-4dbe-946e-0f3975dd0517"],"security":["507a4177-c353-457f-b275-c6e5689326cb","fd51ae53-9413-4b29-a7c2-32a68ced30e6"],"path":"/api/v1/us/session-laws/search","baseUrlOptions":["https://api.vaquill.ai"],"title":"Search the text of state session laws","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","go"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.query":"can the sheriff pay with a debit card","body.jurisdiction.oneOf.0":"al","body.session.oneOf.0":"2025R","body.series.oneOf.0.items.0":"general","body.instrumentType.oneOf.0.items.0":"act","body.instrumentType.oneOf.0.items.1":"joint_resolution","body.approvedFrom":"2025-03-01","body.approvedTo":"2025-06-30","body.limit":5,"body.offset":5,"body.includeUnverified":true}]},"dependencies":{"parameters":{"7393e7af-2b56-4a79-b62b-535792e3339d":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"oneOf":[{"type":"string","title":"Idempotency-Key","description":"Optional. 16 to 255 visible ASCII characters (a UUIDv4 is ideal). A retry with the same key and the same request replays the original 2xx response for 24 hours without charging again. The same key with a different request is rejected. Scope is the API key, method, path and body. The stored response body is a query-derived cache controlled by the account's data retention setting cacheQueryDerivedData: when it is false the body is never stored and a retry answers 409 idempotency_replay_unavailable, without charging again.","maxLength":255,"minLength":16,"pattern":"^[\\x21-\\x7e]+$","example":"3f9c2a1e-7b44-4d0a-9c1e-5a6b7c8d9e0f","uniqueKey":"oneOf.0","typeLabel":"string"},{"type":"null","title":"Idempotency-Key","description":"Optional. 16 to 255 visible ASCII characters (a UUIDv4 is ideal). A retry with the same key and the same request replays the original 2xx response for 24 hours without charging again. The same key with a different request is rejected. Scope is the API key, method, path and body. The stored response body is a query-derived cache controlled by the account's data retention setting cacheQueryDerivedData: when it is false the body is never stored and a retry answers 409 idempotency_replay_unavailable, without charging again.","example":"3f9c2a1e-7b44-4d0a-9c1e-5a6b7c8d9e0f","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string | null"},"description":"Optional. 16 to 255 visible ASCII characters (a UUIDv4 is ideal). A retry with the same key and the same request replays the original 2xx response for 24 hours without charging again. The same key with a different request is rejected. Scope is the API key, method, path and body. The stored response body is a query-derived cache controlled by the account's data retention setting cacheQueryDerivedData: when it is false the body is never stored and a retry answers 409 idempotency_replay_unavailable, without charging again."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"query":{"type":"string","maxLength":300,"minLength":2,"title":"Query","description":"What to look for: a question in plain words (`can a sheriff pay with a debit card`), words from a title, a quoted phrase (`\"credit card or debit card\"`), a citation (`63-3004`), a code section or a bill number (`S.F.No. 1552`). Quoted parts must appear verbatim; everything else is matched on its words, stemmed, so `licensing` finds `licensed`. Words are matched as the legislature wrote them: `teeth cleaning professional` does not find an act that says `dental hygienist`. 2 to 300 characters.","examples":["can the sheriff pay with a debit card"],"isRequired":true,"uniqueKey":"query","typeLabel":"string"},"jurisdiction":{"oneOf":[{"type":"string","title":"Jurisdiction","description":"Limit to one state, `dc` or `pr`. Two-letter code, case-insensitive. Omit to search every jurisdiction we hold. `federal` and an unknown code are a 422, never charged.","enum":["al","ak","as","az","ar","ca","co","ct","de","dc","fl","ga","gu","hi","id","il","in","ia","ks","ky","la","me","md","ma","mi","mn","ms","mo","mt","ne","nv","nh","nj","nm","ny","nc","nd","mp","oh","ok","or","pa","pr","ri","sc","sd","tn","tx","ut","vt","vi","va","wa","wv","wi","wy"],"example":"al","uniqueKey":"jurisdiction.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","title":"Jurisdiction","description":"Limit to one state, `dc` or `pr`. Two-letter code, case-insensitive. Omit to search every jurisdiction we hold. `federal` and an unknown code are a 422, never charged.","example":"al","uniqueKey":"jurisdiction.oneOf.1","typeLabel":"null"}],"uniqueKey":"jurisdiction","typeLabel":"enum\u003cstring> | null"},"session":{"oneOf":[{"type":"string","title":"Session","description":"Limit to one session, by the code `session.code` reports (`2025R`, `2025S1`). Case-sensitive. Matches the act's own session, so it narrows the TITLE, citation and bill signals; the passage text of an act carries its session year and type but not the code.","maxLength":32,"minLength":1,"pattern":"^[A-Za-z0-9._-]+$","example":"2025R","uniqueKey":"session.oneOf.0","typeLabel":"string"},{"type":"null","title":"Session","description":"Limit to one session, by the code `session.code` reports (`2025R`, `2025S1`). Case-sensitive. Matches the act's own session, so it narrows the TITLE, citation and bill signals; the passage text of an act carries its session year and type but not the code.","example":"2025R","uniqueKey":"session.oneOf.1","typeLabel":"null"}],"uniqueKey":"session","typeLabel":"string | null"},"series":{"oneOf":[{"type":"array","items":{"type":"string","enum":["general","public","public_act","special_act","private_and_special","act","acts","law","local","municipal","appropriation","resolve","resolves","resolution","resolution_chapter","joint_resolution","concurrent_resolution","memorial","initiated_bill","constitutional_amendment","private","constitutional_resolution","competing_measure_resolution","resolution_act"],"uniqueKey":"series.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring>"},"title":"Series","description":"Limit to these numbering series, one or more (they combine with OR). One of `general`, `public`, `public_act`, `special_act`, `private_and_special`, `act`, `acts`, `law`, `local`, `municipal`, `appropriation`, `resolve`, `resolves`, `resolution`, `resolution_chapter`, `joint_resolution`, `concurrent_resolution`, `memorial`, `initiated_bill`, `constitutional_amendment`, `private`, `constitutional_resolution`, `competing_measure_resolution`, `resolution_act`. Any other value is a 422, never charged.","example":["general"],"uniqueKey":"series.oneOf.0","typeLabel":"enum\u003cstring>[]"},{"type":"null","title":"Series","description":"Limit to these numbering series, one or more (they combine with OR). One of `general`, `public`, `public_act`, `special_act`, `private_and_special`, `act`, `acts`, `law`, `local`, `municipal`, `appropriation`, `resolve`, `resolves`, `resolution`, `resolution_chapter`, `joint_resolution`, `concurrent_resolution`, `memorial`, `initiated_bill`, `constitutional_amendment`, `private`, `constitutional_resolution`, `competing_measure_resolution`, `resolution_act`. Any other value is a 422, never charged.","example":["general"],"uniqueKey":"series.oneOf.1","typeLabel":"null"}],"uniqueKey":"series","typeLabel":"enum\u003cstring>[] | null"},"instrumentType":{"oneOf":[{"type":"array","items":{"type":"string","enum":["act","joint_resolution","concurrent_resolution","resolution","resolve","memorial","other"],"uniqueKey":"instrumentType.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring>"},"title":"Instrumenttype","description":"Limit to these kinds of measure, one or more (OR). One of `act`, `joint_resolution`, `concurrent_resolution`, `resolution`, `resolve`, `memorial`, `other`. Any other value is a 422, never charged.","example":["act","joint_resolution"],"uniqueKey":"instrumentType.oneOf.0","typeLabel":"enum\u003cstring>[]"},{"type":"null","title":"Instrumenttype","description":"Limit to these kinds of measure, one or more (OR). One of `act`, `joint_resolution`, `concurrent_resolution`, `resolution`, `resolve`, `memorial`, `other`. Any other value is a 422, never charged.","example":["act","joint_resolution"],"uniqueKey":"instrumentType.oneOf.1","typeLabel":"null"}],"uniqueKey":"instrumentType","typeLabel":"enum\u003cstring>[] | null"},"approvedFrom":{"type":"string","title":"Approvedfrom","description":"Only laws approved on or after this date, `YYYY-MM-DD`, inclusive; a real calendar date (`2025-02-30` is a 422). A law with no printed approval date never matches.","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2025-03-01","uniqueKey":"approvedFrom","typeLabel":"string\u003cdate>"},"approvedTo":{"type":"string","title":"Approvedto","description":"Only laws approved on or before this date, `YYYY-MM-DD`, inclusive. An end before `approvedFrom` is a 422, never charged.","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2025-06-30","uniqueKey":"approvedTo","typeLabel":"string\u003cdate>"},"limit":{"type":"integer","maximum":25,"minimum":1,"title":"Limit","description":"Laws per page, 1 to 25. A page costs the same however many laws it holds, so a larger `limit` is cheaper per law.","default":10,"examples":[5],"uniqueKey":"limit","typeLabel":"integer"},"offset":{"type":"integer","maximum":59,"minimum":0,"title":"Offset","description":"Laws to skip, for the next page: `offset` plus `limit` can reach at most the 60 best matches. Each page is a new search and is charged. Deeper than 60 is a 422, never charged: narrow the search with a filter instead.","default":0,"examples":[5],"uniqueKey":"offset","typeLabel":"integer"},"includeUnverified":{"type":"boolean","title":"Includeunverified","description":"Also search laws we hold but do not serve (`holdingState: quarantined`). Default `false`: such laws are never returned and nothing else changes. With `true` a held-back law whose reason we can label may appear, and every such result carries `holdingState`, `textReliability` (`unverified` or `known_issue`) and `reasonCode`; its text MAY show deleted or vetoed law as if enacted. Served laws are returned as usual, without these fields. A law whose licence bars use, or whose text failed our own validation, is never returned. A held-back law is matched by its title, code section, citation or bill number, not by the words of its text. Priced as any search page.","default":false,"examples":[true],"uniqueKey":"includeUnverified","typeLabel":"boolean"}},"additionalProperties":false,"type":"object","required":["query"],"title":"SessionLawSearchRequest","description":"Body of `POST /us/session-laws/search`.","uniqueKey":"","typeLabel":"SessionLawSearchRequest · object"},"examples":{"Example":{"title":"Example","value":{"query":"can the sheriff pay with a debit card","jurisdiction":"al","session":"2025R","series":["general"],"instrumentType":["act","joint_resolution"],"approvedFrom":"2025-03-01","approvedTo":"2025-06-30","limit":5,"offset":5,"includeUnverified":true}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"34359cd8-8549-4f6f-af5a-c617f6ae9007":{"description":"The laws that matched, best first. An empty `results` is a charged answer.","content":{"application/json":{"schema":{"properties":{"query":{"type":"string","title":"Query","description":"The query as read, whitespace collapsed.","examples":["can the sheriff pay with a debit card"],"isRequired":true,"uniqueKey":"query","typeLabel":"string"},"parsed":{"properties":{"text":{"type":"string","title":"Text","description":"The free words, quoted parts removed.","examples":["sheriff debit card"],"isRequired":true,"uniqueKey":"parsed.text","typeLabel":"string"},"phrases":{"items":{"type":"string","uniqueKey":"parsed.phrases.items.[INDEX]","typeLabel":"string"},"type":"array","title":"Phrases","description":"Quoted phrases, matched verbatim.","examples":[["debit card"]],"uniqueKey":"parsed.phrases","typeLabel":"string[]"},"citationTokens":{"items":{"type":"string","uniqueKey":"parsed.citationTokens.items.[INDEX]","typeLabel":"string"},"type":"array","title":"Citationtokens","description":"Citation-shaped tokens found in the query (`63-3004`), matched exactly.","examples":[["63-3004"]],"uniqueKey":"parsed.citationTokens","typeLabel":"string[]"},"billNumbers":{"items":{"type":"string","uniqueKey":"parsed.billNumbers.items.[INDEX]","typeLabel":"string"},"type":"array","title":"Billnumbers","description":"Bill numbers found in the query (`S.F.No. 1552`), matched exactly.","examples":[["HB 145"]],"uniqueKey":"parsed.billNumbers","typeLabel":"string[]"}},"type":"object","required":["text"],"title":"SessionLawSearchParsed","description":"How the query was split into words, phrases, citations and bill numbers.","isRequired":true,"uniqueKey":"parsed","typeLabel":"SessionLawSearchParsed · object"},"results":{"items":{"properties":{"sessionLawId":{"type":"string","title":"Sessionlawid","description":"The law's permanent id. Read the whole law at `GET /us/session-laws/{sessionLawId}`.","examples":["SSL_AL_2025R_G_Y2025_C2025-127"],"isRequired":true,"uniqueKey":"results.items.[INDEX].sessionLawId","typeLabel":"string"},"jurisdiction":{"type":"string","title":"Jurisdiction","description":"Lowercase two-letter code of the state, `dc` or `pr`.","examples":["al"],"isRequired":true,"uniqueKey":"results.items.[INDEX].jurisdiction","typeLabel":"string"},"session":{"type":"string","title":"Session","description":"The session's code, as `session.code` reports it.","examples":["2025R"],"isRequired":true,"uniqueKey":"results.items.[INDEX].session","typeLabel":"string"},"series":{"type":"string","title":"Series","description":"The numbering series the law sits in.","examples":["general"],"isRequired":true,"uniqueKey":"results.items.[INDEX].series","typeLabel":"string"},"instrumentType":{"type":"string","title":"Instrumenttype","description":"The kind of measure: `act`, `joint_resolution` and so on.","examples":["act"],"isRequired":true,"uniqueKey":"results.items.[INDEX].instrumentType","typeLabel":"string"},"citation":{"type":"string","title":"Citation","description":"The law's canonical citation, as the registry holds it.","examples":["Act 2025-127"],"isRequired":true,"uniqueKey":"results.items.[INDEX].citation","typeLabel":"string"},"enactmentOutcome":{"type":"string","title":"Enactmentoutcome","description":"How it became law: `signed`, `became_law_without_signature`, `veto_overridden` and so on.","examples":["signed"],"isRequired":true,"uniqueKey":"results.items.[INDEX].enactmentOutcome","typeLabel":"string"},"matchType":{"type":"string","enum":["exact","text"],"title":"Matchtype","description":"`exact` when a quoted phrase, a citation, a code section or a bill number you typed matched this law; `text` when it matched on words alone. It says HOW it matched and makes no claim that this is the right law: a question with no true answer still returns its closest words.","examples":["text"],"isRequired":true,"uniqueKey":"results.items.[INDEX].matchType","typeLabel":"enum\u003cstring>"},"matchedBy":{"items":{"type":"string","enum":["title","text","phrase","citation","codeSection","billNumber"],"uniqueKey":"results.items.[INDEX].matchedBy.items.[INDEX]","typeLabel":"enum\u003cstring>"},"type":"array","title":"Matchedby","description":"Every way this law matched, strongest context first. `title`: the words are in the act's title. `text`: they are in its enacted text. `phrase`: your quoted phrase appears verbatim. `citation`: a citation you typed (`63-3004`) appears in the text. `codeSection`: the act's own table lists that code section. `billNumber`: the act's bill number is the one you typed. A law matched by several ranks above one matched by a single way.","examples":[["title","text"]],"isRequired":true,"uniqueKey":"results.items.[INDEX].matchedBy","typeLabel":"enum\u003cstring>[]"},"href":{"type":"string","title":"Href","description":"The law's record: `GET /us/session-laws/{sessionLawId}`.","examples":["https://api.vaquill.ai/api/v1/us/session-laws/SSL_AL_2025R_G_Y2025_C2025-127"],"isRequired":true,"uniqueKey":"results.items.[INDEX].href","typeLabel":"string"},"title":{"oneOf":[{"type":"string","title":"Title","description":"The act's title as the publisher prints it; null where the publisher printed none.","example":"Relating to Houston County; to authorize the sheriff to establish procedures for using a credit card.","uniqueKey":"results.items.[INDEX].title.oneOf.0","typeLabel":"string"},{"type":"null","title":"Title","description":"The act's title as the publisher prints it; null where the publisher printed none.","example":"Relating to Houston County; to authorize the sheriff to establish procedures for using a credit card.","uniqueKey":"results.items.[INDEX].title.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].title","typeLabel":"string | null"},"approvedDate":{"oneOf":[{"type":"string","title":"Approveddate","description":"The date the governor approved it, `YYYY-MM-DD`, where the publisher printed one; else null.","example":"2025-04-15","uniqueKey":"results.items.[INDEX].approvedDate.oneOf.0","typeLabel":"string"},{"type":"null","title":"Approveddate","description":"The date the governor approved it, `YYYY-MM-DD`, where the publisher printed one; else null.","example":"2025-04-15","uniqueKey":"results.items.[INDEX].approvedDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].approvedDate","typeLabel":"string | null"},"billNumbers":{"items":{"type":"string","uniqueKey":"results.items.[INDEX].billNumbers.items.[INDEX]","typeLabel":"string"},"type":"array","title":"Billnumbers","description":"The bill number(s) this act passed as, as the publisher printed them (`AB 2801`). A bill number is reused every session, so read it with `session` and `citation`. Empty when the publisher printed none.","examples":[["AB 2801"]],"uniqueKey":"results.items.[INDEX].billNumbers","typeLabel":"string[]"},"amendedSections":{"items":{"type":"string","uniqueKey":"results.items.[INDEX].amendedSections.items.[INDEX]","typeLabel":"string"},"type":"array","title":"Amendedsections","description":"The code section numbers this act's own table lists (`1950.5`), at most 25, without the code's name: the title names the code (`... of the Civil Code`). Use it to judge whether this act touches a section you care about. Empty when the act lists none.","examples":[["1950.5"]],"uniqueKey":"results.items.[INDEX].amendedSections","typeLabel":"string[]"},"passage":{"oneOf":[{"type":"object","title":"SessionLawSearchPassage","description":"The passage of the law's text that matched best, with a snippet. Null when this law matched only by title, citation, code section or bill number and no passage did.","required":["seq","ownStart","ownEnd","snippet","bodyHref"],"properties":{"seq":{"type":"integer","title":"Seq","description":"Position of this passage within the law, from 0.","examples":[2],"isRequired":true,"uniqueKey":"results.items.[INDEX].passage.oneOf.0.seq","typeLabel":"integer"},"ownStart":{"type":"integer","title":"Ownstart","description":"Character offset in the law's stored text where this passage begins. Pass it as `startChar` to `GET /us/session-laws/{sessionLawId}/body` to read the law from here.","examples":[8120],"isRequired":true,"uniqueKey":"results.items.[INDEX].passage.oneOf.0.ownStart","typeLabel":"integer"},"ownEnd":{"type":"integer","title":"Ownend","description":"Character offset where this passage ends, in the same scale as `ownStart`.","examples":[11940],"isRequired":true,"uniqueKey":"results.items.[INDEX].passage.oneOf.0.ownEnd","typeLabel":"integer"},"snippet":{"type":"string","title":"Snippet","description":"About 280 characters of the ENACTED text around your words, plain text, with `…` where it was cut. Language the act strikes out is never shown here.","examples":["…the sheriff may establish procedures for using a credit card or debit card to make purchases…"],"isRequired":true,"uniqueKey":"results.items.[INDEX].passage.oneOf.0.snippet","typeLabel":"string"},"bodyHref":{"type":"string","title":"Bodyhref","description":"Where to read the text from this passage: the law's `/body` with `startChar` set.","examples":["https://api.vaquill.ai/api/v1/us/session-laws/SSL_AL_2025R_G_Y2025_C2025-127/body?startChar=8120"],"isRequired":true,"uniqueKey":"results.items.[INDEX].passage.oneOf.0.bodyHref","typeLabel":"string"},"pageStart":{"oneOf":[{"type":"integer","title":"Pagestart","description":"The printed page the passage starts on, 1-based, where the publisher's pages are known; else null.","example":3,"uniqueKey":"results.items.[INDEX].passage.oneOf.0.pageStart.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Pagestart","description":"The printed page the passage starts on, 1-based, where the publisher's pages are known; else null.","example":3,"uniqueKey":"results.items.[INDEX].passage.oneOf.0.pageStart.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].passage.oneOf.0.pageStart","typeLabel":"integer | null"},"heading":{"oneOf":[{"type":"string","title":"Heading","description":"The section heading the passage sits under (`Section 3.`), where one was found; else null.","example":"Section 3.","uniqueKey":"results.items.[INDEX].passage.oneOf.0.heading.oneOf.0","typeLabel":"string"},{"type":"null","title":"Heading","description":"The section heading the passage sits under (`Section 3.`), where one was found; else null.","example":"Section 3.","uniqueKey":"results.items.[INDEX].passage.oneOf.0.heading.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].passage.oneOf.0.heading","typeLabel":"string | null"},"highlights":{"items":{"items":{"type":"integer","uniqueKey":"results.items.[INDEX].passage.oneOf.0.highlights.items.[INDEX].items.[INDEX]","typeLabel":"integer"},"type":"array","uniqueKey":"results.items.[INDEX].passage.oneOf.0.highlights.items.[INDEX]","typeLabel":"integer[]"},"type":"array","title":"Highlights","description":"`[start, end]` character offsets INSIDE `snippet` (end exclusive) of each word that matched, so you can draw the highlight yourself. The snippet carries no markup.","examples":[[[13,18],[58,64]]],"uniqueKey":"results.items.[INDEX].passage.oneOf.0.highlights","typeLabel":"integer[][]"}},"uniqueKey":"results.items.[INDEX].passage.oneOf.0","typeLabel":"SessionLawSearchPassage · object"},{"type":"null","description":"The passage of the law's text that matched best, with a snippet. Null when this law matched only by title, citation, code section or bill number and no passage did.","uniqueKey":"results.items.[INDEX].passage.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].passage","typeLabel":"SessionLawSearchPassage · object | null"},"holdingState":{"oneOf":[{"type":"string","title":"Holdingstate","description":"`quarantined`: we hold this law but do not serve it. Present only on a result found with `includeUnverified=true`; omitted for a served law.","const":"quarantined","example":"quarantined","uniqueKey":"results.items.[INDEX].holdingState.oneOf.0","typeLabel":"string"},{"type":"null","title":"Holdingstate","description":"`quarantined`: we hold this law but do not serve it. Present only on a result found with `includeUnverified=true`; omitted for a served law.","example":"quarantined","uniqueKey":"results.items.[INDEX].holdingState.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].holdingState","typeLabel":"string | null"},"textReliability":{"oneOf":[{"type":"string","title":"Textreliability","description":"How far to trust this law's text, present with `holdingState`. `unverified`: a check has not been completed. `known_issue`: we have evidence the text shows deleted or vetoed law as if enacted. Branch on `reasonCode`.","enum":["unverified","known_issue"],"example":"unverified","uniqueKey":"results.items.[INDEX].textReliability.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","title":"Textreliability","description":"How far to trust this law's text, present with `holdingState`. `unverified`: a check has not been completed. `known_issue`: we have evidence the text shows deleted or vetoed law as if enacted. Branch on `reasonCode`.","example":"unverified","uniqueKey":"results.items.[INDEX].textReliability.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].textReliability","typeLabel":"enum\u003cstring> | null"},"reasonCode":{"oneOf":[{"type":"string","title":"Reasoncode","description":"Why the law is held back, a stable token: `markup_unverified`, `strike_unchecked`, `struck_text_shown_as_current`, `struck_text_merged`, `veto_unchecked` or `licence_unconfirmed`. Present with `holdingState`.","example":"strike_unchecked","uniqueKey":"results.items.[INDEX].reasonCode.oneOf.0","typeLabel":"string"},{"type":"null","title":"Reasoncode","description":"Why the law is held back, a stable token: `markup_unverified`, `strike_unchecked`, `struck_text_shown_as_current`, `struck_text_merged`, `veto_unchecked` or `licence_unconfirmed`. Present with `holdingState`.","example":"strike_unchecked","uniqueKey":"results.items.[INDEX].reasonCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].reasonCode","typeLabel":"string | null"}},"type":"object","required":["sessionLawId","jurisdiction","session","series","instrumentType","citation","enactmentOutcome","matchType","matchedBy","href"],"title":"SessionLawSearchResult","description":"One law in the ranking.","uniqueKey":"results.items.[INDEX]","typeLabel":"SessionLawSearchResult · object"},"type":"array","title":"Results","description":"The laws, best first. Empty when nothing matched, which is an answer and is charged.","uniqueKey":"results","typeLabel":"SessionLawSearchResult · object[]"},"count":{"type":"integer","title":"Count","description":"Laws on this page.","default":0,"examples":[5],"uniqueKey":"count","typeLabel":"integer"},"offset":{"type":"integer","title":"Offset","description":"The `offset` this page was read from.","default":0,"examples":[0],"uniqueKey":"offset","typeLabel":"integer"},"limit":{"type":"integer","title":"Limit","description":"The `limit` this page was read with.","default":10,"examples":[5],"uniqueKey":"limit","typeLabel":"integer"},"hasMore":{"type":"boolean","title":"Hasmore","description":"True when more laws follow: call again with `offset` raised by `limit` (within the 60 best).","default":false,"examples":[true],"uniqueKey":"hasMore","typeLabel":"boolean"},"creditsConsumed":{"type":"integer","title":"Creditsconsumed","description":"Credits actually charged for this call, never the list price. 0 when the call was refunded.","default":0,"examples":[4],"uniqueKey":"creditsConsumed","typeLabel":"integer"},"processingTimeMs":{"type":"number","title":"Processingtimems","description":"Server-side time for this request in milliseconds, excluding network transit. Not billed on.","default":0,"examples":[38.6],"uniqueKey":"processingTimeMs","typeLabel":"number"}},"type":"object","required":["query","parsed"],"title":"SessionLawSearchResponse","description":"Response for `POST /us/session-laws/search`.","uniqueKey":"","typeLabel":"SessionLawSearchResponse · object"},"examples":{"words":{"title":"words","value":{"query":"can the sheriff pay with a debit card","parsed":{"text":"can the sheriff pay with a debit card","phrases":[],"citationTokens":[],"billNumbers":[]},"results":[{"sessionLawId":"SSL_AL_2025R_G_Y2025_C2025-127","jurisdiction":"al","session":"2025R","series":"general","instrumentType":"act","citation":"Act 2025-127","title":"Relating to Houston County; to authorize the sheriff to establish procedures for using a credit card or debit card to make purchases.","approvedDate":"2025-04-15","enactmentOutcome":"signed","matchType":"text","matchedBy":["title","text"],"passage":{"seq":0,"ownStart":0,"ownEnd":1820,"heading":"Section 1.","snippet":"Section 1. The sheriff of Houston County may establish procedures for using a credit card…","highlights":[[15,22],[85,89]],"bodyHref":"https://api.vaquill.ai/api/v1/us/session-laws/SSL_AL_2025R_G_Y2025_C2025-127/body?startChar=0"},"href":"https://api.vaquill.ai/api/v1/us/session-laws/SSL_AL_2025R_G_Y2025_C2025-127"}],"count":1,"offset":0,"limit":5,"hasMore":false,"creditsConsumed":4,"processingTimeMs":38.6}},"noMatch":{"title":"noMatch","value":{"query":"xylophone excise levy","parsed":{"text":"xylophone excise levy","phrases":[],"citationTokens":[],"billNumbers":[]},"results":[],"count":0,"offset":0,"limit":10,"hasMore":false,"creditsConsumed":4,"processingTimeMs":21.4}}},"exampleType":"examples"}},"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-Request-ID":{"description":"Correlation id of this request. Quote it when contacting support.","schema":{"type":"string"}}},"exampleType":"examples"},"688c4d22-af36-4153-b7c6-1b6956b55c68":{"description":"Missing, invalid or revoked API key. Not charged.","content":{"application/json":{"example":{"detail":"Invalid or expired API key"},"schema":{"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."],"isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"errors":{"oneOf":[{"type":"array","items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | 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","corpusType"]],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Msg","description":"What is wrong with the value, in plain English.","examples":["Input should be 'USC', 'CFR' or 'STATE'"],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Type","description":"Machine-readable error kind, e.g. `missing`, `literal_error`, `json_invalid`.","examples":["literal_error"],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].type","typeLabel":"string"}},"type":"object","required":["loc","msg","type"],"title":"ApiFieldError","description":"One rejected field in a 422 response.","uniqueKey":"errors.oneOf.0.items.[INDEX]","typeLabel":"ApiFieldError · object"},"title":"Errors","description":"Present on 422 only: every field that failed validation.","uniqueKey":"errors.oneOf.0","typeLabel":"ApiFieldError · object[]"},{"type":"null","title":"Errors","description":"Present on 422 only: every field that failed validation.","uniqueKey":"errors.oneOf.1","typeLabel":"null"}],"uniqueKey":"errors","typeLabel":"ApiFieldError · object[] | null"},"code":{"oneOf":[{"type":"string","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, permission_denied, insufficient_scope, insufficient_credits, rate_limited, daily_cap_exceeded, validation_error, 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.","x-known-values":["authentication_required","invalid_api_key","api_key_expired","permission_denied","insufficient_scope","insufficient_credits","rate_limited","daily_cap_exceeded","validation_error","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"],"example":"insufficient_credits","uniqueKey":"code.oneOf.0","typeLabel":"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, permission_denied, insufficient_scope, insufficient_credits, rate_limited, daily_cap_exceeded, validation_error, 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.","x-known-values":["authentication_required","invalid_api_key","api_key_expired","permission_denied","insufficient_scope","insufficient_credits","rate_limited","daily_cap_exceeded","validation_error","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"],"example":"insufficient_credits","uniqueKey":"code.oneOf.1","typeLabel":"null"}],"uniqueKey":"code","typeLabel":"string | null"},"type":{"oneOf":[{"type":"string","title":"Type","description":"URL naming the error kind, `https://www.vaquill.ai/docs/errors/{code}`.","example":"https://www.vaquill.ai/docs/errors/insufficient_credits","uniqueKey":"type.oneOf.0","typeLabel":"string"},{"type":"null","title":"Type","description":"URL naming the error kind, `https://www.vaquill.ai/docs/errors/{code}`.","example":"https://www.vaquill.ai/docs/errors/insufficient_credits","uniqueKey":"type.oneOf.1","typeLabel":"null"}],"uniqueKey":"type","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","title":"Title","description":"Short fixed English title for `code`.","example":"Insufficient credits","uniqueKey":"title.oneOf.0","typeLabel":"string"},{"type":"null","title":"Title","description":"Short fixed English title for `code`.","example":"Insufficient credits","uniqueKey":"title.oneOf.1","typeLabel":"null"}],"uniqueKey":"title","typeLabel":"string | null"},"status":{"oneOf":[{"type":"integer","title":"Status","description":"Echo of the HTTP status code.","example":402,"uniqueKey":"status.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Status","description":"Echo of the HTTP status code.","example":402,"uniqueKey":"status.oneOf.1","typeLabel":"null"}],"uniqueKey":"status","typeLabel":"integer | null"},"requestId":{"oneOf":[{"type":"string","title":"Requestid","description":"Equals the `X-Request-ID` response header. Quote it to support.","example":"8d32789e-7b27-44f7-9523-424596e7a929","uniqueKey":"requestId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Requestid","description":"Equals the `X-Request-ID` response header. Quote it to support.","example":"8d32789e-7b27-44f7-9523-424596e7a929","uniqueKey":"requestId.oneOf.1","typeLabel":"null"}],"uniqueKey":"requestId","typeLabel":"string | null"},"retryable":{"oneOf":[{"type":"boolean","title":"Retryable","description":"True only when repeating the same request is safe and may succeed.","example":false,"uniqueKey":"retryable.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Retryable","description":"True only when repeating the same request is safe and may succeed.","example":false,"uniqueKey":"retryable.oneOf.1","typeLabel":"null"}],"uniqueKey":"retryable","typeLabel":"boolean | null"},"retryAfterSeconds":{"oneOf":[{"type":"integer","title":"Retryafterseconds","description":"On 429 and 503 when `Retry-After` is set: the same value in seconds.","example":30,"uniqueKey":"retryAfterSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Retryafterseconds","description":"On 429 and 503 when `Retry-After` is set: the same value in seconds.","example":30,"uniqueKey":"retryAfterSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"retryAfterSeconds","typeLabel":"integer | null"},"actId":{"oneOf":[{"type":"string","title":"Actid","description":"Section routes only, on a miss: the identifier that matched nothing.","example":"USC_99_9999","uniqueKey":"actId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Actid","description":"Section routes only, on a miss: the identifier that matched nothing.","example":"USC_99_9999","uniqueKey":"actId.oneOf.1","typeLabel":"null"}],"uniqueKey":"actId","typeLabel":"string | null"},"reason":{"oneOf":[{"type":"string","title":"Reason","description":"Section routes only, on a miss: why nothing matched, for example `unsupported_jurisdiction` or `not_in_registry`. The set is open.","example":"not_in_registry","uniqueKey":"reason.oneOf.0","typeLabel":"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.","example":"not_in_registry","uniqueKey":"reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"reason","typeLabel":"string | null"},"didYouMean":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"didYouMean.oneOf.0.items.[INDEX]","typeLabel":"string"},"title":"Didyoumean","description":"Section routes only, on a miss: identifiers worth trying instead.","uniqueKey":"didYouMean.oneOf.0","typeLabel":"string[]"},{"type":"null","title":"Didyoumean","description":"Section routes only, on a miss: identifiers worth trying instead.","uniqueKey":"didYouMean.oneOf.1","typeLabel":"null"}],"uniqueKey":"didYouMean","typeLabel":"string[] | null"}},"type":"object","required":["detail"],"title":"ApiDetailError","description":"Error envelope the API actually returns.\n\nEvery error (400/401/402/403/404/405/422/429/5xx) carries a `detail`\nstring, e.g. `{\"detail\": \"Insufficient API credits.\"}`, on every mount of\nthe API. A 422 adds `errors`, one entry per rejected field. Some 404s add\nendpoint-specific diagnosis beside `detail` (the statutes section routes\nadd `actId`, `reason` and `didYouMean`); treat unknown keys as optional.","uniqueKey":"","typeLabel":"ApiDetailError · object"},"examples":{"Example":{"title":"Example","value":{"detail":"Invalid or expired API key"}}},"exampleType":"examples"}},"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-Request-ID":{"description":"Correlation id of this request. Quote it when contacting support.","schema":{"type":"string"}}},"exampleType":"examples"},"d9199265-80b0-4a28-8fae-e288c9e0920a":{"description":"Insufficient credits for this call. Nothing was done and nothing was charged. Read your balance, free, at `GET /credits/balance`.","content":{"application/json":{"example":{"detail":"Insufficient credits"},"schema":{"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."],"isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"errors":{"oneOf":[{"type":"array","items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | 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","corpusType"]],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Msg","description":"What is wrong with the value, in plain English.","examples":["Input should be 'USC', 'CFR' or 'STATE'"],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Type","description":"Machine-readable error kind, e.g. `missing`, `literal_error`, `json_invalid`.","examples":["literal_error"],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].type","typeLabel":"string"}},"type":"object","required":["loc","msg","type"],"title":"ApiFieldError","description":"One rejected field in a 422 response.","uniqueKey":"errors.oneOf.0.items.[INDEX]","typeLabel":"ApiFieldError · object"},"title":"Errors","description":"Present on 422 only: every field that failed validation.","uniqueKey":"errors.oneOf.0","typeLabel":"ApiFieldError · object[]"},{"type":"null","title":"Errors","description":"Present on 422 only: every field that failed validation.","uniqueKey":"errors.oneOf.1","typeLabel":"null"}],"uniqueKey":"errors","typeLabel":"ApiFieldError · object[] | null"},"code":{"oneOf":[{"type":"string","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, permission_denied, insufficient_scope, insufficient_credits, rate_limited, daily_cap_exceeded, validation_error, 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.","x-known-values":["authentication_required","invalid_api_key","api_key_expired","permission_denied","insufficient_scope","insufficient_credits","rate_limited","daily_cap_exceeded","validation_error","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"],"example":"insufficient_credits","uniqueKey":"code.oneOf.0","typeLabel":"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, permission_denied, insufficient_scope, insufficient_credits, rate_limited, daily_cap_exceeded, validation_error, 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.","x-known-values":["authentication_required","invalid_api_key","api_key_expired","permission_denied","insufficient_scope","insufficient_credits","rate_limited","daily_cap_exceeded","validation_error","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"],"example":"insufficient_credits","uniqueKey":"code.oneOf.1","typeLabel":"null"}],"uniqueKey":"code","typeLabel":"string | null"},"type":{"oneOf":[{"type":"string","title":"Type","description":"URL naming the error kind, `https://www.vaquill.ai/docs/errors/{code}`.","example":"https://www.vaquill.ai/docs/errors/insufficient_credits","uniqueKey":"type.oneOf.0","typeLabel":"string"},{"type":"null","title":"Type","description":"URL naming the error kind, `https://www.vaquill.ai/docs/errors/{code}`.","example":"https://www.vaquill.ai/docs/errors/insufficient_credits","uniqueKey":"type.oneOf.1","typeLabel":"null"}],"uniqueKey":"type","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","title":"Title","description":"Short fixed English title for `code`.","example":"Insufficient credits","uniqueKey":"title.oneOf.0","typeLabel":"string"},{"type":"null","title":"Title","description":"Short fixed English title for `code`.","example":"Insufficient credits","uniqueKey":"title.oneOf.1","typeLabel":"null"}],"uniqueKey":"title","typeLabel":"string | null"},"status":{"oneOf":[{"type":"integer","title":"Status","description":"Echo of the HTTP status code.","example":402,"uniqueKey":"status.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Status","description":"Echo of the HTTP status code.","example":402,"uniqueKey":"status.oneOf.1","typeLabel":"null"}],"uniqueKey":"status","typeLabel":"integer | null"},"requestId":{"oneOf":[{"type":"string","title":"Requestid","description":"Equals the `X-Request-ID` response header. Quote it to support.","example":"8d32789e-7b27-44f7-9523-424596e7a929","uniqueKey":"requestId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Requestid","description":"Equals the `X-Request-ID` response header. Quote it to support.","example":"8d32789e-7b27-44f7-9523-424596e7a929","uniqueKey":"requestId.oneOf.1","typeLabel":"null"}],"uniqueKey":"requestId","typeLabel":"string | null"},"retryable":{"oneOf":[{"type":"boolean","title":"Retryable","description":"True only when repeating the same request is safe and may succeed.","example":false,"uniqueKey":"retryable.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Retryable","description":"True only when repeating the same request is safe and may succeed.","example":false,"uniqueKey":"retryable.oneOf.1","typeLabel":"null"}],"uniqueKey":"retryable","typeLabel":"boolean | null"},"retryAfterSeconds":{"oneOf":[{"type":"integer","title":"Retryafterseconds","description":"On 429 and 503 when `Retry-After` is set: the same value in seconds.","example":30,"uniqueKey":"retryAfterSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Retryafterseconds","description":"On 429 and 503 when `Retry-After` is set: the same value in seconds.","example":30,"uniqueKey":"retryAfterSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"retryAfterSeconds","typeLabel":"integer | null"},"actId":{"oneOf":[{"type":"string","title":"Actid","description":"Section routes only, on a miss: the identifier that matched nothing.","example":"USC_99_9999","uniqueKey":"actId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Actid","description":"Section routes only, on a miss: the identifier that matched nothing.","example":"USC_99_9999","uniqueKey":"actId.oneOf.1","typeLabel":"null"}],"uniqueKey":"actId","typeLabel":"string | null"},"reason":{"oneOf":[{"type":"string","title":"Reason","description":"Section routes only, on a miss: why nothing matched, for example `unsupported_jurisdiction` or `not_in_registry`. The set is open.","example":"not_in_registry","uniqueKey":"reason.oneOf.0","typeLabel":"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.","example":"not_in_registry","uniqueKey":"reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"reason","typeLabel":"string | null"},"didYouMean":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"didYouMean.oneOf.0.items.[INDEX]","typeLabel":"string"},"title":"Didyoumean","description":"Section routes only, on a miss: identifiers worth trying instead.","uniqueKey":"didYouMean.oneOf.0","typeLabel":"string[]"},{"type":"null","title":"Didyoumean","description":"Section routes only, on a miss: identifiers worth trying instead.","uniqueKey":"didYouMean.oneOf.1","typeLabel":"null"}],"uniqueKey":"didYouMean","typeLabel":"string[] | null"}},"type":"object","required":["detail"],"title":"ApiDetailError","description":"Error envelope the API actually returns.\n\nEvery error (400/401/402/403/404/405/422/429/5xx) carries a `detail`\nstring, e.g. `{\"detail\": \"Insufficient API credits.\"}`, on every mount of\nthe API. A 422 adds `errors`, one entry per rejected field. Some 404s add\nendpoint-specific diagnosis beside `detail` (the statutes section routes\nadd `actId`, `reason` and `didYouMean`); treat unknown keys as optional.","uniqueKey":"","typeLabel":"ApiDetailError · object"},"examples":{"Example":{"title":"Example","value":{"detail":"Insufficient credits"}}},"exampleType":"examples"}},"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-Request-ID":{"description":"Correlation id of this request. Quote it when contacting support.","schema":{"type":"string"}}},"exampleType":"examples"},"a9da4012-8eab-484d-a9cf-a3950532ef7b":{"description":"The API key lacks the `research:read` scope. Not charged.","content":{"application/json":{"example":{"detail":"Insufficient permissions for this operation"},"schema":{"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."],"isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"errors":{"oneOf":[{"type":"array","items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | 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","corpusType"]],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Msg","description":"What is wrong with the value, in plain English.","examples":["Input should be 'USC', 'CFR' or 'STATE'"],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Type","description":"Machine-readable error kind, e.g. `missing`, `literal_error`, `json_invalid`.","examples":["literal_error"],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].type","typeLabel":"string"}},"type":"object","required":["loc","msg","type"],"title":"ApiFieldError","description":"One rejected field in a 422 response.","uniqueKey":"errors.oneOf.0.items.[INDEX]","typeLabel":"ApiFieldError · object"},"title":"Errors","description":"Present on 422 only: every field that failed validation.","uniqueKey":"errors.oneOf.0","typeLabel":"ApiFieldError · object[]"},{"type":"null","title":"Errors","description":"Present on 422 only: every field that failed validation.","uniqueKey":"errors.oneOf.1","typeLabel":"null"}],"uniqueKey":"errors","typeLabel":"ApiFieldError · object[] | null"},"code":{"oneOf":[{"type":"string","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, permission_denied, insufficient_scope, insufficient_credits, rate_limited, daily_cap_exceeded, validation_error, 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.","x-known-values":["authentication_required","invalid_api_key","api_key_expired","permission_denied","insufficient_scope","insufficient_credits","rate_limited","daily_cap_exceeded","validation_error","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"],"example":"insufficient_credits","uniqueKey":"code.oneOf.0","typeLabel":"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, permission_denied, insufficient_scope, insufficient_credits, rate_limited, daily_cap_exceeded, validation_error, 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.","x-known-values":["authentication_required","invalid_api_key","api_key_expired","permission_denied","insufficient_scope","insufficient_credits","rate_limited","daily_cap_exceeded","validation_error","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"],"example":"insufficient_credits","uniqueKey":"code.oneOf.1","typeLabel":"null"}],"uniqueKey":"code","typeLabel":"string | null"},"type":{"oneOf":[{"type":"string","title":"Type","description":"URL naming the error kind, `https://www.vaquill.ai/docs/errors/{code}`.","example":"https://www.vaquill.ai/docs/errors/insufficient_credits","uniqueKey":"type.oneOf.0","typeLabel":"string"},{"type":"null","title":"Type","description":"URL naming the error kind, `https://www.vaquill.ai/docs/errors/{code}`.","example":"https://www.vaquill.ai/docs/errors/insufficient_credits","uniqueKey":"type.oneOf.1","typeLabel":"null"}],"uniqueKey":"type","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","title":"Title","description":"Short fixed English title for `code`.","example":"Insufficient credits","uniqueKey":"title.oneOf.0","typeLabel":"string"},{"type":"null","title":"Title","description":"Short fixed English title for `code`.","example":"Insufficient credits","uniqueKey":"title.oneOf.1","typeLabel":"null"}],"uniqueKey":"title","typeLabel":"string | null"},"status":{"oneOf":[{"type":"integer","title":"Status","description":"Echo of the HTTP status code.","example":402,"uniqueKey":"status.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Status","description":"Echo of the HTTP status code.","example":402,"uniqueKey":"status.oneOf.1","typeLabel":"null"}],"uniqueKey":"status","typeLabel":"integer | null"},"requestId":{"oneOf":[{"type":"string","title":"Requestid","description":"Equals the `X-Request-ID` response header. Quote it to support.","example":"8d32789e-7b27-44f7-9523-424596e7a929","uniqueKey":"requestId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Requestid","description":"Equals the `X-Request-ID` response header. Quote it to support.","example":"8d32789e-7b27-44f7-9523-424596e7a929","uniqueKey":"requestId.oneOf.1","typeLabel":"null"}],"uniqueKey":"requestId","typeLabel":"string | null"},"retryable":{"oneOf":[{"type":"boolean","title":"Retryable","description":"True only when repeating the same request is safe and may succeed.","example":false,"uniqueKey":"retryable.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Retryable","description":"True only when repeating the same request is safe and may succeed.","example":false,"uniqueKey":"retryable.oneOf.1","typeLabel":"null"}],"uniqueKey":"retryable","typeLabel":"boolean | null"},"retryAfterSeconds":{"oneOf":[{"type":"integer","title":"Retryafterseconds","description":"On 429 and 503 when `Retry-After` is set: the same value in seconds.","example":30,"uniqueKey":"retryAfterSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Retryafterseconds","description":"On 429 and 503 when `Retry-After` is set: the same value in seconds.","example":30,"uniqueKey":"retryAfterSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"retryAfterSeconds","typeLabel":"integer | null"},"actId":{"oneOf":[{"type":"string","title":"Actid","description":"Section routes only, on a miss: the identifier that matched nothing.","example":"USC_99_9999","uniqueKey":"actId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Actid","description":"Section routes only, on a miss: the identifier that matched nothing.","example":"USC_99_9999","uniqueKey":"actId.oneOf.1","typeLabel":"null"}],"uniqueKey":"actId","typeLabel":"string | null"},"reason":{"oneOf":[{"type":"string","title":"Reason","description":"Section routes only, on a miss: why nothing matched, for example `unsupported_jurisdiction` or `not_in_registry`. The set is open.","example":"not_in_registry","uniqueKey":"reason.oneOf.0","typeLabel":"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.","example":"not_in_registry","uniqueKey":"reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"reason","typeLabel":"string | null"},"didYouMean":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"didYouMean.oneOf.0.items.[INDEX]","typeLabel":"string"},"title":"Didyoumean","description":"Section routes only, on a miss: identifiers worth trying instead.","uniqueKey":"didYouMean.oneOf.0","typeLabel":"string[]"},{"type":"null","title":"Didyoumean","description":"Section routes only, on a miss: identifiers worth trying instead.","uniqueKey":"didYouMean.oneOf.1","typeLabel":"null"}],"uniqueKey":"didYouMean","typeLabel":"string[] | null"}},"type":"object","required":["detail"],"title":"ApiDetailError","description":"Error envelope the API actually returns.\n\nEvery error (400/401/402/403/404/405/422/429/5xx) carries a `detail`\nstring, e.g. `{\"detail\": \"Insufficient API credits.\"}`, on every mount of\nthe API. A 422 adds `errors`, one entry per rejected field. Some 404s add\nendpoint-specific diagnosis beside `detail` (the statutes section routes\nadd `actId`, `reason` and `didYouMean`); treat unknown keys as optional.","uniqueKey":"","typeLabel":"ApiDetailError · object"},"examples":{"Example":{"title":"Example","value":{"detail":"Insufficient permissions for this operation"}}},"exampleType":"examples"}},"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-Request-ID":{"description":"Correlation id of this request. Quote it when contacting support.","schema":{"type":"string"}}},"exampleType":"examples"},"4f0552e8-de1e-4ad9-a45f-4da282750b8c":{"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 too large to replay; nothing is charged again, so check the credit balance instead of retrying.","content":{"application/json":{"schema":{"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."],"isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"errors":{"oneOf":[{"type":"array","items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | 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","corpusType"]],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Msg","description":"What is wrong with the value, in plain English.","examples":["Input should be 'USC', 'CFR' or 'STATE'"],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Type","description":"Machine-readable error kind, e.g. `missing`, `literal_error`, `json_invalid`.","examples":["literal_error"],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].type","typeLabel":"string"}},"type":"object","required":["loc","msg","type"],"title":"ApiFieldError","description":"One rejected field in a 422 response.","uniqueKey":"errors.oneOf.0.items.[INDEX]","typeLabel":"ApiFieldError · object"},"title":"Errors","description":"Present on 422 only: every field that failed validation.","uniqueKey":"errors.oneOf.0","typeLabel":"ApiFieldError · object[]"},{"type":"null","title":"Errors","description":"Present on 422 only: every field that failed validation.","uniqueKey":"errors.oneOf.1","typeLabel":"null"}],"uniqueKey":"errors","typeLabel":"ApiFieldError · object[] | null"},"code":{"oneOf":[{"type":"string","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, permission_denied, insufficient_scope, insufficient_credits, rate_limited, daily_cap_exceeded, validation_error, 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.","x-known-values":["authentication_required","invalid_api_key","api_key_expired","permission_denied","insufficient_scope","insufficient_credits","rate_limited","daily_cap_exceeded","validation_error","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"],"example":"insufficient_credits","uniqueKey":"code.oneOf.0","typeLabel":"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, permission_denied, insufficient_scope, insufficient_credits, rate_limited, daily_cap_exceeded, validation_error, 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.","x-known-values":["authentication_required","invalid_api_key","api_key_expired","permission_denied","insufficient_scope","insufficient_credits","rate_limited","daily_cap_exceeded","validation_error","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"],"example":"insufficient_credits","uniqueKey":"code.oneOf.1","typeLabel":"null"}],"uniqueKey":"code","typeLabel":"string | null"},"type":{"oneOf":[{"type":"string","title":"Type","description":"URL naming the error kind, `https://www.vaquill.ai/docs/errors/{code}`.","example":"https://www.vaquill.ai/docs/errors/insufficient_credits","uniqueKey":"type.oneOf.0","typeLabel":"string"},{"type":"null","title":"Type","description":"URL naming the error kind, `https://www.vaquill.ai/docs/errors/{code}`.","example":"https://www.vaquill.ai/docs/errors/insufficient_credits","uniqueKey":"type.oneOf.1","typeLabel":"null"}],"uniqueKey":"type","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","title":"Title","description":"Short fixed English title for `code`.","example":"Insufficient credits","uniqueKey":"title.oneOf.0","typeLabel":"string"},{"type":"null","title":"Title","description":"Short fixed English title for `code`.","example":"Insufficient credits","uniqueKey":"title.oneOf.1","typeLabel":"null"}],"uniqueKey":"title","typeLabel":"string | null"},"status":{"oneOf":[{"type":"integer","title":"Status","description":"Echo of the HTTP status code.","example":402,"uniqueKey":"status.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Status","description":"Echo of the HTTP status code.","example":402,"uniqueKey":"status.oneOf.1","typeLabel":"null"}],"uniqueKey":"status","typeLabel":"integer | null"},"requestId":{"oneOf":[{"type":"string","title":"Requestid","description":"Equals the `X-Request-ID` response header. Quote it to support.","example":"8d32789e-7b27-44f7-9523-424596e7a929","uniqueKey":"requestId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Requestid","description":"Equals the `X-Request-ID` response header. Quote it to support.","example":"8d32789e-7b27-44f7-9523-424596e7a929","uniqueKey":"requestId.oneOf.1","typeLabel":"null"}],"uniqueKey":"requestId","typeLabel":"string | null"},"retryable":{"oneOf":[{"type":"boolean","title":"Retryable","description":"True only when repeating the same request is safe and may succeed.","example":false,"uniqueKey":"retryable.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Retryable","description":"True only when repeating the same request is safe and may succeed.","example":false,"uniqueKey":"retryable.oneOf.1","typeLabel":"null"}],"uniqueKey":"retryable","typeLabel":"boolean | null"},"retryAfterSeconds":{"oneOf":[{"type":"integer","title":"Retryafterseconds","description":"On 429 and 503 when `Retry-After` is set: the same value in seconds.","example":30,"uniqueKey":"retryAfterSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Retryafterseconds","description":"On 429 and 503 when `Retry-After` is set: the same value in seconds.","example":30,"uniqueKey":"retryAfterSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"retryAfterSeconds","typeLabel":"integer | null"},"actId":{"oneOf":[{"type":"string","title":"Actid","description":"Section routes only, on a miss: the identifier that matched nothing.","example":"USC_99_9999","uniqueKey":"actId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Actid","description":"Section routes only, on a miss: the identifier that matched nothing.","example":"USC_99_9999","uniqueKey":"actId.oneOf.1","typeLabel":"null"}],"uniqueKey":"actId","typeLabel":"string | null"},"reason":{"oneOf":[{"type":"string","title":"Reason","description":"Section routes only, on a miss: why nothing matched, for example `unsupported_jurisdiction` or `not_in_registry`. The set is open.","example":"not_in_registry","uniqueKey":"reason.oneOf.0","typeLabel":"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.","example":"not_in_registry","uniqueKey":"reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"reason","typeLabel":"string | null"},"didYouMean":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"didYouMean.oneOf.0.items.[INDEX]","typeLabel":"string"},"title":"Didyoumean","description":"Section routes only, on a miss: identifiers worth trying instead.","uniqueKey":"didYouMean.oneOf.0","typeLabel":"string[]"},{"type":"null","title":"Didyoumean","description":"Section routes only, on a miss: identifiers worth trying instead.","uniqueKey":"didYouMean.oneOf.1","typeLabel":"null"}],"uniqueKey":"didYouMean","typeLabel":"string[] | null"}},"type":"object","required":["detail"],"title":"ApiDetailError","description":"Error envelope the API actually returns.\n\nEvery error (400/401/402/403/404/405/422/429/5xx) carries a `detail`\nstring, e.g. `{\"detail\": \"Insufficient API credits.\"}`, on every mount of\nthe API. A 422 adds `errors`, one entry per rejected field. Some 404s add\nendpoint-specific diagnosis beside `detail` (the statutes section routes\nadd `actId`, `reason` and `didYouMean`); treat unknown keys as optional.","uniqueKey":"","typeLabel":"ApiDetailError · object"},"examples":{"Example":{"title":"Example","value":{"detail":"Insufficient API credits.","errors":[{"loc":["body","corpusType"],"msg":"Input should be 'USC', 'CFR' or 'STATE'","type":"literal_error"}],"code":"insufficient_credits","type":"https://www.vaquill.ai/docs/errors/insufficient_credits","title":"Insufficient credits","status":402,"requestId":"8d32789e-7b27-44f7-9523-424596e7a929","retryable":false,"retryAfterSeconds":30,"actId":"USC_99_9999","reason":"not_in_registry","didYouMean":["\u003cstring>"]}}},"exampleType":"generated"}},"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-Request-ID":{"description":"Correlation id of this request. Quote it when contacting support.","schema":{"type":"string"}}},"exampleType":"generated"},"ef61ce2f-98ed-4198-bdc5-ef1a2b98707c":{"description":"A parameter failed validation: `query` shorter than 2 characters or with control characters, `jurisdiction` not a state, an unknown `series` or `instrumentType`, a date that is not a real calendar date, `approvedTo` before `approvedFrom`, or `offset` past the 60 best matches. Never charged. `errors[].loc` names the parameter exactly as you send it. `idempotency_key_reused`: the `Idempotency-Key` was already used with a different request.","content":{"application/json":{"examples":{"queryTooShort":{"title":"queryTooShort","value":{"detail":"Invalid request parameters","errors":[{"loc":["body","query"],"msg":"String should have at least 2 characters","type":"string_too_short"}]}},"offsetTooDeep":{"title":"offsetTooDeep","value":{"detail":"Invalid request parameters","errors":[{"loc":["body","offset"],"msg":"Input should be less than or equal to 59","type":"less_than_equal"}]}}},"schema":{"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."],"isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"errors":{"oneOf":[{"type":"array","items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | 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","corpusType"]],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Msg","description":"What is wrong with the value, in plain English.","examples":["Input should be 'USC', 'CFR' or 'STATE'"],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Type","description":"Machine-readable error kind, e.g. `missing`, `literal_error`, `json_invalid`.","examples":["literal_error"],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].type","typeLabel":"string"}},"type":"object","required":["loc","msg","type"],"title":"ApiFieldError","description":"One rejected field in a 422 response.","uniqueKey":"errors.oneOf.0.items.[INDEX]","typeLabel":"ApiFieldError · object"},"title":"Errors","description":"Present on 422 only: every field that failed validation.","uniqueKey":"errors.oneOf.0","typeLabel":"ApiFieldError · object[]"},{"type":"null","title":"Errors","description":"Present on 422 only: every field that failed validation.","uniqueKey":"errors.oneOf.1","typeLabel":"null"}],"uniqueKey":"errors","typeLabel":"ApiFieldError · object[] | null"},"code":{"oneOf":[{"type":"string","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, permission_denied, insufficient_scope, insufficient_credits, rate_limited, daily_cap_exceeded, validation_error, 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.","x-known-values":["authentication_required","invalid_api_key","api_key_expired","permission_denied","insufficient_scope","insufficient_credits","rate_limited","daily_cap_exceeded","validation_error","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"],"example":"insufficient_credits","uniqueKey":"code.oneOf.0","typeLabel":"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, permission_denied, insufficient_scope, insufficient_credits, rate_limited, daily_cap_exceeded, validation_error, 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.","x-known-values":["authentication_required","invalid_api_key","api_key_expired","permission_denied","insufficient_scope","insufficient_credits","rate_limited","daily_cap_exceeded","validation_error","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"],"example":"insufficient_credits","uniqueKey":"code.oneOf.1","typeLabel":"null"}],"uniqueKey":"code","typeLabel":"string | null"},"type":{"oneOf":[{"type":"string","title":"Type","description":"URL naming the error kind, `https://www.vaquill.ai/docs/errors/{code}`.","example":"https://www.vaquill.ai/docs/errors/insufficient_credits","uniqueKey":"type.oneOf.0","typeLabel":"string"},{"type":"null","title":"Type","description":"URL naming the error kind, `https://www.vaquill.ai/docs/errors/{code}`.","example":"https://www.vaquill.ai/docs/errors/insufficient_credits","uniqueKey":"type.oneOf.1","typeLabel":"null"}],"uniqueKey":"type","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","title":"Title","description":"Short fixed English title for `code`.","example":"Insufficient credits","uniqueKey":"title.oneOf.0","typeLabel":"string"},{"type":"null","title":"Title","description":"Short fixed English title for `code`.","example":"Insufficient credits","uniqueKey":"title.oneOf.1","typeLabel":"null"}],"uniqueKey":"title","typeLabel":"string | null"},"status":{"oneOf":[{"type":"integer","title":"Status","description":"Echo of the HTTP status code.","example":402,"uniqueKey":"status.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Status","description":"Echo of the HTTP status code.","example":402,"uniqueKey":"status.oneOf.1","typeLabel":"null"}],"uniqueKey":"status","typeLabel":"integer | null"},"requestId":{"oneOf":[{"type":"string","title":"Requestid","description":"Equals the `X-Request-ID` response header. Quote it to support.","example":"8d32789e-7b27-44f7-9523-424596e7a929","uniqueKey":"requestId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Requestid","description":"Equals the `X-Request-ID` response header. Quote it to support.","example":"8d32789e-7b27-44f7-9523-424596e7a929","uniqueKey":"requestId.oneOf.1","typeLabel":"null"}],"uniqueKey":"requestId","typeLabel":"string | null"},"retryable":{"oneOf":[{"type":"boolean","title":"Retryable","description":"True only when repeating the same request is safe and may succeed.","example":false,"uniqueKey":"retryable.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Retryable","description":"True only when repeating the same request is safe and may succeed.","example":false,"uniqueKey":"retryable.oneOf.1","typeLabel":"null"}],"uniqueKey":"retryable","typeLabel":"boolean | null"},"retryAfterSeconds":{"oneOf":[{"type":"integer","title":"Retryafterseconds","description":"On 429 and 503 when `Retry-After` is set: the same value in seconds.","example":30,"uniqueKey":"retryAfterSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Retryafterseconds","description":"On 429 and 503 when `Retry-After` is set: the same value in seconds.","example":30,"uniqueKey":"retryAfterSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"retryAfterSeconds","typeLabel":"integer | null"},"actId":{"oneOf":[{"type":"string","title":"Actid","description":"Section routes only, on a miss: the identifier that matched nothing.","example":"USC_99_9999","uniqueKey":"actId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Actid","description":"Section routes only, on a miss: the identifier that matched nothing.","example":"USC_99_9999","uniqueKey":"actId.oneOf.1","typeLabel":"null"}],"uniqueKey":"actId","typeLabel":"string | null"},"reason":{"oneOf":[{"type":"string","title":"Reason","description":"Section routes only, on a miss: why nothing matched, for example `unsupported_jurisdiction` or `not_in_registry`. The set is open.","example":"not_in_registry","uniqueKey":"reason.oneOf.0","typeLabel":"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.","example":"not_in_registry","uniqueKey":"reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"reason","typeLabel":"string | null"},"didYouMean":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"didYouMean.oneOf.0.items.[INDEX]","typeLabel":"string"},"title":"Didyoumean","description":"Section routes only, on a miss: identifiers worth trying instead.","uniqueKey":"didYouMean.oneOf.0","typeLabel":"string[]"},{"type":"null","title":"Didyoumean","description":"Section routes only, on a miss: identifiers worth trying instead.","uniqueKey":"didYouMean.oneOf.1","typeLabel":"null"}],"uniqueKey":"didYouMean","typeLabel":"string[] | null"}},"type":"object","required":["detail"],"title":"ApiDetailError","description":"Error envelope the API actually returns.\n\nEvery error (400/401/402/403/404/405/422/429/5xx) carries a `detail`\nstring, e.g. `{\"detail\": \"Insufficient API credits.\"}`, on every mount of\nthe API. A 422 adds `errors`, one entry per rejected field. Some 404s add\nendpoint-specific diagnosis beside `detail` (the statutes section routes\nadd `actId`, `reason` and `didYouMean`); treat unknown keys as optional.","uniqueKey":"","typeLabel":"ApiDetailError · object"},"exampleType":"examples"}},"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-Request-ID":{"description":"Correlation id of this request. Quote it when contacting support.","schema":{"type":"string"}}},"exampleType":"examples"},"37fdfcfa-fc59-43bb-bfb2-52e3812b8f99":{"description":"Rate limit exceeded for your key. Not charged. Wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"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-Request-ID":{"description":"Correlation id of this request. Quote it when contacting support.","schema":{"type":"string"}}},"content":{"application/json":{"example":{"detail":"Rate limit exceeded. Try again in 12 seconds."},"schema":{"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."],"isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"errors":{"oneOf":[{"type":"array","items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | 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","corpusType"]],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Msg","description":"What is wrong with the value, in plain English.","examples":["Input should be 'USC', 'CFR' or 'STATE'"],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Type","description":"Machine-readable error kind, e.g. `missing`, `literal_error`, `json_invalid`.","examples":["literal_error"],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].type","typeLabel":"string"}},"type":"object","required":["loc","msg","type"],"title":"ApiFieldError","description":"One rejected field in a 422 response.","uniqueKey":"errors.oneOf.0.items.[INDEX]","typeLabel":"ApiFieldError · object"},"title":"Errors","description":"Present on 422 only: every field that failed validation.","uniqueKey":"errors.oneOf.0","typeLabel":"ApiFieldError · object[]"},{"type":"null","title":"Errors","description":"Present on 422 only: every field that failed validation.","uniqueKey":"errors.oneOf.1","typeLabel":"null"}],"uniqueKey":"errors","typeLabel":"ApiFieldError · object[] | null"},"code":{"oneOf":[{"type":"string","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, permission_denied, insufficient_scope, insufficient_credits, rate_limited, daily_cap_exceeded, validation_error, 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.","x-known-values":["authentication_required","invalid_api_key","api_key_expired","permission_denied","insufficient_scope","insufficient_credits","rate_limited","daily_cap_exceeded","validation_error","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"],"example":"insufficient_credits","uniqueKey":"code.oneOf.0","typeLabel":"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, permission_denied, insufficient_scope, insufficient_credits, rate_limited, daily_cap_exceeded, validation_error, 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.","x-known-values":["authentication_required","invalid_api_key","api_key_expired","permission_denied","insufficient_scope","insufficient_credits","rate_limited","daily_cap_exceeded","validation_error","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"],"example":"insufficient_credits","uniqueKey":"code.oneOf.1","typeLabel":"null"}],"uniqueKey":"code","typeLabel":"string | null"},"type":{"oneOf":[{"type":"string","title":"Type","description":"URL naming the error kind, `https://www.vaquill.ai/docs/errors/{code}`.","example":"https://www.vaquill.ai/docs/errors/insufficient_credits","uniqueKey":"type.oneOf.0","typeLabel":"string"},{"type":"null","title":"Type","description":"URL naming the error kind, `https://www.vaquill.ai/docs/errors/{code}`.","example":"https://www.vaquill.ai/docs/errors/insufficient_credits","uniqueKey":"type.oneOf.1","typeLabel":"null"}],"uniqueKey":"type","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","title":"Title","description":"Short fixed English title for `code`.","example":"Insufficient credits","uniqueKey":"title.oneOf.0","typeLabel":"string"},{"type":"null","title":"Title","description":"Short fixed English title for `code`.","example":"Insufficient credits","uniqueKey":"title.oneOf.1","typeLabel":"null"}],"uniqueKey":"title","typeLabel":"string | null"},"status":{"oneOf":[{"type":"integer","title":"Status","description":"Echo of the HTTP status code.","example":402,"uniqueKey":"status.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Status","description":"Echo of the HTTP status code.","example":402,"uniqueKey":"status.oneOf.1","typeLabel":"null"}],"uniqueKey":"status","typeLabel":"integer | null"},"requestId":{"oneOf":[{"type":"string","title":"Requestid","description":"Equals the `X-Request-ID` response header. Quote it to support.","example":"8d32789e-7b27-44f7-9523-424596e7a929","uniqueKey":"requestId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Requestid","description":"Equals the `X-Request-ID` response header. Quote it to support.","example":"8d32789e-7b27-44f7-9523-424596e7a929","uniqueKey":"requestId.oneOf.1","typeLabel":"null"}],"uniqueKey":"requestId","typeLabel":"string | null"},"retryable":{"oneOf":[{"type":"boolean","title":"Retryable","description":"True only when repeating the same request is safe and may succeed.","example":false,"uniqueKey":"retryable.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Retryable","description":"True only when repeating the same request is safe and may succeed.","example":false,"uniqueKey":"retryable.oneOf.1","typeLabel":"null"}],"uniqueKey":"retryable","typeLabel":"boolean | null"},"retryAfterSeconds":{"oneOf":[{"type":"integer","title":"Retryafterseconds","description":"On 429 and 503 when `Retry-After` is set: the same value in seconds.","example":30,"uniqueKey":"retryAfterSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Retryafterseconds","description":"On 429 and 503 when `Retry-After` is set: the same value in seconds.","example":30,"uniqueKey":"retryAfterSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"retryAfterSeconds","typeLabel":"integer | null"},"actId":{"oneOf":[{"type":"string","title":"Actid","description":"Section routes only, on a miss: the identifier that matched nothing.","example":"USC_99_9999","uniqueKey":"actId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Actid","description":"Section routes only, on a miss: the identifier that matched nothing.","example":"USC_99_9999","uniqueKey":"actId.oneOf.1","typeLabel":"null"}],"uniqueKey":"actId","typeLabel":"string | null"},"reason":{"oneOf":[{"type":"string","title":"Reason","description":"Section routes only, on a miss: why nothing matched, for example `unsupported_jurisdiction` or `not_in_registry`. The set is open.","example":"not_in_registry","uniqueKey":"reason.oneOf.0","typeLabel":"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.","example":"not_in_registry","uniqueKey":"reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"reason","typeLabel":"string | null"},"didYouMean":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"didYouMean.oneOf.0.items.[INDEX]","typeLabel":"string"},"title":"Didyoumean","description":"Section routes only, on a miss: identifiers worth trying instead.","uniqueKey":"didYouMean.oneOf.0","typeLabel":"string[]"},{"type":"null","title":"Didyoumean","description":"Section routes only, on a miss: identifiers worth trying instead.","uniqueKey":"didYouMean.oneOf.1","typeLabel":"null"}],"uniqueKey":"didYouMean","typeLabel":"string[] | null"}},"type":"object","required":["detail"],"title":"ApiDetailError","description":"Error envelope the API actually returns.\n\nEvery error (400/401/402/403/404/405/422/429/5xx) carries a `detail`\nstring, e.g. `{\"detail\": \"Insufficient API credits.\"}`, on every mount of\nthe API. A 422 adds `errors`, one entry per rejected field. Some 404s add\nendpoint-specific diagnosis beside `detail` (the statutes section routes\nadd `actId`, `reason` and `didYouMean`); treat unknown keys as optional.","uniqueKey":"","typeLabel":"ApiDetailError · object"},"examples":{"Example":{"title":"Example","value":{"detail":"Rate limit exceeded. Try again in 12 seconds."}}},"exampleType":"examples"}},"exampleType":"examples"},"996819b5-0036-4786-a8eb-c64a15763cfb":{"description":"An unexpected failure on our side. The charge is refunded.","content":{"application/json":{"example":{"detail":"Internal server error"},"schema":{"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."],"isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"errors":{"oneOf":[{"type":"array","items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | 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","corpusType"]],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Msg","description":"What is wrong with the value, in plain English.","examples":["Input should be 'USC', 'CFR' or 'STATE'"],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Type","description":"Machine-readable error kind, e.g. `missing`, `literal_error`, `json_invalid`.","examples":["literal_error"],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].type","typeLabel":"string"}},"type":"object","required":["loc","msg","type"],"title":"ApiFieldError","description":"One rejected field in a 422 response.","uniqueKey":"errors.oneOf.0.items.[INDEX]","typeLabel":"ApiFieldError · object"},"title":"Errors","description":"Present on 422 only: every field that failed validation.","uniqueKey":"errors.oneOf.0","typeLabel":"ApiFieldError · object[]"},{"type":"null","title":"Errors","description":"Present on 422 only: every field that failed validation.","uniqueKey":"errors.oneOf.1","typeLabel":"null"}],"uniqueKey":"errors","typeLabel":"ApiFieldError · object[] | null"},"code":{"oneOf":[{"type":"string","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, permission_denied, insufficient_scope, insufficient_credits, rate_limited, daily_cap_exceeded, validation_error, 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.","x-known-values":["authentication_required","invalid_api_key","api_key_expired","permission_denied","insufficient_scope","insufficient_credits","rate_limited","daily_cap_exceeded","validation_error","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"],"example":"insufficient_credits","uniqueKey":"code.oneOf.0","typeLabel":"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, permission_denied, insufficient_scope, insufficient_credits, rate_limited, daily_cap_exceeded, validation_error, 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.","x-known-values":["authentication_required","invalid_api_key","api_key_expired","permission_denied","insufficient_scope","insufficient_credits","rate_limited","daily_cap_exceeded","validation_error","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"],"example":"insufficient_credits","uniqueKey":"code.oneOf.1","typeLabel":"null"}],"uniqueKey":"code","typeLabel":"string | null"},"type":{"oneOf":[{"type":"string","title":"Type","description":"URL naming the error kind, `https://www.vaquill.ai/docs/errors/{code}`.","example":"https://www.vaquill.ai/docs/errors/insufficient_credits","uniqueKey":"type.oneOf.0","typeLabel":"string"},{"type":"null","title":"Type","description":"URL naming the error kind, `https://www.vaquill.ai/docs/errors/{code}`.","example":"https://www.vaquill.ai/docs/errors/insufficient_credits","uniqueKey":"type.oneOf.1","typeLabel":"null"}],"uniqueKey":"type","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","title":"Title","description":"Short fixed English title for `code`.","example":"Insufficient credits","uniqueKey":"title.oneOf.0","typeLabel":"string"},{"type":"null","title":"Title","description":"Short fixed English title for `code`.","example":"Insufficient credits","uniqueKey":"title.oneOf.1","typeLabel":"null"}],"uniqueKey":"title","typeLabel":"string | null"},"status":{"oneOf":[{"type":"integer","title":"Status","description":"Echo of the HTTP status code.","example":402,"uniqueKey":"status.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Status","description":"Echo of the HTTP status code.","example":402,"uniqueKey":"status.oneOf.1","typeLabel":"null"}],"uniqueKey":"status","typeLabel":"integer | null"},"requestId":{"oneOf":[{"type":"string","title":"Requestid","description":"Equals the `X-Request-ID` response header. Quote it to support.","example":"8d32789e-7b27-44f7-9523-424596e7a929","uniqueKey":"requestId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Requestid","description":"Equals the `X-Request-ID` response header. Quote it to support.","example":"8d32789e-7b27-44f7-9523-424596e7a929","uniqueKey":"requestId.oneOf.1","typeLabel":"null"}],"uniqueKey":"requestId","typeLabel":"string | null"},"retryable":{"oneOf":[{"type":"boolean","title":"Retryable","description":"True only when repeating the same request is safe and may succeed.","example":false,"uniqueKey":"retryable.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Retryable","description":"True only when repeating the same request is safe and may succeed.","example":false,"uniqueKey":"retryable.oneOf.1","typeLabel":"null"}],"uniqueKey":"retryable","typeLabel":"boolean | null"},"retryAfterSeconds":{"oneOf":[{"type":"integer","title":"Retryafterseconds","description":"On 429 and 503 when `Retry-After` is set: the same value in seconds.","example":30,"uniqueKey":"retryAfterSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Retryafterseconds","description":"On 429 and 503 when `Retry-After` is set: the same value in seconds.","example":30,"uniqueKey":"retryAfterSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"retryAfterSeconds","typeLabel":"integer | null"},"actId":{"oneOf":[{"type":"string","title":"Actid","description":"Section routes only, on a miss: the identifier that matched nothing.","example":"USC_99_9999","uniqueKey":"actId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Actid","description":"Section routes only, on a miss: the identifier that matched nothing.","example":"USC_99_9999","uniqueKey":"actId.oneOf.1","typeLabel":"null"}],"uniqueKey":"actId","typeLabel":"string | null"},"reason":{"oneOf":[{"type":"string","title":"Reason","description":"Section routes only, on a miss: why nothing matched, for example `unsupported_jurisdiction` or `not_in_registry`. The set is open.","example":"not_in_registry","uniqueKey":"reason.oneOf.0","typeLabel":"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.","example":"not_in_registry","uniqueKey":"reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"reason","typeLabel":"string | null"},"didYouMean":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"didYouMean.oneOf.0.items.[INDEX]","typeLabel":"string"},"title":"Didyoumean","description":"Section routes only, on a miss: identifiers worth trying instead.","uniqueKey":"didYouMean.oneOf.0","typeLabel":"string[]"},{"type":"null","title":"Didyoumean","description":"Section routes only, on a miss: identifiers worth trying instead.","uniqueKey":"didYouMean.oneOf.1","typeLabel":"null"}],"uniqueKey":"didYouMean","typeLabel":"string[] | null"}},"type":"object","required":["detail"],"title":"ApiDetailError","description":"Error envelope the API actually returns.\n\nEvery error (400/401/402/403/404/405/422/429/5xx) carries a `detail`\nstring, e.g. `{\"detail\": \"Insufficient API credits.\"}`, on every mount of\nthe API. A 422 adds `errors`, one entry per rejected field. Some 404s add\nendpoint-specific diagnosis beside `detail` (the statutes section routes\nadd `actId`, `reason` and `didYouMean`); treat unknown keys as optional.","uniqueKey":"","typeLabel":"ApiDetailError · object"},"examples":{"Example":{"title":"Example","value":{"detail":"Internal server error"}}},"exampleType":"examples"}},"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-Request-ID":{"description":"Correlation id of this request. Quote it when contacting support.","schema":{"type":"string"}}},"exampleType":"examples"},"c68c1d1c-6b1e-4711-a685-85ce158a1c93":{"description":"The session-laws database is temporarily unavailable. The charge is refunded; retry.","content":{"application/json":{"example":{"detail":"The US session-laws database is temporarily unavailable. Please retry."},"schema":{"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."],"isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"errors":{"oneOf":[{"type":"array","items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | 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","corpusType"]],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Msg","description":"What is wrong with the value, in plain English.","examples":["Input should be 'USC', 'CFR' or 'STATE'"],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Type","description":"Machine-readable error kind, e.g. `missing`, `literal_error`, `json_invalid`.","examples":["literal_error"],"isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].type","typeLabel":"string"}},"type":"object","required":["loc","msg","type"],"title":"ApiFieldError","description":"One rejected field in a 422 response.","uniqueKey":"errors.oneOf.0.items.[INDEX]","typeLabel":"ApiFieldError · object"},"title":"Errors","description":"Present on 422 only: every field that failed validation.","uniqueKey":"errors.oneOf.0","typeLabel":"ApiFieldError · object[]"},{"type":"null","title":"Errors","description":"Present on 422 only: every field that failed validation.","uniqueKey":"errors.oneOf.1","typeLabel":"null"}],"uniqueKey":"errors","typeLabel":"ApiFieldError · object[] | null"},"code":{"oneOf":[{"type":"string","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, permission_denied, insufficient_scope, insufficient_credits, rate_limited, daily_cap_exceeded, validation_error, 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.","x-known-values":["authentication_required","invalid_api_key","api_key_expired","permission_denied","insufficient_scope","insufficient_credits","rate_limited","daily_cap_exceeded","validation_error","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"],"example":"insufficient_credits","uniqueKey":"code.oneOf.0","typeLabel":"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, permission_denied, insufficient_scope, insufficient_credits, rate_limited, daily_cap_exceeded, validation_error, 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.","x-known-values":["authentication_required","invalid_api_key","api_key_expired","permission_denied","insufficient_scope","insufficient_credits","rate_limited","daily_cap_exceeded","validation_error","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"],"example":"insufficient_credits","uniqueKey":"code.oneOf.1","typeLabel":"null"}],"uniqueKey":"code","typeLabel":"string | null"},"type":{"oneOf":[{"type":"string","title":"Type","description":"URL naming the error kind, `https://www.vaquill.ai/docs/errors/{code}`.","example":"https://www.vaquill.ai/docs/errors/insufficient_credits","uniqueKey":"type.oneOf.0","typeLabel":"string"},{"type":"null","title":"Type","description":"URL naming the error kind, `https://www.vaquill.ai/docs/errors/{code}`.","example":"https://www.vaquill.ai/docs/errors/insufficient_credits","uniqueKey":"type.oneOf.1","typeLabel":"null"}],"uniqueKey":"type","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","title":"Title","description":"Short fixed English title for `code`.","example":"Insufficient credits","uniqueKey":"title.oneOf.0","typeLabel":"string"},{"type":"null","title":"Title","description":"Short fixed English title for `code`.","example":"Insufficient credits","uniqueKey":"title.oneOf.1","typeLabel":"null"}],"uniqueKey":"title","typeLabel":"string | null"},"status":{"oneOf":[{"type":"integer","title":"Status","description":"Echo of the HTTP status code.","example":402,"uniqueKey":"status.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Status","description":"Echo of the HTTP status code.","example":402,"uniqueKey":"status.oneOf.1","typeLabel":"null"}],"uniqueKey":"status","typeLabel":"integer | null"},"requestId":{"oneOf":[{"type":"string","title":"Requestid","description":"Equals the `X-Request-ID` response header. Quote it to support.","example":"8d32789e-7b27-44f7-9523-424596e7a929","uniqueKey":"requestId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Requestid","description":"Equals the `X-Request-ID` response header. Quote it to support.","example":"8d32789e-7b27-44f7-9523-424596e7a929","uniqueKey":"requestId.oneOf.1","typeLabel":"null"}],"uniqueKey":"requestId","typeLabel":"string | null"},"retryable":{"oneOf":[{"type":"boolean","title":"Retryable","description":"True only when repeating the same request is safe and may succeed.","example":false,"uniqueKey":"retryable.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Retryable","description":"True only when repeating the same request is safe and may succeed.","example":false,"uniqueKey":"retryable.oneOf.1","typeLabel":"null"}],"uniqueKey":"retryable","typeLabel":"boolean | null"},"retryAfterSeconds":{"oneOf":[{"type":"integer","title":"Retryafterseconds","description":"On 429 and 503 when `Retry-After` is set: the same value in seconds.","example":30,"uniqueKey":"retryAfterSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Retryafterseconds","description":"On 429 and 503 when `Retry-After` is set: the same value in seconds.","example":30,"uniqueKey":"retryAfterSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"retryAfterSeconds","typeLabel":"integer | null"},"actId":{"oneOf":[{"type":"string","title":"Actid","description":"Section routes only, on a miss: the identifier that matched nothing.","example":"USC_99_9999","uniqueKey":"actId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Actid","description":"Section routes only, on a miss: the identifier that matched nothing.","example":"USC_99_9999","uniqueKey":"actId.oneOf.1","typeLabel":"null"}],"uniqueKey":"actId","typeLabel":"string | null"},"reason":{"oneOf":[{"type":"string","title":"Reason","description":"Section routes only, on a miss: why nothing matched, for example `unsupported_jurisdiction` or `not_in_registry`. The set is open.","example":"not_in_registry","uniqueKey":"reason.oneOf.0","typeLabel":"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.","example":"not_in_registry","uniqueKey":"reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"reason","typeLabel":"string | null"},"didYouMean":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"didYouMean.oneOf.0.items.[INDEX]","typeLabel":"string"},"title":"Didyoumean","description":"Section routes only, on a miss: identifiers worth trying instead.","uniqueKey":"didYouMean.oneOf.0","typeLabel":"string[]"},{"type":"null","title":"Didyoumean","description":"Section routes only, on a miss: identifiers worth trying instead.","uniqueKey":"didYouMean.oneOf.1","typeLabel":"null"}],"uniqueKey":"didYouMean","typeLabel":"string[] | null"}},"type":"object","required":["detail"],"title":"ApiDetailError","description":"Error envelope the API actually returns.\n\nEvery error (400/401/402/403/404/405/422/429/5xx) carries a `detail`\nstring, e.g. `{\"detail\": \"Insufficient API credits.\"}`, on every mount of\nthe API. A 422 adds `errors`, one entry per rejected field. Some 404s add\nendpoint-specific diagnosis beside `detail` (the statutes section routes\nadd `actId`, `reason` and `didYouMean`); treat unknown keys as optional.","uniqueKey":"","typeLabel":"ApiDetailError · object"},"examples":{"Example":{"title":"Example","value":{"detail":"The US session-laws database is temporarily unavailable. Please retry."}}},"exampleType":"examples"}},"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-Request-ID":{"description":"Correlation id of this request. Quote it when contacting support.","schema":{"type":"string"}}},"exampleType":"examples"}},"security":{"507a4177-c353-457f-b275-c6e5689326cb":{"ApiKeyAuth":{"type":"http","scheme":"bearer","bearerFormat":"vq_key_*","description":"API key issued from the developer dashboard. Pass as `Authorization: Bearer vq_key_...` (preferred).","scopes":[],"schemeName":"ApiKeyAuth"}},"fd51ae53-9413-4b29-a7c2-32a68ced30e6":{"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.","scopes":[],"schemeName":"ApiKeyHeader"}}},"servers":{"72a9d95a-e7d7-4dbe-946e-0f3975dd0517":{"url":"https://api.vaquill.ai","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"vq_key_*","description":"API key issued from the developer dashboard. Pass as `Authorization: Bearer vq_key_...` (preferred).","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API key issued from the developer dashboard. Pass as `Authorization: Bearer vq_key_...` (preferred).","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"ApiKeyAuth","name":"Authorization"}],"title":"ApiKeyAuth"},{"schemes":[{"scheme":{"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.","scopes":[],"schemeName":"ApiKeyHeader"},"schema":{"title":"X-API-Key","type":"string","description":"The same API key as a bare header value: `X-API-Key: vq_key_...`. Equivalent to the Bearer form.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyHeader","name":"X-API-Key"}],"title":"ApiKeyHeader"}]},"originalFileLocation":"https://api.vaquill.ai/external/openapi.json"},"subdomain":"vaquill","siteName":"Vaquill AI","title":"Search the text of state session laws - Vaquill AI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"api-reference/us-session-laws/search-the-text-of-state-session-laws.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Find state session laws by what they SAY. Send a question in plain words, words from a title, a quoted phrase, a citation (63-3004), a code section or a bill number (S.F.No. 1552). You get the laws, best first, each with the passage of its text that matched and a snippet around your words. Cost: 4 credits per page, each page a new search. An empty result is an answer (\u0026quot;nothing matches\u0026quot;) and is charged. A request that fails validation (422) is never charged; a failure on our side (500, 503) is refunded. To read a law you found, use GET /us/session-laws/{sessionLawId} (record) or its /body (text), which are priced on their own. What is searched. The ENACTED text: the law as it reads once the act takes effect. Language an act strikes out is not searched and never appears in a snippet, so a repealed word cannot match as if it were law. Only laws we serve with text are searched (see GET /us/statutes/coverage, sessionLaws, for what each state holds). Laws whose text we withhold are not returned, unless you send includeUnverified (default false): then a withheld law whose reason we can label may appear, each such result carrying holdingState: quarantined, textReliability and reasonCode, and it is matched by its title, code section, citation or bill number rather than by the words of its text. How it ranks. Keyword relevance (BM25), not meaning. Words are matched as written and stemmed (licensing finds licensed), so a question has to share vocabulary with the act: teeth cleaning professional does not find an act that says dental hygienist. A law matched by its title AND its text, or by an exact part of your query, ranks above one matched a single way. Quote a phrase to require it verbatim. What a result says about itself. matchType is exact when a quoted phrase, citation, code section or bill number you typed matched, otherwise text; matchedBy lists every way. Neither says the law is the right one: a question with no true answer still returns its closest words, and there is no \u0026quot;no good match\u0026quot; flag because keyword scores do not separate the two cases. Read the snippet. Paging. limit is 1 to 25. offset plus limit reaches at most the 60 best matches; narrow with jurisdiction, session, series, instrumentType or the approval dates rather than paging deeper. bash curl -X POST \u0026quot;https://api.vaquill.ai/api/v1/us/session-laws/search\u0026quot; \\ -H \u0026quot;Authorization: Bearer vq_key_...\u0026quot; \\ -H \u0026quot;Content-Type: application/json\u0026quot; \\ -d \u0026#x27;{\u0026quot;query\u0026quot;: \u0026quot;can the sheriff pay with a debit card\u0026quot;, \u0026quot;jurisdiction\u0026quot;: \u0026quot;al\u0026quot;, \u0026quot;limit\u0026quot;: 5}\u0026#x27; javascript const res = await fetch(\u0026quot;https://api.vaquill.ai/api/v1/us/session-laws/search\u0026quot;, { method: \u0026quot;POST\u0026quot;, headers: { Authorization: \u0026quot;Bearer vq_key_...\u0026quot;, \u0026quot;Content-Type\u0026quot;: \u0026quot;application/json\u0026quot; }, body: JSON.stringify({ query: \u0026#x27;\u0026quot;credit card or debit card\u0026quot;\u0026#x27;, jurisdiction: \u0026quot;al\u0026quot;, limit: 5 }), }); const { results } = await res.json(); Related. GET /us/session-laws/list filters one state\u0026#x27;s laws by session, series and date; POST /us/session-laws/batch reads up to 50 laws by id; GET /us/statutes/section/{actId}/enactments lists the acts a publisher\u0026#x27;s own tables tie to a code section.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Vaquill AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaquill/cxXYvhk1ARjGdjCs/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaquill/cxXYvhk1ARjGdjCs/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaquill/cxXYvhk1ARjGdjCs/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaquill/cxXYvhk1ARjGdjCs/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaquill/cxXYvhk1ARjGdjCs/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaquill/cxXYvhk1ARjGdjCs/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaquill/cxXYvhk1ARjGdjCs/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaquill/cxXYvhk1ARjGdjCs/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaquill/cxXYvhk1ARjGdjCs/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Search the text of state session laws - Vaquill AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Find state session laws by what they SAY. Send a question in plain words, words from a title, a quoted phrase, a citation (63-3004), a code section or a bill number (S.F.No. 1552). You get the laws, best first, each with the passage of its text that matched and a snippet around your words. Cost: 4 credits per page, each page a new search. An empty result is an answer (\u0026quot;nothing matches\u0026quot;) and is charged. A request that fails validation (422) is never charged; a failure on our side (500, 503) is refunded. To read a law you found, use GET /us/session-laws/{sessionLawId} (record) or its /body (text), which are priced on their own. What is searched. The ENACTED text: the law as it reads once the act takes effect. Language an act strikes out is not searched and never appears in a snippet, so a repealed word cannot match as if it were law. Only laws we serve with text are searched (see GET /us/statutes/coverage, sessionLaws, for what each state holds). Laws whose text we withhold are not returned, unless you send includeUnverified (default false): then a withheld law whose reason we can label may appear, each such result carrying holdingState: quarantined, textReliability and reasonCode, and it is matched by its title, code section, citation or bill number rather than by the words of its text. How it ranks. Keyword relevance (BM25), not meaning. Words are matched as written and stemmed (licensing finds licensed), so a question has to share vocabulary with the act: teeth cleaning professional does not find an act that says dental hygienist. A law matched by its title AND its text, or by an exact part of your query, ranks above one matched a single way. Quote a phrase to require it verbatim. What a result says about itself. matchType is exact when a quoted phrase, citation, code section or bill number you typed matched, otherwise text; matchedBy lists every way. Neither says the law is the right one: a question with no true answer still returns its closest words, and there is no \u0026quot;no good match\u0026quot; flag because keyword scores do not separate the two cases. Read the snippet. Paging. limit is 1 to 25. offset plus limit reaches at most the 60 best matches; narrow with jurisdiction, session, series, instrumentType or the approval dates rather than paging deeper. bash curl -X POST \u0026quot;https://api.vaquill.ai/api/v1/us/session-laws/search\u0026quot; \\ -H \u0026quot;Authorization: Bearer vq_key_...\u0026quot; \\ -H \u0026quot;Content-Type: application/json\u0026quot; \\ -d \u0026#x27;{\u0026quot;query\u0026quot;: \u0026quot;can the sheriff pay with a debit card\u0026quot;, \u0026quot;jurisdiction\u0026quot;: \u0026quot;al\u0026quot;, \u0026quot;limit\u0026quot;: 5}\u0026#x27; javascript const res = await fetch(\u0026quot;https://api.vaquill.ai/api/v1/us/session-laws/search\u0026quot;, { method: \u0026quot;POST\u0026quot;, headers: { Authorization: \u0026quot;Bearer vq_key_...\u0026quot;, \u0026quot;Content-Type\u0026quot;: \u0026quot;application/json\u0026quot; }, body: JSON.stringify({ query: \u0026#x27;\u0026quot;credit card or debit card\u0026quot;\u0026#x27;, jurisdiction: \u0026quot;al\u0026quot;, limit: 5 }), }); const { results } = await res.json(); Related. GET /us/session-laws/list filters one state\u0026#x27;s laws by session, series and date; POST /us/session-laws/batch reads up to 50 laws by id; GET /us/statutes/section/{actId}/enactments lists the acts a publisher\u0026#x27;s own tables tie to a code section.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Vaquill AI Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.vaquill.ai/docs/api-reference/us-session-laws/search-the-text-of-state-session-laws\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://vaquill.mintlify.site/docs/_mintlify/api/og/v2?division=US+Session+Laws\u0026amp;title=Search+the+text+of+state+session+laws\u0026amp;description=Find+state+session+laws+by+what+they+SAY.+Send+a+question+in+plain+words%2C+words+from+a+title%2C+a+quoted%0Aphrase%2C+a+citation+%28%6063-3004%60%29%2C+a+code+section+or+a+bill+\u0026amp;theme=c0fd5b007b30a7a110519c4a\u0026amp;signature=cfe1ca36c268128e6338729914414419eaa57806f1539f9dd3eb5d925e38f660\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Search the text of state session laws - Vaquill AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Find state session laws by what they SAY. Send a question in plain words, words from a title, a quoted phrase, a citation (63-3004), a code section or a bill number (S.F.No. 1552). You get the laws, best first, each with the passage of its text that matched and a snippet around your words. Cost: 4 credits per page, each page a new search. An empty result is an answer (\u0026quot;nothing matches\u0026quot;) and is charged. A request that fails validation (422) is never charged; a failure on our side (500, 503) is refunded. To read a law you found, use GET /us/session-laws/{sessionLawId} (record) or its /body (text), which are priced on their own. What is searched. The ENACTED text: the law as it reads once the act takes effect. Language an act strikes out is not searched and never appears in a snippet, so a repealed word cannot match as if it were law. Only laws we serve with text are searched (see GET /us/statutes/coverage, sessionLaws, for what each state holds). Laws whose text we withhold are not returned, unless you send includeUnverified (default false): then a withheld law whose reason we can label may appear, each such result carrying holdingState: quarantined, textReliability and reasonCode, and it is matched by its title, code section, citation or bill number rather than by the words of its text. How it ranks. Keyword relevance (BM25), not meaning. Words are matched as written and stemmed (licensing finds licensed), so a question has to share vocabulary with the act: teeth cleaning professional does not find an act that says dental hygienist. A law matched by its title AND its text, or by an exact part of your query, ranks above one matched a single way. Quote a phrase to require it verbatim. What a result says about itself. matchType is exact when a quoted phrase, citation, code section or bill number you typed matched, otherwise text; matchedBy lists every way. Neither says the law is the right one: a question with no true answer still returns its closest words, and there is no \u0026quot;no good match\u0026quot; flag because keyword scores do not separate the two cases. Read the snippet. Paging. limit is 1 to 25. offset plus limit reaches at most the 60 best matches; narrow with jurisdiction, session, series, instrumentType or the approval dates rather than paging deeper. bash curl -X POST \u0026quot;https://api.vaquill.ai/api/v1/us/session-laws/search\u0026quot; \\ -H \u0026quot;Authorization: Bearer vq_key_...\u0026quot; \\ -H \u0026quot;Content-Type: application/json\u0026quot; \\ -d \u0026#x27;{\u0026quot;query\u0026quot;: \u0026quot;can the sheriff pay with a debit card\u0026quot;, \u0026quot;jurisdiction\u0026quot;: \u0026quot;al\u0026quot;, \u0026quot;limit\u0026quot;: 5}\u0026#x27; javascript const res = await fetch(\u0026quot;https://api.vaquill.ai/api/v1/us/session-laws/search\u0026quot;, { method: \u0026quot;POST\u0026quot;, headers: { Authorization: \u0026quot;Bearer vq_key_...\u0026quot;, \u0026quot;Content-Type\u0026quot;: \u0026quot;application/json\u0026quot; }, body: JSON.stringify({ query: \u0026#x27;\u0026quot;credit card or debit card\u0026quot;\u0026#x27;, jurisdiction: \u0026quot;al\u0026quot;, limit: 5 }), }); const { results } = await res.json(); Related. GET /us/session-laws/list filters one state\u0026#x27;s laws by session, series and date; POST /us/session-laws/batch reads up to 50 laws by id; GET /us/statutes/section/{actId}/enactments lists the acts a publisher\u0026#x27;s own tables tie to a code section.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://vaquill.mintlify.site/docs/_mintlify/api/og/v2?division=US+Session+Laws\u0026amp;title=Search+the+text+of+state+session+laws\u0026amp;description=Find+state+session+laws+by+what+they+SAY.+Send+a+question+in+plain+words%2C+words+from+a+title%2C+a+quoted%0Aphrase%2C+a+citation+%28%6063-3004%60%29%2C+a+code+section+or+a+bill+\u0026amp;theme=c0fd5b007b30a7a110519c4a\u0026amp;signature=cfe1ca36c268128e6338729914414419eaa57806f1539f9dd3eb5d925e38f660\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/vaquill/cxXYvhk1ARjGdjCs/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Vaquill AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6E3730\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.vaquill.ai/docs/api-reference/us-session-laws/search-the-text-of-state-session-laws\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/us-session-laws/search-the-text-of-state-session-laws.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.vaquill.ai/#organization\",\"name\":\"Vaquill AI\",\"url\":\"https://www.vaquill.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/vaquill/HoYf91pjRoTl4-t3/logo/light.png?fit=max\u0026auto=format\u0026n=HoYf91pjRoTl4-t3\u0026q=85\u0026s=1c97b6018caaa1fee0a743b05651bb81\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.vaquill.ai/docs#website\",\"name\":\"Vaquill AI\",\"url\":\"https://www.vaquill.ai/docs\",\"publisher\":{\"@id\":\"https://www.vaquill.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.vaquill.ai/docs/api-reference/us-session-laws/search-the-text-of-state-session-laws#webpage\",\"url\":\"https://www.vaquill.ai/docs/api-reference/us-session-laws/search-the-text-of-state-session-laws\",\"name\":\"Search the text of state session laws\",\"description\":\"Find state session laws by what they SAY. Send a question in plain words, words from a title, a quoted phrase, a citation (63-3004), a code section or a bill number (S.F.No. 1552). You get the laws, best first, each with the passage of its text that matched and a snippet around your words. Cost: 4 credits per page, each page a new search. An empty result is an answer (\\\"nothing matches\\\") and is charged. A request that fails validation (422) is never charged; a failure on our side (500, 503) is refunded. To read a law you found, use GET /us/session-laws/{sessionLawId} (record) or its /body (text), which are priced on their own. What is searched. The ENACTED text: the law as it reads once the act takes effect. Language an act strikes out is not searched and never appears in a snippet, so a repealed word cannot match as if it were law. Only laws we serve with text are searched (see GET /us/statutes/coverage, sessionLaws, for what each state holds). Laws whose text we withhold are not returned, unless you send includeUnverified (default false): then a withheld law whose reason we can label may appear, each such result carrying holdingState: quarantined, textReliability and reasonCode, and it is matched by its title, code section, citation or bill number rather than by the words of its text. How it ranks. Keyword relevance (BM25), not meaning. Words are matched as written and stemmed (licensing finds licensed), so a question has to share vocabulary with the act: teeth cleaning professional does not find an act that says dental hygienist. A law matched by its title AND its text, or by an exact part of your query, ranks above one matched a single way. Quote a phrase to require it verbatim. What a result says about itself. matchType is exact when a quoted phrase, citation, code section or bill number you typed matched, otherwise text; matchedBy lists every way. Neither says the law is the right one: a question with no true answer still returns its closest words, and there is no \\\"no good match\\\" flag because keyword scores do not separate the two cases. Read the snippet. Paging. limit is 1 to 25. offset plus limit reaches at most the 60 best matches; narrow with jurisdiction, session, series, instrumentType or the approval dates rather than paging deeper. bash curl -X POST \\\"https://api.vaquill.ai/api/v1/us/session-laws/search\\\" \\\\ -H \\\"Authorization: Bearer vq_key_...\\\" \\\\ -H \\\"Content-Type: application/json\\\" \\\\ -d '{\\\"query\\\": \\\"can the sheriff pay with a debit card\\\", \\\"jurisdiction\\\": \\\"al\\\", \\\"limit\\\": 5}' javascript const res = await fetch(\\\"https://api.vaquill.ai/api/v1/us/session-laws/search\\\", { method: \\\"POST\\\", headers: { Authorization: \\\"Bearer vq_key_...\\\", \\\"Content-Type\\\": \\\"application/json\\\" }, body: JSON.stringify({ query: '\\\"credit card or debit card\\\"', jurisdiction: \\\"al\\\", limit: 5 }), }); const { results } = await res.json(); Related. GET /us/session-laws/list filters one state's laws by session, series and date; POST /us/session-laws/batch reads up to 50 laws by id; GET /us/statutes/section/{actId}/enactments lists the acts a publisher's own tables tie to a code section.\",\"isPartOf\":{\"@id\":\"https://www.vaquill.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.vaquill.ai/docs/api-reference/us-session-laws/search-the-text-of-state-session-laws#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.vaquill.ai/docs/api-reference/us-session-laws/search-the-text-of-state-session-laws#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"US Session Laws\",\"item\":\"https://www.vaquill.ai/docs/api-reference/us-session-laws/feed-of-changes-to-the-session-law-registry\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Search the text of state session laws\",\"item\":\"https://www.vaquill.ai/docs/api-reference/us-session-laws/search-the-text-of-state-session-laws\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://www.vaquill.ai/docs/api-reference/us-session-laws/search-the-text-of-state-session-laws#apireference\",\"headline\":\"Search the text of state session laws\",\"name\":\"Search the text of state session laws\",\"description\":\"Find state session laws by what they SAY. Send a question in plain words, words from a title, a quoted phrase, a citation (63-3004), a code section or a bill number (S.F.No. 1552). You get the laws, best first, each with the passage of its text that matched and a snippet around your words. Cost: 4 credits per page, each page a new search. An empty result is an answer (\\\"nothing matches\\\") and is charged. A request that fails validation (422) is never charged; a failure on our side (500, 503) is refunded. To read a law you found, use GET /us/session-laws/{sessionLawId} (record) or its /body (text), which are priced on their own. What is searched. The ENACTED text: the law as it reads once the act takes effect. Language an act strikes out is not searched and never appears in a snippet, so a repealed word cannot match as if it were law. Only laws we serve with text are searched (see GET /us/statutes/coverage, sessionLaws, for what each state holds). Laws whose text we withhold are not returned, unless you send includeUnverified (default false): then a withheld law whose reason we can label may appear, each such result carrying holdingState: quarantined, textReliability and reasonCode, and it is matched by its title, code section, citation or bill number rather than by the words of its text. How it ranks. Keyword relevance (BM25), not meaning. Words are matched as written and stemmed (licensing finds licensed), so a question has to share vocabulary with the act: teeth cleaning professional does not find an act that says dental hygienist. A law matched by its title AND its text, or by an exact part of your query, ranks above one matched a single way. Quote a phrase to require it verbatim. What a result says about itself. matchType is exact when a quoted phrase, citation, code section or bill number you typed matched, otherwise text; matchedBy lists every way. Neither says the law is the right one: a question with no true answer still returns its closest words, and there is no \\\"no good match\\\" flag because keyword scores do not separate the two cases. Read the snippet. Paging. limit is 1 to 25. offset plus limit reaches at most the 60 best matches; narrow with jurisdiction, session, series, instrumentType or the approval dates rather than paging deeper. bash curl -X POST \\\"https://api.vaquill.ai/api/v1/us/session-laws/search\\\" \\\\ -H \\\"Authorization: Bearer vq_key_...\\\" \\\\ -H \\\"Content-Type: application/json\\\" \\\\ -d '{\\\"query\\\": \\\"can the sheriff pay with a debit card\\\", \\\"jurisdiction\\\": \\\"al\\\", \\\"limit\\\": 5}' javascript const res = await fetch(\\\"https://api.vaquill.ai/api/v1/us/session-laws/search\\\", { method: \\\"POST\\\", headers: { Authorization: \\\"Bearer vq_key_...\\\", \\\"Content-Type\\\": \\\"application/json\\\" }, body: JSON.stringify({ query: '\\\"credit card or debit card\\\"', jurisdiction: \\\"al\\\", limit: 5 }), }); const { results } = await res.json(); Related. GET /us/session-laws/list filters one state's laws by session, series and date; POST /us/session-laws/batch reads up to 50 laws by id; GET /us/statutes/section/{actId}/enactments lists the acts a publisher's own tables tie to a code section.\",\"url\":\"https://www.vaquill.ai/docs/api-reference/us-session-laws/search-the-text-of-state-session-laws\",\"mainEntityOfPage\":{\"@id\":\"https://www.vaquill.ai/docs/api-reference/us-session-laws/search-the-text-of-state-session-laws#webpage\"},\"publisher\":{\"@id\":\"https://www.vaquill.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://www.vaquill.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Vaquill AI\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Vaquill AI","nav":{"global":{"anchors":[{"anchor":"Changelog","icon":"clock","href":"/api-guide/changelog"},{"anchor":"MCP","icon":"plug","href":"/integrations/mcp/vaquill"}]},"tabs":[{"tab":"Guide","pages":[{"title":"Guide","href":"/api-guide/coverage"}]},{"tab":"US API reference","groups":[{"group":"US Statutes","pages":[{"title":"Search US statutes, constitutions, court rules, and executive actions","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json post /api/v1/us/statutes/search","href":"/api-reference/us-statutes/search-us-statutes-constitutions-court-rules-and-executive-actions"},{"title":"Get statute section metadata","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/section/{act_id}","href":"/api-reference/us-statutes/get-statute-section-metadata"},{"title":"Resolve a citation to its section","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/resolve","href":"/api-reference/us-statutes/resolve-a-citation-to-its-section"},{"title":"Resolve many citations at once","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json post /api/v1/us/statutes/resolve","href":"/api-reference/us-statutes/resolve-many-citations-at-once"},{"title":"Get the sections around this one","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/section/{act_id}/related","href":"/api-reference/us-statutes/get-the-sections-around-this-one"},{"title":"Get metadata for many statute sections","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json post /api/v1/us/statutes/sections","href":"/api-reference/us-statutes/get-metadata-for-many-statute-sections"},{"title":"Get statute full text","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/section/{act_id}/body","href":"/api-reference/us-statutes/get-statute-full-text"},{"title":"Count the sections in a scope","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json post /api/v1/us/statutes/count","href":"/api-reference/us-statutes/count-the-sections-in-a-scope"},{"title":"Coverage matrix by jurisdiction and corpusType","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/coverage","href":"/api-reference/us-statutes/coverage-matrix-by-jurisdiction-and-corpustype"},{"title":"Browse the statutory hierarchy","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/divisions","href":"/api-reference/us-statutes/browse-the-statutory-hierarchy"},{"title":"Get this section's change history","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/section/{act_id}/changes","href":"/api-reference/us-statutes/get-this-sections-change-history"},{"title":"Which acts a state publisher lists against this section","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/section/{act_id}/enactments","href":"/api-reference/us-statutes/which-acts-a-state-publisher-lists-against-this-section"},{"title":"Get the Federal Register documents behind a CFR section","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/section/{act_id}/rulemaking","href":"/api-reference/us-statutes/get-the-federal-register-documents-behind-a-cfr-section"},{"title":"Get every Federal Register document for a CFR part","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/part/{title}/{part}/rulemaking","href":"/api-reference/us-statutes/get-every-federal-register-document-for-a-cfr-part"},{"title":"Find the citations in a text and resolve each","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json post /api/v1/us/statutes/extract-citations","href":"/api-reference/us-statutes/find-the-citations-in-a-text-and-resolve-each"},{"title":"Find the sections that cite this one","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/section/{act_id}/cited-by","href":"/api-reference/us-statutes/find-the-sections-that-cite-this-one"},{"title":"Get the defined terms that govern this section","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/section/{act_id}/definitions","href":"/api-reference/us-statutes/get-the-defined-terms-that-govern-this-section"},{"title":"Compare this provision against other states","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/section/{act_id}/cross-state","href":"/api-reference/us-statutes/compare-this-provision-against-other-states"}]},{"group":"Pricing","pages":[{"title":"Get API credit pricing","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/api-credits/pricing","href":"/api-reference/pricing/get-api-credit-pricing"}]},{"group":"Board Watches","pages":[{"title":"List watchable boards","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/boards","href":"/api-reference/board-watches/list-watchable-boards"},{"title":"List your board watches","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/watches","href":"/api-reference/board-watches/list-your-board-watches"},{"title":"Create a board watch","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json post /api/v1/watches","href":"/api-reference/board-watches/create-a-board-watch"},{"title":"Send a test delivery","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json post /api/v1/watches/{watch_id}/test","href":"/api-reference/board-watches/send-a-test-delivery"},{"title":"Delete a board watch","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json delete /api/v1/watches/{watch_id}","href":"/api-reference/board-watches/delete-a-board-watch"},{"title":"Update a board watch","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json patch /api/v1/watches/{watch_id}","href":"/api-reference/board-watches/update-a-board-watch"},{"title":"List what changed on a watch's source","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/watches/{watch_id}/changes","href":"/api-reference/board-watches/list-what-changed-on-a-watchs-source"},{"title":"Old-vs-new text for one change","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/watches/{watch_id}/changes/{change_id}/diff","href":"/api-reference/board-watches/old-vs-new-text-for-one-change"},{"title":"List delivery history for a watch","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/watches/{watch_id}/deliveries","href":"/api-reference/board-watches/list-delivery-history-for-a-watch"},{"title":"Law change alert","version":null,"deprecated":null,"openapi":"https://api.vaquill.ai/external/openapi.json webhook board.updated","href":"/api-reference/board-watches/law-change-alert"},{"title":"Webhook test delivery","version":null,"deprecated":null,"openapi":"https://api.vaquill.ai/external/openapi.json webhook board.test","href":"/api-reference/board-watches/webhook-test-delivery"}]},{"group":"Credits","pages":[{"title":"Get your credit balance","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/credits/balance","href":"/api-reference/credits/get-your-credit-balance"}]},{"group":"US Session Laws","pages":[{"title":"Feed of changes to the session-law registry","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/session-laws/changes","href":"/api-reference/us-session-laws/feed-of-changes-to-the-session-law-registry"},{"title":"Get many state session laws at once, by id or citation","description":"Read up to 50 STATE session laws in one call: the same record\n`GET /us/session-laws/{sessionLawId}` returns, for each id or citation in `ids`, in the order\nyou sent them. Use it when you are enriching a list (a sync job holding ids from\n`/us/session-laws/list` or `/us/session-laws/changes`, or an agent handed a memo with a dozen\nsession-law citations) instead of making a round trip per law.\n\n**When to use this instead of `POST /us/statutes/resolve`.** `resolve` identifies a citation: it\ncosts 2 credits per item and answers with a `sessionLaw` match block (title, dates, source\nlink), never the record or its text. This route returns the FULL record of each law, the same as\n`GET /us/session-laws/{sessionLawId}` (2 credits per law served), and optionally the\nfirst page of its text. Use `resolve` to find the id; use this route to read many laws in one\nrequest instead of one call each, which matters under the default limit of 30 requests per\nminute per key (a plan raises it).\n\n**Cost**: 2 credits per law served, the single-lookup price. Batching buys a round\ntrip, not a discount. A miss is not charged, and `creditsConsumed` reports what was actually\nbilled. A citation in `ids` also pays the `/us/statutes/resolve` price (2 credits), as its\nown ledger line, exactly as `GET /us/session-laws/{sessionLawId}` charges a citation: kept\nwhenever we gave a verdict (a served law, an unresolved or ambiguous citation) and refunded\nwhen the session it points into is only partly collected, or when we failed. An id never pays it.\n\n**Every entry gets an answer.** A served law is in `laws`; every other entry is in `notFound` with\na `status` (`not_found`, `unparsed`, `ambiguous`, `needs_jurisdiction`,\n`session_not_fully_collected`, `federal`, or `error`), the finer `reason` the single route's 404\ncarries, the same `detail` sentence, and the candidates where there are any. Nothing is dropped\nsilently, so a shorter `laws` array can always be explained: every distinct entry is in `laws`,\nin `notFound`, or, when it names a law an earlier entry already produced, in `resolved`.\n\n**Mapping your inputs.** `laws` holds only the laws served, so it cannot be zipped back onto\n`ids` by position. Each law carries the `input` it answers, and `resolved` lists every input that\ndid not match an id exactly as sent (a citation, or an id cleaned of whitespace, quotes or a\ntrailing period) with the id it resolved to. **Duplicates are collapsed first**: an entry\nidentical to an earlier one after trimming is dropped, order is kept, and `deduped` says how many.\nTwo DIFFERENT spellings of one law (`S.F.No. 1552` and its `sessionLawId`) serve the law once,\nunder the first, bill it once, and list both in `resolved`.\n\n**Statuses.** `resolved`: served. `not_held`: served as a record, because the registry knows the\nlaw and holds no text (`textStatus: not_held`). `not_found`: no law carries the id. `unparsed`: it\nreads as a citation no state session law we hold carries. `ambiguous`: the citation names several\nlaws, all in `didYouMean`, none chosen for you (Minnesota 2025 has two Chapter 1s).\n`needs_jurisdiction`: a form several states share, naming none: send `jurisdiction` or name the\nstate. `session_not_fully_collected`: nothing matched in a session we have only partly collected, so\nthe law may exist; never charged, the resolve price included. `federal`: federal acts are served\nby `/us/statutes/section`. `error`: WE failed to look this entry up. It says nothing about the law, is refunded\nin full, and is safe to resend.\n\n**`jurisdiction`** scopes how every citation in the batch is read, exactly as the same parameter\ndoes on the single route. It is validated before anything is charged: a bad code is a 422.\n\n**`includeBody`** adds the FIRST page of each served law's text (about 30,000 characters)\nas `body`, at the body price (6 credits) per law whose page is served, charged after the\nwork because the count is not knowable up front. It multiplies with the batch: 50 laws at\n2 + 6 is 400 credits in one call. A law whose text is withheld, not held or\nempty returns `body: null` and is not charged for it. If your balance cannot cover the pages after\nthe records were served, the records are returned without bodies rather than taking the paid-for\nresult away. `bodyNextCursor` continues a longer act on `GET /us/session-laws/{sessionLawId}/body`.\n\n**Limits.** At most 50 DISTINCT entries after duplicates collapse (a raw list of up to\n200 is accepted so a run of repeats is not refused), each at most 300 characters. An\nempty list, an over-long entry, more than 50 distinct entries or a bad `jurisdiction` is a 422\nand nothing is charged. At most 8 lookups run at once inside a call.\n\n**Example**\n\n```bash\ncurl -X POST \"https://api.vaquill.ai/api/v1/us/session-laws/batch\" \\\n -H \"Authorization: Bearer $VAQUILL_API_KEY\" -H \"Content-Type: application/json\" \\\n -d '{\"ids\": [\"SSL_MN_2025R_G_Y2025_C1\", \"S.F.No. 1552\"], \"jurisdiction\": \"mn\"}'\n```\n\n```javascript\nconst res = await fetch(\"https://api.vaquill.ai/api/v1/us/session-laws/batch\", {\n method: \"POST\",\n headers: {\n Authorization: `Bearer ${process.env.VAQUILL_API_KEY}`,\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify({ ids: [\"SSL_MN_2025R_G_Y2025_C1\", \"S.F.No. 1552\"], jurisdiction: \"mn\" }),\n});\nconst { laws, notFound, resolved } = await res.json();\nconst byInput = new Map(laws.map((law) => [law.input, law]));\n```\n\n**Related endpoints**\n\n- `GET /us/session-laws/{sessionLawId}` is the single read, with the same record and rules.\n- `GET /us/session-laws/list` and `GET /us/session-laws/changes` are where the ids come from.\n- `GET /us/statutes/resolve` points a session-law citation here.\n\n**Nulls.** Every field of a response is always present: one with no value is `null` (or `[]`\nfor a list). The examples on this page leave the nulls out for brevity.\n\n**Rate limits.** Calls count against your key's per-minute budget like every Data API route; a\n429 carries `Retry-After`.","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json post /api/v1/us/session-laws/batch","href":"/api-reference/us-session-laws/get-many-state-session-laws-at-once-by-id-or-citation"},{"title":"Search the text of state session laws","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json post /api/v1/us/session-laws/search","href":"/api-reference/us-session-laws/search-the-text-of-state-session-laws"},{"title":"List every served version of a state session law","description":"Every version of one STATE session law that we served or adopted, newest first, and which of them is\ncurrent. The text of a law can be corrected after we first serve it (a better extraction of the same\nsource, a re-collection), and the version you read yesterday is then not the one a plain call returns\ntoday. This route lists the versions with what identifies each (when we recorded it, its length, its\nhash, how the text was taken) and how its text can be read. It carries no text: read one version's text\nwith `GET /us/session-laws/{sessionLawId}/body?version=N`.\n\n**Cost**: 1 credit per call, however many versions the law has. A law with a single version\nanswers a list of one and is charged: \"this law has never changed\" is the answer you paid for. Reading\na version's text is a separate call at the body price (6 credits per page), the same price as\nreading the current text. A request that fails validation (422) is never charged; a law that is not\nfound (404) is never charged; a failure on our side (500, 503) is refunded.\n\n**Id only.** This route takes a `sessionLawId`, not a citation: resolve a citation once with\n`GET /us/session-laws/{sessionLawId}` and use the id it returns. A federal id (`SAL_...`) is a 404\n(`federal_session_law`), as on `/body`.\n\n**What a version says.** `version` is the number to send as `version` on `/body`. Numbers can have gaps:\na version we recorded and never served or adopted is not listed. Exactly one listed version has\n`isCurrent: true`, and `currentVersion` repeats its number: it is the text a plain `/body` call serves.\n`recordedAt` dates OUR copy of the text, never the act (see `approvedDate` on the law for that).\n`totalChars` and `textSha256` identify the text: two versions with the same hash have the same text, and\nonly the record around it changed. `citation`, `title` and `approvedDate` are as that version recorded\nthem, so a correction that fixed a title shows here.\n\n**How a version's text can be read.** `textAccess` says what reading it takes. `served`: a plain call to\n`/body?version=N` reads it. `includeUnverified`: the law is held back (`textStatus: withheld`) and this\ntext is readable only with `includeUnverified=true`, labelled by `textReliability` and `reasonCode` so\nyou know it may show deleted or vetoed law as if it were enacted. `none`: there is no text to read for\nthis version, or the law's text may not be published (a licence that bars use, or text that failed our\nown validation). The law-level `textStatus`, `textReliability` and `reasonCode` are the same fields, and\nmean the same, as on `/body`. `textReliability` is omitted when no text of the law may be read, and\n`reasonCode` when the law is served and verified.\n\n**Reading an older version.** Send `version=N` to `/body`. The page, its `nextCursor` and `textSha256`\nbelong to that version's text, so a cursor from one version is a 409 on another. To check that nothing\nchanged under you, compare `textSha256` here with the one you read.\n\n**Example**\n\n```bash\ncurl \"https://api.vaquill.ai/api/v1/us/session-laws/SSL_MN_2025S1_G_Y2025_C1/versions\" \\\n -H \"Authorization: Bearer $VAQUILL_API_KEY\"\n\n# then read the first version's text, one page at the body price\ncurl \"https://api.vaquill.ai/api/v1/us/session-laws/SSL_MN_2025S1_G_Y2025_C1/body?version=1\" \\\n -H \"Authorization: Bearer $VAQUILL_API_KEY\"\n```\n\n```javascript\nconst id = \"SSL_MN_2025S1_G_Y2025_C1\";\nconst res = await fetch(`https://api.vaquill.ai/api/v1/us/session-laws/${encodeURIComponent(id)}/versions`, {\n headers: { Authorization: `Bearer ${process.env.VAQUILL_API_KEY}` },\n});\nconst { versions, currentVersion } = await res.json();\nconst older = versions.filter((v) => !v.isCurrent \u0026\u0026 v.textAccess === \"served\");\n```\n\n**Related endpoints**\n\n- `GET /us/session-laws/{sessionLawId}/body` reads the text of the current version, or of the one you\n name with `version`. It also takes `includeUnverified=true` for a law we hold back.\n- `GET /us/session-laws/{sessionLawId}` is the law's record (dates, sources, code sections affected,\n whether its text is held); it always describes the current version.\n- `GET /us/session-laws/changes` is the registry's change feed: a `corrected` entry there is how you\n learn that a copy of a law you hold may be stale, and this route is where you see what changed.\n- `GET /us/statutes/coverage` says which sessions we hold and how complete each is, under each\n jurisdiction's `sessionLaws` block.\n- Federal session laws (the Statutes at Large, `SAL_` ids) are not served here. Read them with\n `GET /us/statutes/section/{actId}`.\n\n**Nulls.** A field of a version with no value (`citation`, `title`, `approvedDate`, `totalChars`,\n`textSha256`, `textMethod`, `amendatoryMarkup`, `markupConvention`) is `null`. `textReliability` and\n`reasonCode` on the law are the exception: they are OMITTED when they do not apply, never null. The\nexamples on this page leave the nulls out for brevity.\n\n**Rate limits.** Calls count against your key's per-minute budget like every Data API route; a 429\ncarries `Retry-After`.","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/session-laws/{session_law_id}/versions","href":"/api-reference/us-session-laws/list-every-served-version-of-a-state-session-law"},{"title":"List a state's session laws","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/session-laws/list","href":"/api-reference/us-session-laws/list-a-states-session-laws"},{"title":"Get a state session law's text, current or a past version","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/session-laws/{session_law_id}/body","href":"/api-reference/us-session-laws/get-a-state-session-laws-text-current-or-a-past-version"},{"title":"Get a state session law, by id or by citation","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/session-laws/{session_law_id}","href":"/api-reference/us-session-laws/get-a-state-session-law-by-id-or-by-citation"}]},{"group":"US Rulemaking","pages":[{"title":"What the rulemaking store holds (free)","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/rulemaking/coverage","href":"/api-reference/us-rulemaking/what-the-rulemaking-store-holds-free"},{"title":"List and filter Regulations.gov dockets","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/rulemaking/dockets/list","href":"/api-reference/us-rulemaking/list-and-filter-regulationsgov-dockets"},{"title":"One Regulations.gov docket","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/rulemaking/dockets/{docket_id}","href":"/api-reference/us-rulemaking/one-regulationsgov-docket"},{"title":"Documents of one docket, oldest first","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/rulemaking/dockets/{docket_id}/documents","href":"/api-reference/us-rulemaking/documents-of-one-docket-oldest-first"},{"title":"Everything we hold for one RIN","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/rulemaking/rins/{rin}","href":"/api-reference/us-rulemaking/everything-we-hold-for-one-rin"},{"title":"Unified Agenda history of one RIN","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/rulemaking/rins/{rin}/agenda","href":"/api-reference/us-rulemaking/unified-agenda-history-of-one-rin"},{"title":"List and filter Rules Committee records","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/rulemaking/committee-records/list","href":"/api-reference/us-rulemaking/list-and-filter-rules-committee-records"},{"title":"One Rules Committee record with its page text","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/rulemaking/committee-records/{record_id}","href":"/api-reference/us-rulemaking/one-rules-committee-record-with-its-page-text"}]}]},{"tab":"India API reference","pages":[{"title":"India API reference","href":"/api-guide/coverage/india"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations"}]}]},"basePath":"","title":"Search the text of state session laws - Vaquill AI","buildId":"dpl_BSPUBxEoKhhK7HzXVDPxdPvWx4xc","deploymentId":"dpl_BSPUBxEoKhhK7HzXVDPxdPvWx4xc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Do6EtGSl.js","utils-id4tQ6My.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-Byrixac4.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-nakYa3Zl.js","snippetPresets-Bq-pUS7h.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-CujTC_9K.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-FneVUsVu.js","shallow-DY9WpUCz.js","getApiPlaygroundDisplay-Bz8WpPfA.js","CodeSnippet-DgCuJg4G.js","CodeSnippets-Dub9c4T0.js","Page-CePXnjd1.js","getPastedJson-xdI8y2XB.js","icon--yVw5vkr.js","MethodPill-C47t7MdS.js","DuplicateIcon-BzwJ2LeC.js","createIcon-BzggGy84.js","DynamicMarkdown-AlxJK8VR.js","SectionHeading-CMlwFxdK.js","axios-vUo_bRtp.js","Markdown-BNgNrPsi.js","clsx-apD-Q0Oo.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-qmLwQyWY.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Dc4qTkWx.js"]}