Judgments
India Judgment PDF
Call GET /india/judgments/{judgment_id}/pdf on the Corpus API.
GET /india/judgments/{judgment_id}/pdf
Call GET /india/judgments/{judgment_id}/pdf on the Corpus API.
Category: India · Judgments
Authentication
Send the provisioned API key in the X-API-KEY header.
Required scopes: india:read, litigation:read.
Request
| Name | In | Required | Type | Constraints | Description |
|---|---|---|---|---|---|
| judgment_id | path | yes | string | — | — |
Example request
curl --request GET \
--url 'https://corpus-api.onera.app/india/judgments/judgment-example/pdf' \
--header "X-API-KEY: ${CORPUS_API_KEY}"
Responses
| Status | Description | Content type | Schema |
|---|---|---|---|
| 200 | The source judgment PDF. | application/pdf | string (binary) |
| 400 | Invalid parameter combination | application/json | ErrorResponse |
| 401 | Missing or invalid API key | application/json | ErrorResponse |
| 403 | Insufficient jurisdiction or scope | application/json | ErrorResponse |
| 404 | Unknown resource | application/json | ErrorResponse |
| 422 | Request schema validation failed | application/json | ErrorResponse |
| 429 | Rate limit exceeded | application/json | ErrorResponse |
| 503 | Source content is unavailable or still processing | application/json | ErrorResponse |
Representative 200 response
The successful response uses application/pdf.