Make a POST request to /orders/truework-direct. Making this POST request creates an order that will contain zero or more verifications, each containing one verification report per employer.
The POST request generates a token that is used to initialize Truework.js, the consumer-facing widget that will enable the user to complete the verification. The token represents a unique instantiation of the widget, including any preloaded employment information. As a best practice, we additionally recommend sending all companies required to verify a borrower’s employment history.
Create an API endpoint that calls /orders/truework-direct to create a unique Truework Direct session token.
Within the frontend UI (e.g. a button), call the API endpoint you created and use the returned session token to initialize the Truework Direct flow. The Truework.js widget will activate when the button is clicked and the user will be guided through the workflow.
Within the target object, it is highly recommended that you specify an action of verify for each company you want the user to verify.
Webhooks can be configured from Developer Settings in the Truework app.
There are two types of webhooks: order completed and verification state change.
Most relevant here are the completed and canceled states. A completed state indicates that new data is now available on the order. A canceled state indicates that a verification was not able to be completed.
The order.completed webhook will be issued when all verifications associated with the order have completed or canceled. Once you receive this webhook you can fetch the order results from the API.
For verifications completed with Smart Outreach, you’ll likely need more granular updates about the data contained within an order. The verification_request.state.change webhook is issued when a verification request in the order changes state.
States: pending-approval → processing → action-required → completed/canceled
To fetch an order, and all verification reports associated with that order, make a GET request to /orders/{order_id}.
The employment report will be in the verification_requests[].reports list in the API response.
Make a GET request to /reports/:verification_report_id using the desired report ID. If you don’t have the report ID, you can also find reports under verification_requests[].reports in the GET /orders/{order_id} response.
Mortgage verifiers are typically required to reverify employment (no income) within 10 days of closing. The Truework API has built in support for this use case for reports that were successfully completed within the last 90 days.
There are two options available to reverify a report - work with your Implementation Manager to determine the best fit for your workflow.
If you have the ability to add a task or direct the borrower back to the online application, you can embed the reverification workflow directly in your system using Truework.js.
Setup Prerequisite: Register for order.applicant_action_required webhook in sandbox Developer Settings. Contact your Implementation Manager if this option isn’t visible.
000-22-0000order.applicant_action_required webhook000-23-0000If Option 1 is not viable for your workflow, Truework can send an email to the borrower to complete the reverification process outside your online application.
Reach out to implementations@truework.com or directly to your Integration Manager.