TorqueTorque

Search docs

Search Torque documentation pages & sections

Quickstart

Auth

sk_live_… from API Integration

READOptional

GET /intelligence/feed or walletAddress in context

DECIDE

POST /assistant/chat → functionResults (draft wallet_order)

EXECUTE

Actions: on_chain POST /execute/** or merchant torque-checkout SDK → wallet_order committed

[01]Auth

Authenticate

probe-capabilities.sh
# sk_live_… → app.torque.fi → Business Settings → API Integration

curl -sS "https://app.torque.fi/api/v1/capabilities" | jq '.manifestVersion'
[02]READ

Load context

Optional: market context before DECIDE.

read-context.sh
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)'
[03]DECIDE

Decide

POST /decide/assistant/chat content or functionResults.

decide-action.sh
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'
[04]EXECUTE

Execute

POST functionResults to /execute/** with Smart Wallet JWT.

execute-action.sh
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.

Was this helpful?