Document Retrieval¶
Download proof documents associated with entities. Documents are official registry extracts, filings, and archive bundles (.pdf, .zip, or binary .octet-stream) captured during searches.
Get document¶
Request¶
Headers
| Header | Value |
|---|---|
X-API-Key or Authorization |
API key or Bearer token |
Accept |
Optional. Pass application/json (without application/pdf) to receive a JSON payload with the signed URL instead of an HTTP redirect |
Path parameters
| Parameter | Type | Description |
|---|---|---|
documentId |
string | Document ID (_documentID on the entity; alphanumeric characters and hyphens [a-zA-Z0-9-]+) |
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
format |
string | No | Set format=json to return 200 OK with { "url", "fileName" } instead of the default 302 Found redirect |
Response¶
By default, GET /document/{documentId} issues a time-limited signed download URL (valid for 15 minutes) and responds with 302 Found redirecting directly to that download URL. Pass -L (--location) in curl or follow redirects in your HTTP client to download the file bytes.
Browser clients that want to avoid cross-origin redirect handling can pass ?format=json (or Accept: application/json) to receive 200 OK with the signed URL and filename in JSON.
Redirects to a time-limited signed HTTPS download URL (valid for 15 minutes):
Following the Location URL streams the stored file with headers determined by the stored object extension:
Content-Type: application/pdf
Content-Disposition: inline; filename="Certificate_of_Incorporation.pdf"
Supported stored content types:
application/pdf(.pdfextracts and filings)application/zip(.zipfiling archives, e.g. Italian or statutory bundle filings)application/octet-stream(other binary registry attachments)
Returned when ?format=json is set or Accept: application/json is sent (without application/pdf):
| Field | Type | Description |
|---|---|---|
url |
string | Time-limited signed HTTPS download URL (valid for 15 minutes) |
fileName |
string | Sanitized download filename including extension (.pdf, .zip, etc.) |
Or if the document record exists in metadata but the underlying storage object is missing:
Note
Only GET (and OPTIONS preflight, returning 204 No Content) is supported on /document/{documentId}.
Examples¶
Finding document IDs¶
Document IDs appear on Entity objects under sourceDocuments:
{
"sourceDocuments": [
{
"_documentID": "abc123-doc-id",
"_entityID": "entity-uuid",
"dateRetrieved": "15-01-2026",
"name": "Certificate of Incorporation",
"source": "Companies House"
}
]
}
Use _documentID as the path parameter. Prefer reading documents from case.target (and nested counterparties) after a completed search, or from GET /search/{id}/status → result.sourceDocuments.