Truework.js (Truework Direct)

Truework.js is the client-side JavaScript library that powers Truework Direct, the borrower-driven (consumer-permissioned) verification flow. The host page loads `https://js.truework.com/v1` and initializes the widget with a session token created server-side via POST /orders/truework-direct, then handles `onComplete`, `onClose`, and `onError` callbacks. Publishable keys (`tw_pk_*` / `tw_pk_test_*`) authenticate the client.

Truework.js (Truework Direct) is one of 5 APIs that Truework publishes on the APIs.io network.

Tagged areas include JavaScript, SDK, and Embedded. The published artifact set on APIs.io includes API documentation and code examples.

API entry from apis.yml

apis.yml Raw ↑
aid: truework:truework-js
name: Truework.js (Truework Direct)
tags:
- JavaScript
- SDK
- Embedded
humanURL: https://www.truework.com/docs/guides/truework-direct/truework-js-reference
baseURL: https://js.truework.com/v1
properties:
- url: https://www.truework.com/docs/guides/truework-direct/truework-js-reference
  type: Documentation
- url: https://www.truework.com/docs/guides/truework-direct/getting-started
  type: Documentation
- url: https://github.com/truework/truework.js-examples
  type: CodeExamples
description: 'Truework.js is the client-side JavaScript library that powers Truework Direct, the borrower-driven
  (consumer-permissioned) verification flow. The host page loads `https://js.truework.com/v1` and initializes
  the widget with a session token created server-side via POST /orders/truework-direct, then handles `onComplete`,
  `onClose`, and `onError` callbacks. Publishable keys (`tw_pk_*` / `tw_pk_test_*`) authenticate the client.

  '