Skip to main content

Documentation Index

Fetch the complete documentation index at: https://truv.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

The Smart Routing demo checks an employer’s payroll coverage and recommends the best verification path — payroll, bank transactions, or document upload — based on actual coverage data. Source: GitHub
git clone https://github.com/truvhq/demo-apps.git
cd demo-apps && npm install && cp .env.example .env
npm start && npm run dev  # select "Consumer Credit" → "Smart Routing"
Smart Routing demo

Flow

1

Check employer coverage

The applicant enters their employer name. The backend checks payroll coverage and returns a success_rate.
GET /v1/company-mappings-search/?query=...
2

Create user and bridge token with recommended method

Based on success_rate, the UI recommends a data_sources value. The backend creates a user and token.
POST /v1/users/
POST /v1/users/{id}/tokens/
# { product_type: "income", data_sources: [...] }
3

Connect via Bridge and fetch report

Bridge opens with the selected method. After completion, fetch the report.
POST /v1/users/{user_id}/reports/
Integration pattern: Bridge Widget | Products: VOIE