---
title: Document
description: Fetch a single document's full metadata and text by canonical ID.
order: 4
---

`GET /v1/document/{canonical_id}`

Use this after [`/v1/search`](/docs/api-reference/search) or [`/v1/cite`](/docs/api-reference/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

```bash
curl https://api.dike.it.com/v1/document/eg-legislation-241204 \
  -H "Authorization: Bearer $DIKE_API_KEY"
```

## Response

```json
{
  "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 unauthorized`
- `404 not_found` — unknown `canonical_id`
- `503 upstream_unavailable`
