API Reference
Platform HTTP API v1 lives at https://app.torque.fi/api/v1. Start with API Overview for the surface map, then follow domain guides for request/response contracts.
Documentation by domain
Platform SDK
torque-node — unified Intelligence, Assistant, and capabilities client.
Intelligence API
Manifest v7 feed, IntelligenceItemV1, action tiles, and BFF patterns.
Opportunities API
Yield Spotlight + Lend/Borrow markets — structured APY/APR discovery.
Assistant API
POST /api/v1/assistant/chat — streaming, functionResults, execution flow.
Actions API
POST /api/v1/actions/** — trade, transfer, lend, borrow with wallet JWT.
Checkout SDK
torque-checkout npm package, env vars, and merchant flows.
OpenAPI
OpenAPI 3.1 spec — live endpoint, static JSON, Swagger UI, codegen.
Authentication
Business keys vs smart wallet JWT — credential decision table.
Endpoint index
| Method | Path | Auth |
|---|---|---|
| GET | /api/v1/health | None |
| GET | /api/v1/capabilities | None |
| GET | /api/v1/openapi | None |
| GET | /api/v1/business/me | sk_live_… |
| GET | /api/v1/wallet/me | Smart wallet JWT |
| GET | /api/v1/intelligence/feed | sk_live_… |
| GET | /api/v1/intelligence/trade-angles | sk_live_… |
| GET | /api/v1/intelligence/happening-now | sk_live_… |
| GET | /api/v1/intelligence/brief | sk_live_… |
| GET | /api/v1/intelligence/market-outlook | sk_live_… |
| GET | /api/v1/opportunities/yield | sk_live_… |
| GET | /api/v1/opportunities/lending | sk_live_… |
| POST | /api/v1/assistant/chat | sk_live_… (programmatic) |
| POST | /api/v1/actions/trade/swap | Smart wallet JWT |
| POST | /api/v1/actions/trade/swap/solana | Smart wallet JWT |
| POST | /api/v1/actions/transfer/evm | Smart wallet JWT |
| POST | /api/v1/actions/transfer/solana | Smart wallet JWT |
| POST | /api/v1/actions/transfer/btc | Smart wallet JWT |
| POST | /api/v1/actions/lend/evm | Smart wallet JWT |
| POST | /api/v1/actions/borrow/evm | Smart wallet JWT |
| POST | /api/v1/actions/stake/evm | Smart wallet JWT |
| POST | /api/webhooks/order-update | sk_live_… |
Request/response schemas are in the OpenAPI 3.1 spec (GET /api/v1/openapi). Domain guides add narrative context, execution flows, and rate-limit behavior.
Rate limits
Per-key v1 rate limits are not implemented yet. The limits below are actually enforced in production.
| Surface | Limit | Error |
|---|---|---|
| Intelligence force=1 | 5 min cooldown per wallet | 429 COOLDOWN + retryAfterMs |
| Assistant chat (free tier) | 20 messages / 30 days per wallet | 402 assistant_credits_exhausted |
Authentication quick reference
# Business / integrator (intelligence, checkout, server chat)
Authorization: Bearer sk_live_…
# End-user wallet actions
Authorization: Bearer <smart_wallet_jwt>Full guide: Authentication.