# Truework.js (Truework Direct)

**Canonical:** https://apis.io/apis/truework/truework-js/  
**Provider:** Truework — https://apis.io/providers/truework/  
**Base URL:** https://js.truework.com/v1  
**Documentation:** https://www.truework.com/docs/guides/truework-direct/truework-js-reference

Truework.js (Truework Direct) is one of 5 APIs that [Truework](https://apis.io/providers/truework/) publishes on the [APIs.io](https://apis.io/) network. Tagged areas include JavaScript, SDK, and Embedded. The published artifact set on APIs.io includes API documentation and code examples.

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.

## Machine-readable artifacts (4)

- **Documentation** — https://www.truework.com/docs/guides/truework-direct/truework-js-reference
- **Documentation** — https://www.truework.com/docs/guides/truework-direct/getting-started
- **CodeExamples** — https://github.com/truework/truework.js-examples
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/truework/refs/heads/main/apis.yml

## Other Truework APIs (4)

- [Truework subpackage_orders API](https://apis.io/apis/truework/truework-subpackage-orders-api/)
- [Truework subpackage_qualificationChecks API](https://apis.io/apis/truework/truework-subpackage-qualificationchecks-api/)
- [Truework subpackage_reports API](https://apis.io/apis/truework/truework-subpackage-reports-api/)
- [Truework subpackage_tenantProperties API](https://apis.io/apis/truework/truework-subpackage-tenantproperties-api/)

## Tags

JavaScript, SDK, Embedded

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/truework/truework-js/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/truework/.
