Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Uploading encoded documents to an entity

Instead of using a verification link, use this endpoint to upload documents directly via API.

This endpoint allows you to upload base64 encoded entity documents directly via API, instead of using a URL. You may want to do this to fully customise the look and feel of the verification process within your website or application.

Each call can only receive one document. Make sure to send the necessary data in the docSubType parameter.

File size: this endpoint accepts up to 1 MB of base64 text, which is about 750 KB of file. For larger files (up to 6 MB), use Uploading documents to an entity. It takes the same base64 inside a JSON object.

The entity must belong to the workspace your API key belongs to. If applicantId is empty, can't be found, or belongs to another workspace, nothing is uploaded and the endpoint returns entity_not_found (see the Not found response below).


Upload documents to your applicant

POST /api-entity-document-upload-encoded

Upload a base64 encoded document to an entity, ready for processing.

Name
Value

Content-Type

multipart/form-data

Authorization

Bearer YOUR_TOKEN

Body

Name
Type
Description

applicantId

string

Unique applicantId generated on applicant creation (required)

docSubType

string

The corporate document type - see next page for the different types.(optional)

fileName

string

The name of the file, including the extension (.jpg, .jpeg, .png, and .pdf) (required)

docFile

string

File content in base64 encoded format, up to 1 MB of base64 (about 750 KB of file) (required)

Request

Response

Returned when applicantId is empty, can't be found, or belongs to another workspace. Nothing is uploaded.

Last updated

Was this helpful?