TorqueTorque

Search docs

Search Torque documentation pages & sections

API Catalog

Entry point for Torque Platform API v1. Routes group by runtime stage (READ → DECIDE → EXECUTE). Start with Authentication, pick an integration path, or browse OpenAPI below.

At a Glance

Base URLhttps://app.torque.fi/api/v1
Capabilitieshttps://app.torque.fi/api/v1/capabilities
Manifest versionv20
Rate limit100 requests / minute per business API key

Probe GET /capabilities (no auth) for the live route manifest, operations block, and data catalog. Errors and idempotency: Errors & Limits.

Runtime Stages

StageIntegrator surface
READGET /read/portfolio, portfolioData in Assistant context, Intelligence feeds
DECIDEAssistant functionResults, Checkout SDK session (merchant pay)
EXECUTEPOST /execute/** (on_chain) or torque-checkout SDK + webhooks (merchant)

Canonical path prefixes: API layout. Primitive schema: Platform & Lifecycle.

API Layout

Canonical paths map to runtime stages and read profiles. Legacy aliases stay stable. Full route list: below.

Stage Map

meta          GET /health, /capabilities, /openapi
accounts      GET /accounts/business, /accounts/wallet, /accounts/end-users/*
read          GET /intelligence/feed | views/* | datasets/* | markets/*, /read/portfolio
decide        POST /decide/assistant/chat, /decide/fulfillment
connect       POST /connect/confirm, /connect/confirm/complete, /connect/authorize/*, /connect/token
execute       POST /execute/** (on_chain) · torque-checkout SDK + webhooks (merchant)

Alias responses include X-Torque-Canonical-Path, X-Torque-Runtime-Stage, X-Torque-Read-Profile. Details: Errors & Limits.

READ Profiles

Intelligence routes use three read profiles under sk_live_…. Full shapes: Intelligence.

ProfileCanonical prefixUse when
feed/intelligence/feed, /intelligence/views/*Editorial carousel and desk lanes
dataset/intelligence/datasets/*Pipeline DTOs (funding, earnings, events)
market/intelligence/markets/*Live rate tiles (yield, lend/borrow catalog)

Operations (manifest v20)

rateLimits.businessApiKey     → 100 req/min, 429 RATE_LIMIT_EXCEEDED + Retry-After
idempotency.executeRoutes → Idempotency-Key header, 24h replay on POST /execute/**
aliasHeaders              → X-Torque-Canonical-Path, X-Torque-Runtime-Stage, …

SDK Entry Points

server.ts
import { createTorqueFromEnv } from 'torque-node'

const torque = createTorqueFromEnv()

await torque.read.intelligence.getFeed({ includeBrief: true })
await torque.read.portfolio.getPortfolio({ walletAddress: '0x…' })
await torque.decide.assistant.chat({ messages: [...] })
await torque.capabilities()

Assistant Read Families

FamilyAssistant toolSDK namespace
portfolioread_portfoliotorque.read.portfolio
marketread_markettorque.read.market
ratesread_ratestorque.read.rates
taperead_tapetorque.read.tape
researchread_researchtorque.read.research
intelligenceread_intelligencetorque.read.intelligence
planread_plantorque.read.plan
commerceread_commercetorque.read.commerce

Assistant Tool Surface

Read-family and research tools return answers in content and structured payloads (e.g. thesisCard, display_data_table). No settlement without a separate signable functionResult. Write verbs (trade, transfer, lend, borrow, schedule, pay) return functionResults with requiresConfirmation — client signs via smart wallet JWT on POST /execute/** or Connect hosted confirm. Query examples.

GroupExample toolsTry asking

Portfolio & balance

Unified portfolio balances and net worth.

get_portfolio_summary, get_token_balance, get_native_bitcoin_balance

What's my net worth?

How much USD do I have?

Prices, charts & movers

Spot marks, history, and market tape.

get_token_price, get_price_history, get_market_movers, get_stock_prices

Price of ETH?

BTC chart over the last month

Futures & perps

GMTrade / Hyperliquid-linked commodity and crypto perps.

get_perp_market_info, get_perp_positions, get_open_orders

Show my futures positions

Funding rate on BTC perps?

Weather & commodities

Hub weather + structured thesisCard (precedent episodes, perp legs, NAV sizing).

get_weather

Gulf storm thesis for crude

North Sea cold snap — BRENTOIL vs CL

Equity & macro research

Fundamentals, filings, estimates, and screens.

get_financial_metrics, get_analyst_estimates, get_sec_filings, screen_stocks, get_investor_holdings

AAPL revenue breakdown

What does Berkshire own?

News & desk intel

Headlines, macro desk, investigative reports, web search/fetch.

get_crypto_news, get_macro_desk, get_company_news, web_search, web_fetch

Latest on NVDA

What's the macro desk saying?

Yield & lending rates

Cross-venue APY/APR and idle-cash ideas.

get_evm_lending_market_rates, get_auto_yield_ideas, get_payment_app_yield_rates

USD lending rates?

Where should I park idle USDC?

Automations & scanners

Torque Pro: market scanners, recurring buys, execution policies.

create_market_scanner, list_market_scanners, schedule_portfolio_recurring_buy, set_execution_policy

Notify me when BTC drops 5%

Weekly $50 ETH buy

Tables & strategies

Structured outputs grounded in live reads.

display_data_table, create_capital_strategy, search_market_insights

Portfolio risk table

60/30/10 allocation from my book

Pay, invoice & checkout

Payment requests, invoices, and merchant checkout links.

create_payment_request_link, generate_checkout_link, create_product_and_checkout_link

Invoice for 250 USD

Create a checkout link

OpenAPI

OpenAPI 3.1 for codegen, contract tests, and agent tooling.

Live (recommended)https://app.torque.fi/api/v1/openapi

Matches production routes

Static JSONhttps://app.torque.fi/openapi/torque-v1.openapi.json

Pinned in CI

Docs proxy/api/torque-v1-openapi

Same-origin; avoids browser CORS

curl -sS "https://app.torque.fi/api/v1/openapi" | jq '.info.title, (.paths | keys | length)'

npx openapi-typescript "https://app.torque.fi/api/v1/openapi" -o ./torque-v1.d.ts

Route Catalog

All 36 canonical Platform API v1 routes, grouped by runtime stage. Prefer canonical paths; legacy aliases remain stable. For codegen, use OpenAPI above.

Base URLhttps://app.torque.fi/api/v1
Routes36
Rate limit100 requests / minute (business key)

Meta

Health, capabilities manifest, OpenAPI, and Connect token verification.

MethodCanonical pathAliasesAuthSummary
GET/api/v1/healthNoneNoneLiveness probe
GET/api/v1/capabilitiesNoneNoneCapability manifest + entitlements catalog
GET/api/v1/openapiNoneNoneOpenAPI 3.1 document
GET/api/v1/connect/confirm/verifyNoneNoneVerify hosted execute confirm token

Accounts & Connect

Identity probes, Connect consent, and partner end-user wallet provisioning.

MethodCanonical pathAliasesAuthSummary
GET/api/v1/accounts/business/api/v1/business/mesk_live_…Merchant identity for API key
GET/api/v1/accounts/wallet/api/v1/wallet/meSmart wallet JWTUser identity for smart wallet JWT
POST/api/v1/accounts/end-usersNonesk_live_…Provision partner end-user wallet (EVM + Solana + BTC deposit); idempotent on externalUserId
GET/api/v1/accounts/end-usersNonesk_live_…List partner-provisioned end-users for business API key
GET/api/v1/accounts/end-users/{externalUserId}Nonesk_live_…Get partner end-user addresses by externalUserId
GET/api/v1/accounts/end-users/{externalUserId}/depositsNonesk_live_…List deposit events for a partner end-user wallet
POST/api/v1/connect/authorize/sessionNonesk_live_…Mint OAuth authorize session for Connect with Torque
POST/api/v1/connect/authorize/completeNoneNoneUser approves Connect OAuth session (hosted page)
POST/api/v1/connect/tokenNonesk_live_…Exchange Connect authorization code or refresh delegated JWT

Read

Intelligence feeds, datasets, markets, and portfolio read.

MethodCanonical pathAliasesAuthSummary
GET/api/v1/intelligence/feedread profile: feedNonesk_live_…Primary narrative feed (IntelligenceItemV1)
GET/api/v1/intelligence/views/trade-anglesread profile: feed/api/v1/intelligence/trade-anglessk_live_…Desk trade angles view
GET/api/v1/intelligence/views/happening-nowread profile: feed/api/v1/intelligence/happening-nowsk_live_…Timely signals view
GET/api/v1/intelligence/views/briefread profile: feed/api/v1/intelligence/briefsk_live_…Hero brief item
GET/api/v1/intelligence/views/market-outlookread profile: feed/api/v1/intelligence/market-outlooksk_live_…Stored market outlook
GET/api/v1/intelligence/datasets/earnings-spotlightread profile: dataset · earnings-spotlight/api/v1/data/earnings-spotlight, /api/v1/widgets/earnings-spotlightsk_live_…Upcoming earnings spotlight
GET/api/v1/intelligence/datasets/eventsread profile: dataset · events/api/v1/data/eventssk_live_…Economic events calendar
GET/api/v1/intelligence/markets/yieldread profile: market/api/v1/opportunities/yieldsk_live_…Yield spotlight + idle-cash ideas
GET/api/v1/intelligence/markets/lendingread profile: market/api/v1/opportunities/lendingsk_live_…Lend/borrow catalog rates
GET/api/v1/read/portfolioNonesk_live_…Cross-chain product-bucket portfolio (read-only)

Decide

Assistant chat, fulfillment preview, and hosted execute confirm.

MethodCanonical pathAliasesAuthSummary
POST/api/v1/connect/confirmNonesk_live_…Mint hosted execute confirm token from functionResults
POST/api/v1/connect/confirm/completeNoneNoneReport hosted execute completion and dispatch partner webhook
POST/api/v1/decide/assistant/chat/api/v1/assistant/chatsk_live_…Torque Intelligence chat (functionResults for confirm)
POST/api/v1/decide/fulfillmentNoneSmart wallet JWTPortfolio fulfillment preview for transfer/checkout (DECIDE)

Execute

Unsigned transaction builders for trades, transfers, lend, and borrow.

MethodCanonical pathAliasesAuthSummary
POST/api/v1/execute/trades/api/v1/actions/trade/swapSmart wallet JWTBuild unsigned EVM swap route (Enso)
POST/api/v1/execute/trades/solana/api/v1/actions/trade/swap/solanaSmart wallet JWTBuild unsigned Solana swap (Jupiter Ultra)
POST/api/v1/execute/transfers/evm/api/v1/actions/transfer/evmSmart wallet JWTBuild unsigned EVM transfer
POST/api/v1/execute/transfers/solana/api/v1/actions/transfer/solanaSmart wallet JWTBuild unsigned Solana transfer
POST/api/v1/execute/transfers/btc/api/v1/actions/transfer/btcSmart wallet JWTCustodial BTC send from deposit
POST/api/v1/execute/lends/evm/api/v1/actions/lend/evmSmart wallet JWTEnso lend delegate bundle
POST/api/v1/execute/borrows/evm/api/v1/actions/borrow/evmSmart wallet JWTEnso borrow delegate bundle
POST/api/v1/funding/peer/create-deposit/prepare/api/v1/actions/peer-yield/supplyNonePrepare payment-app yield maker deposit (requires credential bundle)
POST/api/v1/funding/peer/withdraw-deposit/prepare/api/v1/actions/peer-yield/withdrawNonePrepare payment-app yield maker withdraw

Merchant checkout uses the Checkout SDK and Webhooks, not routes in this catalog.

Integration paths

Questions or corrections? hello@torque.fi