Documents on file

Attach a document you already hold — a certificate, a UBO declaration, annual accounts — to an entity. Verety reads it once: what kind of document it is, its key facts with the exact words they were read from, and whether each fact matches the registry. Every later investigation uses what it found.

POST  /api/v1/entity/{id}/files

Send the raw file bytes. Content-Type is the file's own type; the filename goes in the name query parameter.

ACCEPTEDNOTES
PDFText or scanned — scans and photos are read visually.
PNG, JPEG, WebPA photo of a document works.
TXT, CSV, DOCX, XLSXText is extracted directly.
Size8 MB per file.

A new file answers 202 in state pending; reading takes a few seconds to a minute. The same document twice is not stored or read again: you get the file already on record, with duplicate: true and status 200.

Over MCP, upload_file takes a public https url (up to 8 MB) or the file as contentBase64 with its contentType (up to 4 MB). Links to private or internal addresses are refused.

GET  /api/v1/entity/{id}/files

The documents on file for this entity — uploaded by your team or your systems, and collected during checks. Each: id, name, size, contentType, source (uploaded, collected, api), uploadedAt, status (pending · ready · failed), documentType and a one-line summary. A collected document that could not be downloaded is kept as a link (link: true, sourceUrl).

GET  /api/v1/entity/{id}/files/{fileId}

One document with what was found in it:

FIELDDESCRIPTION
docType · documentTypeThe kind of document: incorporation, ubo, accounts, address, director, group (group structure chart) or other, and its label.
summary · resultWhat it shows, and PASS / REVIEW / FAIL — REVIEW when a fact differs from the registry.
keyFacts[]The facts for its type. Each: label, value, detail (for an owner, director, subsidiary or related company: the share, role or country stated with the name, when there is one), quote (the exact words), page, and check — match, differs, none (nothing to compare with) or edited (corrected by your team, with correctedFrom) — plus a note naming the source.
otherFacts[] · dates[]Other facts and dates printed in the document.

The document's text and where it is stored are never returned.

Ownership

Documents belong to the key's account. Another account investigating the same entity never sees them.

Errors

STATUSCODEWHEN
400missing_name · empty_fileNo filename, or no bytes.
403country_not_entitledThe id belongs to a country outside your key.
404unknown_id · not_foundThe id is not a company id, or no such file.
413file_too_largeOver 8 MB (4 MB as base64 over MCP).
415unsupported_typeNot one of the accepted types.
422download_failedMCP url could not be downloaded; detail says why.

Example

curl -X POST -H "x-api-key: vk_live_…" -H "Content-Type: application/pdf" \ --data-binary @certificate.pdf \ "https://app.verety.ai/api/v1/entity/uen-201912345K/files?name=certificate.pdf" # a few seconds later curl -H "x-api-key: vk_live_…" "https://app.verety.ai/api/v1/entity/uen-201912345K/files/9698b8a6-…" { "status": "ready", "docType": "incorporation", "documentType": "Certificate of incorporation", "result": "REVIEW", "keyFacts": [ { "label": "Company number", "value": "201912345K", "quote": "Company No. 201912345K", "page": 1, "check": "match", "note": "ACRA" }, { "label": "Incorporated", "value": "2019-04-12", "quote": "incorporated on 12 April 2019", "page": 1, "check": "differs", "note": "ACRA has “2019-03-30”" } ] }
ON THIS PAGE