API Reference
Full OpenAPI spec for the production caselaw endpoints. Authenticate every request with an X-API-Key header containing your tnk_live_… partner key.
Endpoints
B2B Caselaw API
- POST
/api/v1/caselaw/searchSearch caselaw with hybrid retrieval + cross-encoder rerank - GET
/api/v1/caselaw/document/{doc_id}Fetch a full caselaw document by id - GET
/api/v1/caselaw/sections/{section_number}/casesList cases citing a given Act section - GET
/api/v1/caselaw/usageCurrent-period query count + rolling 7-day usage - POST
/api/v1/caselaw/predict-outcomePredict outcome from a fact pattern (Pro+ only) - GET
/api/v1/caselaw/{doc_id}/citationsCases that the given case cites (outgoing edges) - GET
/api/v1/caselaw/{doc_id}/cited-byCases that cite the given case (incoming edges) - GET
/api/v1/caselaw/{doc_id}/citation-graphN-degree citation neighbourhood as a graph (nodes + edges)
B2B Caselaw Public
- POST
/api/v1/caselaw-public/sandbox/searchPublic sandbox search — IP rate-limited, no API key - POST
/api/v1/caselaw-public/contactSubmit a caselaw partnership inquiry (Business / Enterprise) - GET
/api/v1/caselaw-public/statsLive corpus stats for the /api hero
B2B Caselaw Widget
- GET
/api/v1/widget/{partner_id}/configGet Widget Bootstrap - POST
/api/v1/widget/searchWidget Search - GET
/api/v1/widget/document/{doc_id}Widget Get Document - POST
/api/v1/widget/exportWidget Export