TorqueTorque

Search docs

Search Torque documentation pages and sections

Platform SDKs

Start with API & SDK coverage for the full HTTP→SDK matrix. Use torque-node@^0.1.1 on the server, @torquefi/react in the browser via a BFF, and torque-checkout / torque-webhooks for merchant flows.

Install matrix

PackageUse whenGuide
torque-nodeUnified server client — Intelligence, Assistant, Opportunities, capabilitiesDocs
torque-intelligenceIntelligence + Opportunities only (getFeed, getYieldOpportunities, …)Docs
torque-assistantAssistant chat + SSE onlyDocs
@torquefi/typesShared types — /intelligence, /assistant, /platform, /opportunitiesDocs
@torquefi/reactBFF-oriented React hooks — feeds and Assistant (not opportunities yet)Docs
torque-checkoutMerchant checkout sessions and embed UIDocs
torque-webhooksInbound webhook verify + outbound order status pushDocs
# Backend: one client for feeds + assistant + opportunities
yarn add torque-node@^0.1.1

# Split clients (tree-shaking / single-surface apps)
yarn add torque-intelligence@^0.1.1 torque-assistant@^0.1.0

# Types only
yarn add @torquefi/types@^0.1.1

# React UI (plus server BFF with torque-node)
yarn add @torquefi/react @torquefi/types@^0.1.1

# Merchant checkout + webhooks
yarn add torque-checkout torque-webhooks

Platform packages: @torquefi/types, torque-intelligence, and torque-node at 0.1.1 (Opportunities release). torque-assistant, @torquefi/react, and torque-webhooks remain at 0.1.0.

Authentication

Platform SDKs use a business API key (sk_live_…) server-side only. React hooks never see the key — they call your BFF. See Authentication for the full credential table (business key vs smart wallet JWT for Actions).

Environment variables

TORQUE_API_KEYsk_live_… — required for torque-node and BFF routes
TORQUE_BASE_URLOptional — defaults to https://app.torque.fi/api/v1
ORDER_WEBHOOK_SECRETInbound order-update verification (torque-webhooks)
TORQUE_WEBHOOK_SECRETOutbound webhook signing when Torque ships merchant webhooks

Integrator patterns

Use caseUse
"Earn X% on idle cash" tilesGET /api/v1/opportunities/yield
"Borrow USD at X%" tilesGET /api/v1/opportunities/lending → borrowAction
Macro/news rail with lend linksGET /api/v1/intelligence/feed
React dashboard@torquefi/react BFF + torque-node
Merchant paymentstorque-checkout

See Opportunities API for yield vs lending vs Intelligence vs Actions boundaries.

OpenAPI and raw HTTP

Skip SDKs when you need a non-Node stack or want generated clients from the spec. Use OpenAPI 3.1 (GET /api/v1/openapi) or the domain HTTP guides under Platform API.

Was this helpful?