Skip to Content
Developers
API ReferenceCitations

Keyset-paginated outbound or inbound citation edges (1 credit / page).

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

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

direction?string
Default"outbound"
Value in"outbound""inbound"
cursor?string
limit?integer
Range1 <= value <= 100
Default20

Response Body

Citation edges

application/json
  1. response
id*string
Match^[0-9]+$
direction*string
Value in"outbound""inbound"
items*array<>
next_cursor?string|null
has_more*boolean
total?integer|null
total_is_exact*boolean
Example Request
curl -X GET 'https://api.vidhi.shamik.app/api/v1/in/cases/string/citations'
Example Response
{  "id": "string",  "direction": "outbound",  "items": [    {      "edge_id": "string",      "source_case_id": "string",      "target_case_id": "string",      "treatment": "string",      "confidence_score": 0,      "raw_citation_text": "string"    }  ],  "next_cursor": "string",  "has_more": true,  "total": 0,  "total_is_exact": true}