Skip to content

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

GET https://api.revolutio.systems/document/{documentId}

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):

HTTP/1.1 302 Found
Location: <signed-https-download-url>

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 (.pdf extracts and filings)
  • application/zip (.zip filing 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):

{
  "url": "https://...",
  "fileName": "Certificate_of_Incorporation.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.)
{ "error": "Missing documentId" }
{ "error": "Invalid documentId format" }
{ "error": "Missing Authorization or X-API-Key header" }
{ "error": "Invalid or expired token" }
{ "error": "Document not found" }

Or if the document record exists in metadata but the underlying storage object is missing:

{ "error": "File not found" }
{ "error": "Failed to retrieve document" }

Note

Only GET (and OPTIONS preflight, returning 204 No Content) is supported on /document/{documentId}.

Examples

curl -sSL "https://api.revolutio.systems/document/abc123-doc-id" \
  -H "X-API-Key: $REV_API_KEY" \
  -o document.pdf
curl -sS "https://api.revolutio.systems/document/abc123-doc-id?format=json" \
  -H "X-API-Key: $REV_API_KEY" | jq .

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.