CasePrimus.aiby Attestr
Documentation menu
GET/case-lookup/case-types

List case types and benches for a court type

Returns the options for the lookup form's court-specific fields.

Overview

Returns the options for the lookup form's court-specific fields. The identifier you need to provide (establishmentCode, caseType, and so on) varies by courtType. District Courts return an empty array: no bench or case type is needed, the CNR alone is enough. Requires case.read.

Auth API keyPermission case.read
Send your API key in the X-CasePrimus-Api-Key header. See Authentication for how to create a key, and Rate limits & errors for how requests are counted.

Parameters

NameInDescription
courtType
string
Required
query
DCHCSCCCNCLTNCLATGSTATDRTDRATCESTAT

Example request

Replace CASEPRIMUS_API_KEY with your key.

Request
BASE="https://api.caseprimus.ai/api/caseprimus/v1"

curl "$BASE/case-lookup/case-types?courtType=DC" \
  -H "X-CasePrimus-Api-Key: $CASEPRIMUS_API_KEY"

Responses

200Valid options for this court type.
FieldDescription
state
string or null
court
string or null
bench
string or null
establishmentCode
string or null
caseTypes
array of object
name
string
code
string
Response 200
[
  {
    "state": "Delhi",
    "court": "High Court of Delhi",
    "bench": "Principal Bench",
    "establishmentCode": "DLHC01",
    "caseTypes": [
      {
        "name": "Civil Writ Petition",
        "code": "CWP"
      }
    ]
  }
]
403Caller lacks the case.read permission.

Error responses share one shape, listed on Rate limits & errors.