API ReferenceCitations
Keyset-paginated outbound or inbound citation edges (1 credit / page).
GET
BearerAuthheader
AuthorizationBearer <vdh_live_<32_hex> | vdh_test_<32_hex>>id*stringString-encoded BIGINT corpus document ID.
Match
^[0-9]+$direction?stringDefault
"outbound"Value in
"outbound""inbound"cursor?stringlimit?integerRange
1 <= value <= 100Default
20Citation edges
application/json- response
id*stringMatch
^[0-9]+$direction*stringValue in
"outbound""inbound"items*array<>next_cursor?string|nullhas_more*booleantotal?integer|nulltotal_is_exact*booleancurl -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}