Update document metadata
Update mutable metadata on a document such as classification, linked session or identity, and custom metadata.
Required scope: documents:write
Authentication
X-API-Keystring
Organization API key. Keys are prefixed with vk_live_ (production) or
vk_sandbox_ (sandbox).
Path parameters
document_id
Document ID (doc_*).
Headers
Verifa-Version
API version date string (e.g. 2026-02-01). If omitted, the version
pinned to your API key is used.
Request
This endpoint expects an object.
classification
Updated document classification.
identity_id
Identity ID to link or unlink.
session_id
Session ID to link or unlink.
metadata
Arbitrary key-value metadata.
status
Manually set document status.
Allowed values:
Response
Document updated.
id
Document ID (doc_*).
document_type
Allowed values:
status
Allowed values:
created_at
org_id
Organization ID.
session_id
Associated session ID, if any.
identity_id
Associated identity ID, if any.
classification
Detected or assigned document classification (e.g. passport, drivers_license).
mime_type
MIME type of the uploaded file.
file_size_bytes
File size in bytes.
original_filename
Original filename at upload time.
page_count
Number of pages (for multi-page documents).
metadata
Arbitrary key-value metadata.
upload_source
How the document was uploaded (api, capture, dashboard).
download_url
HMAC-signed download URL (when available).
updated_at
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
422
Unprocessable Entity Error