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.
| ACCEPTED | NOTES |
|---|---|
| Text or scanned — scans and photos are read visually. | |
| PNG, JPEG, WebP | A photo of a document works. |
| TXT, CSV, DOCX, XLSX | Text is extracted directly. |
| Size | 8 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:
| FIELD | DESCRIPTION |
|---|---|
docType · documentType | The kind of document: incorporation, ubo, accounts, address, director, group (group structure chart) or other, and its label. |
summary · result | What 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
| STATUS | CODE | WHEN |
|---|---|---|
| 400 | missing_name · empty_file | No filename, or no bytes. |
| 403 | country_not_entitled | The id belongs to a country outside your key. |
| 404 | unknown_id · not_found | The id is not a company id, or no such file. |
| 413 | file_too_large | Over 8 MB (4 MB as base64 over MCP). |
| 415 | unsupported_type | Not one of the accepted types. |
| 422 | download_failed | MCP url could not be downloaded; detail says why. |