Sandbox
Update a sandbox document
Changed onPartially updates a library entry's metadata. The file itself is set at create and cannot be replaced. PUT behaves identically.
patch/v1/sandbox/documents/{document_id}/
Request
- Base URLhttps://prod.truv.com
- URLhttps://prod.truv.com/v1/sandbox/documents/{document_id}/
- AuthAPI key in header X-Access-Client-Id and API key in header X-Access-Secret
Request body
Example request
{
"filename": "acme-w2-2025.pdf",
"documents": [
{
"document_type": "PAYSTUB",
"identity": {
"full_name": "John Doe",
"first_name": "John",
"last_name": "Doe",
"ssn": "991-91-9991"
},
"company_name": "Acme Inc.",
"start_page": 1,
"end_page": 2
}
],
"status": "invalid",
"validations": {
"is_readable": false
},
"last_error": "The file could not be read."
}Response
Example response
{
"id": "3f1c8a90b7d2416e9a5c0e4f2b8d6a17",
"uploaded_file": {
"file_id": "3f1c8a90b7d2416e9a5c0e4f2b8d6a17",
"filename": "acme-w2-2025.pdf",
"mime_type": "application/pdf",
"size": 48219,
"md5": "9f2b1c0d4e6a8b3f5c7d9e1a2b4c6d8e",
"file": "https://s3.amazonaws.com/...",
"status": "successful",
"validations": {
"is_viable_size": true,
"is_supported_type": true,
"is_accessible": true,
"is_valid": true,
"is_readable": true,
"is_unique": true
}
},
"documents": [
{
"document_type": "PAYSTUB",
"identity": {
"full_name": "John Doe",
"first_name": "John",
"last_name": "Doe",
"ssn": "991-91-9991"
},
"company_name": "Acme Inc.",
"start_page": 1,
"end_page": 2
}
],
"created_at": "2026-09-17T10:11:02.104882Z",
"updated_at": "2026-09-17T10:11:02.104901Z"
}Changes
- info
endpoint added
- info