Document
Fetch a single document's full metadata and text by canonical ID.
GET /v1/document/{canonical_id}
Use this after /v1/search or /v1/cite to hydrate a canonical_id into the complete document, including full_text (neither of those endpoints returns full text — search caps at an 800-char snippet, cite returns metadata only).
Request
curl https://api.dike.it.com/v1/document/eg-legislation-241204 \
-H "Authorization: Bearer $DIKE_API_KEY"Response
{
"canonical_id": "eg-legislation-241204",
"doc_type": "legislation",
"jurisdiction": "EG",
"title": "القانون المدني",
"official_number": "131",
"year_gregorian": 1948,
"status": "in_force",
"issuing_body": "البرلمان المصري",
"full_text": "..."
}Errors
401 unauthorized404 not_found— unknowncanonical_id503 upstream_unavailable