Unified Case Types And Court Establishments API

API TO FETCH BENCH, COURT COMPLEXES AND CASE TYPES

Introduction

This helper API provides reference data required to use the Unified Court Cases Details API. It returns the supported establishmentCodes, caseTypes, and other metadata used across different court systems.

Since these values vary by court type, this API allows developers to dynamically fetch the valid parameters before making requests to the Unified Court Case Details API. Using this endpoint ensures that your integration always uses the latest supported court establishments and case type values.

Typical Use Cases:

  • Retrieve valid establishmentCodes for a specific court type
  • Get supported caseTypes for different courts
  • Ensure correct parameters when calling the Unified Court Case Details API
  • Build dynamic dropdowns or validation in court case search applications

Get Free Trial

Create a free account Or “Talk to Us” for price information and other queries.

API Details

Request

TypeURL
GEThttps://api.attestr.com/api/{version}/public/ecourtx/case-types?courtType=<courtType>

Request Header Parameters

TypeNameValue / DescriptionOptionalMin VersionMax Version
StringContent-Typeapplication/jsonRequiredv1
StringAuthorizationBasic {authToken}Requiredv1

If you do not have the authentication token, please refer to Register App to generate one.

Request URL Parameters

NameDescriptionMin VersionMax Version
courtType

Following are the allowed values.

DC, HC, SC, CC, NCLT, NCLAT, GSTAT, DRT, DRAT

DC - District Courts

HC - High Courts

SC - Supreme Court

CC - eJagriti Consumer Court

NCLT - National Company Law Tribunal

NCLAT - National Company Law Appellate Tribunal

GSTAT - GST Appellate Tribunal

DRT - Debt Recovery Tribunal

DRAT - Debt Recovery Appellate Tribunal

v2

Sample Request

RequestUrl
Copy

Response

HTTP status code 200

KeyDescriptionTypeMin VersionMax Version
stateName of the state. Generally returned for district courts only.Stringv2
courtName of the courtContactServiceTypeEnumv2
benchBench / Establishment nameBooleanv2
establishmentCodeEstablishment code which should be passed in the establishmentCode field in the unified case details APIBooleanv2
caseTypesArray of case types. Each object in the array has two fields. name - Case type name code - Case type code to be passed in the input to Unified case details APIStringv2

Sample Response

Sample response for valid contact number

JSON
Copy

Error Response

ParameterTypeDescription
codeNumberUnique error codes for different errors. Always available.
messageStringError message describing the error. Always Available.
detailsStringDetail error message. Available only for certain types of errors.

Error Codes

HTTP StatusError CodeError Message
4004001Malformed data or missing required parameter values
4004005Operation could not be performed due to low credits balance
4014016Invalid client authorization
4034031Unauthorized access
4034035Requested service is not provisioned for your account
4034039Client's IP address is not whitelisted
4034035Requested service is not provisioned for your account
4294291Maximum account rate limit exceeded
4294292Maximum API rate limit exceeded
4294293Maximum account daily limit exceeded
4294294Maximum API daily limit exceeded
5005001Request could not be processed

Sample Error Response

JSON
Copy

Get Free Trial

Create a free account Or “Talk to Us” for price information and other queries.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard