Skip to main content
POST
/
legal
/
v1
/
citations
Parse citations from text
curl --request POST \
  --url https://api.case.dev/legal/v1/citations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "text": "<string>"
}
'
{
  "citations": [
    {
      "original": "<string>",
      "span": {
        "start": 123,
        "end": 123
      },
      "components": {
        "caseName": "<string>",
        "volume": 123,
        "reporter": "<string>",
        "page": 123,
        "year": 123,
        "court": "<string>",
        "pinCite": 123
      },
      "normalized": "<string>",
      "found": true
    }
  ]
}

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json

Text containing legal citations to extract

text
string
required

Text containing citations to extract. Can be a single citation (e.g., "531 U.S. 98") or a full document with multiple citations.

Maximum string length: 64000

Response

Citations extracted successfully

citations
object[]