> ## Documentation Index
> Fetch the complete documentation index at: https://docs.truv.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Smart Routing Demo

> Check employer payroll coverage and route applicants to the fastest verification method

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](https://github.com/truvhq/demo-apps#consumer-credit)

```bash theme={null}
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"
```

<img src="https://mintcdn.com/truv/xdZxh_j1HXZYzFiN/images/demos/consumer-credit/smart-routing.png?fit=max&auto=format&n=xdZxh_j1HXZYzFiN&q=85&s=889062e868cf9a00b9c660a4a0c2d622" alt="Smart Routing demo" width="1200" height="676" data-path="images/demos/consumer-credit/smart-routing.png" />

## Flow

<Steps>
  <Step title="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=...
    ```
  </Step>

  <Step title="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: [...] }
    ```
  </Step>

  <Step title="Connect via Bridge and fetch report">
    Bridge opens with the selected method. After completion, fetch the report.

    ```
    POST /v1/users/{user_id}/reports/
    ```
  </Step>
</Steps>

**Integration pattern:** [Bridge Widget](/developers/integration/bridge-widget/overview) | **Products:** VOIE
