Skip to main content
POST
Resolve citations to cases

Authorizations

Authorization
string
header
required

API key issued from the developer dashboard. Pass as Authorization: Bearer vq_key_... (preferred).

Headers

Idempotency-Key
string | null

Optional. 16 to 255 visible ASCII characters (a UUIDv4 works). Repeating the same request with the same key replays the original 2xx response for 24 hours without charging again. The same key on a different request is rejected. With the account's cacheQueryDerivedData retention setting off, no body is stored and a retry answers 409 idempotency_replay_unavailable, still without a second charge.

Required string length: 16 - 255
Pattern: ^[\x21-\x7e]+$
Example:

"3f9c2a1e-7b44-4d0a-9c1e-5a6b7c8d9e0f"

Body

application/json

Body of POST /us/cases/resolve: citations OR text, never both, never neither.

citations
string[] | null

Reporter citations such as 410 U.S. 113. One result per entry, in order. Send this or text.

Required array length: 1 - 100 elements
Required string length: 1 - 200
Example:
text
string | null

A document (up to 200,000 characters) to find case citations in, full citations and the short forms (Id., Smith, supra, 550 U.S. at 556) that repeat one. Each citation found is resolved and returned with its place in the text. Send this or citations.

Required string length: 1 - 200000
Example:

"See Roe v. Wade, 410 U.S. 113, 120 (1973). Id. at 125."

Response

Successful Response

results
ResolveResult · object[]
required

citations input: one result per requested citation, in request order. text input: one result per citation found, in reading order.

count
integer
required

Number of rows in results.

resolved
integer
required

How many of the results resolved to exactly one case.

creditsConsumed
integer
required

Credits this call cost. 0 on a free route.

processingTimeMs
number
required

Server time spent on this call, in milliseconds.

distinctCitations
integer
default:0

Distinct citations after normalizing (U.S. and U. S. are one), which is what the citation price counts. A string that is not a citation is not counted.

unresolvedShortForms
integer
default:0

text input: short forms (Id., supra) that could not be tied to exactly one earlier citation, left out of results.