Quickstart
sk_live_… from API Integration
GET /intelligence/feed or walletAddress in context
POST /assistant/chat → functionResults (draft wallet_order)
Actions: on_chain POST /execute/** or merchant torque-checkout SDK → wallet_order committed
sk_live_… from API Integration
GET /intelligence/feed or walletAddress in context
POST /assistant/chat → functionResults (draft wallet_order)
Actions: on_chain POST /execute/** or merchant torque-checkout SDK → wallet_order committed
sk_live_… from API Integration
GET /intelligence/feed or walletAddress in context
POST /assistant/chat → functionResults (draft wallet_order)
Actions: on_chain POST /execute/** or merchant torque-checkout SDK → wallet_order committed
Authenticate
# sk_live_… → app.torque.fi → Business Settings → API Integration
curl -sS "https://app.torque.fi/api/v1/capabilities" | jq '.manifestVersion'Load context
Optional: market context before DECIDE.
export TORQUE_KEY="sk_live_…"
curl -sS "https://app.torque.fi/api/v1/intelligence/feed?chainId=8453&includeBrief=1" \
-H "Authorization: Bearer $TORQUE_KEY" \
| jq '.brief.summary, (.items | length)'Decide
POST /decide/assistant/chat → content or functionResults.
export TORQUE_KEY="sk_live_…"
curl -sS -X POST "https://app.torque.fi/api/v1/decide/assistant/chat" \
-H "Authorization: Bearer $TORQUE_KEY" \
-H "Content-Type: application/json" \
-d '{
"messages": [{ "role": "user", "content": "What is the price of ETH?" }],
"context": { "walletAddress": "0x…", "chainId": 8453 }
}' | jq '.content, .functionResults'Execute
POST functionResults to /execute/** with Smart Wallet JWT.
export WALLET_JWT="<smart_wallet_jwt>"
curl -sS -X POST "https://app.torque.fi/api/v1/execute/trades" \
-H "Authorization: Bearer $WALLET_JWT" \
-H "Content-Type: application/json" \
-d '{ ... prepared swap body from functionResults ... }'Routes: API Layout. Third-party: Authentication.
Production SDKs: Server SDKs.