Quickstart
We recommend using Python (works on all platforms):Collection Attributes
The table below covers the attributes returned when listing document collections.| Attribute | Type | Description |
|---|---|---|
| collection_id | string | Unique identifier for the collection |
| created_at | date-time | Date and time when the collection was created |
| updated_at | date-time | Date and time when the collection was last updated |
| files_count | integer | Number of uploaded files in the collection |
| documents_count | integer | Number of recognized documents in the collection |
| users_count | integer | Number of users associated with the collection |
Uploaded File Attributes
The table below covers the attributes for uploaded files within a collection.| Attribute | Type | Description |
|---|---|---|
| file_id | string | Unique identifier for the uploaded file |
| filename | string | Name of the uploaded file |
| mime_type | string | MIME type of the file, valid values: application/pdf, image/jpeg, image/png, image/tiff, image/webp, image/x-ms-bmp, image/heic, image/heif |
| status | string | Processing status of the file, valid values: pending, validating, validated, invalid, duplicate, processing, successful, failed |
| validations | object, null | File validation results containing is_viable_size, is_supported_type, is_accessible, is_valid, is_readable, is_unique |
| user_id | string, null | Truv user ID associated with this file |
| external_user_id | string, null | External system user ID associated with this file |
Recognized Document Attributes
The table below covers the attributes for documents recognized within uploaded files.| Attribute | Type | Description |
|---|---|---|
| document_id | string | Unique identifier for the recognized document |
| file_id | string | ID of the uploaded file containing this document |
| document_type | string | Type of the document, valid values: PAYSTUB, W2, F1099, F1040, BANK_STATEMENT, PASSPORT, GREEN_CARD, DRIVER_LICENSE, LETTER_OF_VERIFICATION, UTILITY_BILL, LEASE_AGREEMENT, INSURANCE_HOME_POLICY, INSURANCE_AUTO_POLICY, VOLUNTEER_LETTER, OTHER |
| document_subtype | string, null | Subtype of the document, valid values: F1099_MISC, F1099_NEC, F1099_DIV, F1099_INT, F1099_G, F1099_R, F_SSA1099, VOL_TRANSCRIPT, VOL_HOURS_LOG |
| status | string | Processing status of the document, valid values: successful, failed, rejected |
| first_name | string, null | First name extracted from the document |
| last_name | string, null | Last name extracted from the document |
| user_id | string, null | Truv user ID associated with this document |
| external_user_id | string, null | External system user ID associated with this document |
| start_page | integer | Starting page number of the document within the file |
| end_page | integer | Ending page number of the document within the file |
Finalization
After documents in a collection have been processed and categorized, use the finalize endpoint to create links for the recognized documents. This step converts the pre-processed documents into usable Truv links for retrieving income and employment data.Finalize request attributes
The finalize endpoint returns a response containing users with their associated links and documents.User Object
| Attribute | Type | Description |
|---|---|---|
| id | string | Truv user ID |
| external_user_id | string, null | External system user ID (optional) |
| links | array | List of links created or updated for this user |
Link Object
| Attribute | Type | Description |
|---|---|---|
| link_id | string | Truv link ID |
| status | string | Current status of the link, valid values: new, parse, full_parse, done, no_data, config_error, error, unavailable. Final statuses (processing complete): done, no_data, config_error, error, unavailable |
| documents | array | List of documents associated with this link |
Document Object (in Finalize Response)
| Attribute | Type | Description |
|---|---|---|
| id | string | Recognized document ID |
| document_type | string | Type of the document (uppercase), e.g., PAYSTUB, W2 |
| document_subtype | string, null | Subtype of the document (uppercase, optional) |
Endpoints
Use the endpoints below to manage document collections.- List all document collections
- Create a new document collection
- Get document collection details
- Delete a document collection
- Upload files to existing collection
- Get uploaded file details
- Delete an uploaded file
- Finalize a collection
- Get collection finalization results