Skip to main content
The Document model is used to handle file uploads. This is essential for any check that requires documentary evidence, such as ID verification (IDV), proof of address, or reviewing a company’s incorporation documents. The typical workflow is to first upload the document to get a document id, and then reference that id as document_ids when creating a Case or Check.
id
integer
required
A unique identifier for the document.
case
integer
The ID of the case this document is associated with.
check
integer
The ID of the check this document is associated with.
file
string
required
The Base64 encoded content of the file.
original_name
string
The original name of the uploaded file.
created_at
string
required
The timestamp when the document was created.
updated_at
string
required
The timestamp when the document was last updated.
delete_after
integer
Number of days until the document is automatically deleted. Use 0 for immediate deletion, or -1 for indefinite retention (never delete). Max 365. Defaults to -1 (indefinite).