API Layout
Torque Platform API v1 is organized by Financial Action runtime stage — READ → DECIDE → EXECUTE. Legacy paths remain stable aliases; new integrations should adopt the canonical layout below. Capabilities manifest v11 exposes the full route catalog on GET /api/v1/capabilities.
Top-Level Map
meta GET /health, /capabilities, /openapi
accounts GET /accounts/business, /accounts/wallet
read GET /intelligence/feed | views/* | datasets/* | markets/*
decide POST /decide/assistant/chat
execute Actions — on_chain: POST /execute/**
Actions — merchant: torque-checkout SDK + POST /webhooks/order-updateAlias responses include:
- X-Torque-Canonical-Path — preferred path for new clients
- X-Torque-Runtime-Stage — meta | accounts | read | decide | execute
- X-Torque-Read-Profile — feed | dataset | market (READ routes only)
READ — Intelligence
One product lane with three read profiles. Auth: business API key (sk_live_…).
| Profile | Canonical prefix | Use when |
|---|---|---|
| feed | /intelligence/feed, /intelligence/views/* | Editorial carousel, desk lanes |
| dataset | /intelligence/datasets/* | Pipeline DTOs (funding, earnings, events) |
| market | /intelligence/markets/* | Live rate tiles (yield, lend/borrow catalog) |
| Canonical | Legacy aliases | SDK (0.1.3) |
|---|---|---|
| GET /intelligence/feed | — | getFeed() |
| GET /intelligence/views/trade-angles | /intelligence/trade-angles | getTradeAngles() / getView() |
| GET /intelligence/views/happening-now | /intelligence/happening-now | getHappeningNow() / getView() |
| GET /intelligence/views/brief | /intelligence/brief | getView('brief') |
| GET /intelligence/views/market-outlook | /intelligence/market-outlook | getView('market-outlook') |
| GET /intelligence/datasets/funding-radar | /data/funding-radar, /widgets/funding-radar | getDataset('funding-radar') |
| GET /intelligence/datasets/earnings-spotlight | /data/earnings-spotlight, /widgets/… | getDataset('earnings-spotlight') |
| GET /intelligence/datasets/events | /data/events | getDataset('events', { days }) |
| GET /intelligence/markets/yield | /opportunities/yield | getYieldOpportunities() |
| GET /intelligence/markets/lending | /opportunities/lending | getLendingOpportunities() |
Surface guides: Intelligence (feed, datasets, markets).
DECIDE & EXECUTE
| Stage | Canonical | Legacy alias | Auth |
|---|---|---|---|
| DECIDE | POST /decide/assistant/chat | /assistant/chat | sk_live_… |
| EXECUTE | POST /execute/trades | /actions/trade/swap | Smart wallet JWT |
| EXECUTE | POST /execute/trades/solana | /actions/trade/swap/solana | Smart wallet JWT |
| EXECUTE | POST /execute/transfers/evm | /actions/transfer/evm | Smart wallet JWT |
| EXECUTE | POST /execute/transfers/solana | /actions/transfer/solana | Smart wallet JWT |
| EXECUTE | POST /execute/transfers/btc | /actions/transfer/btc | Smart wallet JWT |
| EXECUTE | POST /execute/lends/evm | /actions/lend/evm | Smart wallet JWT |
| EXECUTE | POST /execute/borrows/evm | /actions/borrow/evm | Smart wallet JWT |
| EXECUTE | torque-checkout SDK (pay) | — | sk_live_… + Business ID |
| EXECUTE | POST /webhooks/order-update | — | sk_live_… |
| Accounts | GET /accounts/business | /business/me | sk_live_… |
| Accounts | GET /accounts/wallet | /wallet/me | Smart wallet JWT |
SDK Namespaces
server.ts
import { createTorqueFromEnv } from 'torque-node'
const torque = createTorqueFromEnv()
// READ
await torque.read.intelligence.getFeed({ includeBrief: true })
await torque.read.intelligence.getDataset('events', { days: 30 })
await torque.read.intelligence.getView('trade-angles')
await torque.read.intelligence.getYieldOpportunities()
// DECIDE
await torque.decide.assistant.chat({ messages: [...] })
// Meta — manifest v11 includes layout + routes
await torque.capabilities()Legacy flat accessors torque.intelligence and torque.assistant remain. Install torque-node@^0.1.3 — see Server SDKs.
Was this helpful?