Skip to Content
Developers
API ReferenceCases

Full judgment text or structured sections; auto-refunds if text unavailable (3 credits).

GET
/api/v1/in/cases/{id}/body

Authorization

BearerAuth
headerAuthorizationBearer <vdh_live_<32_hex> | vdh_test_<32_hex>>

Path Parameters

id*string

String-encoded BIGINT corpus document ID.

Match^[0-9]+$

Query Parameters

format?string
Default"text"
Value in"text""sections"

Response Body

Case body

application/json
  1. response
id*string
Match^[0-9]+$
format*string
Value in"text""sections"
text?string|null
sections?array<>
text_reliability*string
Value in"born_digital""ocr_recovered""partial"
ocr_recovered*boolean
complete*boolean
Example Request
curl -X GET 'https://api.vidhi.shamik.app/api/v1/in/cases/string/body'
Example Response
{  "id": "string",  "format": "text",  "text": "string",  "sections": [    {      "section_type": "string",      "start_offset": 0,      "end_offset": 0,      "confidence": 0,      "method": "string"    }  ],  "text_reliability": "born_digital",  "ocr_recovered": true,  "complete": true}