Torque Connect API
The Connect API from Torque — 6 operation(s) for connect.
The Connect API from Torque — 6 operation(s) for connect.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/torque-fi:torque-fi-connect-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Torque API v1 Connect API
version: '24'
description: Versioned Platform API for Torque Intelligence (READ), Assistant (DECIDE), and wallet execution (EXECUTE). Business integrators use Bearer sk_live_… (100 requests/minute per key; success responses include X-RateLimit-*; 429 adds Retry-After). Wallet execution requires smart wallet JWT; optional Idempotency-Key on POST execute routes (24h replay). Intelligence schema manifest v7. Legacy paths (/data, /opportunities, /actions, …) are deprecated aliases — see route catalog and X-Torque-Canonical-Path headers.
contact:
name: Torque
url: https://torque.fi
servers:
- url: https://app.torque.fi
description: Production
- url: http://localhost:3000
description: Local development
tags:
- name: Connect
paths:
/api/v1/connect/confirm:
post:
tags:
- Connect
summary: Mint hosted execute confirm session
x-torque-runtime-stage: decide
security:
- businessApiKey: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectConfirmPostBody'
responses:
'200':
description: Confirm token and hosted URL
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectConfirmResponseV1'
'401':
description: Invalid or missing business API key
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
operationId: postApiV1ConnectConfirm
x-operation-id-source: derived
/api/v1/connect/confirm/verify:
get:
tags:
- Connect
summary: Verify hosted execute confirm token
x-torque-runtime-stage: meta
parameters:
- name: token
in: query
required: true
description: Confirm JWT from createConfirmSession
schema:
type: string
responses:
'200':
description: Confirm payload for hosted page
'401':
description: Invalid or expired confirm token
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
operationId: getApiV1ConnectConfirmVerify
x-operation-id-source: derived
/api/v1/connect/confirm/complete:
post:
tags:
- Connect
summary: Report hosted execute completion
x-torque-runtime-stage: decide
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- token
- status
properties:
token:
type: string
status:
type: string
enum:
- success
- error
txHash:
type: string
error:
type: string
responses:
'200':
description: Webhook dispatched when configured
'401':
description: Invalid or expired confirm token
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
operationId: postApiV1ConnectConfirmComplete
x-operation-id-source: derived
/api/v1/connect/token:
post:
tags:
- Connect
summary: Exchange Connect code or refresh delegated JWT
x-torque-runtime-stage: accounts
security:
- businessApiKey: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectTokenPostBody'
responses:
'200':
description: Delegated access token
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectTokenResponseV1'
'401':
description: Invalid grant
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
operationId: postApiV1ConnectToken
x-operation-id-source: derived
/api/v1/connect/authorize/session:
post:
tags:
- Connect
summary: Mint Connect OAuth authorize session
description: Partner server starts Connect with Torque (PKCE). Returns hosted authorizeUrl for the end user.
x-torque-runtime-stage: accounts
security:
- businessApiKey: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectAuthorizeSessionPostBody'
responses:
'200':
description: Authorize session and hosted URL
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectAuthorizeSessionResponseV1'
'401':
description: Invalid or missing business API key
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
'403':
description: redirect_uri not registered
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
'404':
description: Partner end-user not found
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
operationId: postApiV1ConnectAuthorizeSession
x-operation-id-source: derived
/api/v1/connect/authorize/complete:
post:
tags:
- Connect
summary: Complete Connect OAuth on hosted consent page
description: Called by Torque hosted /connect/oauth after the user approves. No business API key in the browser.
x-torque-runtime-stage: accounts
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- session
- walletAddress
- authJWT
properties:
session:
type: string
walletAddress:
type: string
authJWT:
type: string
responses:
'200':
description: Authorization code issued for token exchange
'401':
description: Invalid session or user JWT
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
operationId: postApiV1ConnectAuthorizeComplete
x-operation-id-source: derived
components:
schemas:
ConnectConfirmResponseV1:
type: object
required:
- confirmToken
- confirmUrl
- expiresInSeconds
properties:
confirmToken:
type: string
confirmUrl:
type: string
format: uri
expiresInSeconds:
type: integer
webhookSecret:
type: string
ConnectConfirmPostBody:
type: object
required:
- walletAddress
- functionResults
properties:
walletAddress:
type: string
functionResults:
type: array
items:
type: object
properties:
toolName:
type: string
result:
type: object
additionalProperties: true
returnUrl:
type: string
format: uri
webhookUrl:
type: string
format: uri
ConnectAuthorizeSessionResponseV1:
type: object
required:
- sessionToken
- authorizeUrl
- expiresInSeconds
properties:
sessionToken:
type: string
authorizeUrl:
type: string
format: uri
expiresInSeconds:
type: integer
ConnectTokenPostBody:
type: object
required:
- grant_type
properties:
grant_type:
type: string
enum:
- authorization_code
- refresh_token
code:
type: string
code_verifier:
type: string
refresh_token:
type: string
ConnectAuthorizeSessionPostBody:
type: object
required:
- redirect_uri
- code_challenge
properties:
redirect_uri:
type: string
format: uri
code_challenge:
type: string
scope:
type: string
description: Space-delimited scopes (default read:portfolio)
state:
type: string
externalUserId:
type: string
description: Partner end-user id when binding Connect to a provisioned wallet
TorqueV1Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
message:
type: string
details:
type: object
additionalProperties: true
ConnectTokenResponseV1:
type: object
required:
- accessToken
- tokenType
- expiresIn
- scopes
properties:
accessToken:
type: string
tokenType:
type: string
enum:
- Bearer
expiresIn:
type: integer
scopes:
type: array
items:
type: string
securitySchemes:
businessApiKey:
type: http
scheme: bearer
bearerFormat: sk_live_…
description: Merchant identity, programmatic Torque Intelligence (`GET /api/v1/intelligence/**`), and server-side assistant chat.
smartWalletJwt:
type: http
scheme: bearer
bearerFormat: JWT
description: RS256 JWT issued for the email smart-wallet session (same value as in-app smartWalletAuthJWT). Verified with JWT_PUBLIC_KEY / JWT_ISSUER.
x-torque-manifest-version: 24
x-torque-intelligence-schema-version: 7
x-torque-route-catalog:
- method: GET
path: /api/v1/health
stage: meta
- method: GET
path: /api/v1/capabilities
stage: meta
- method: GET
path: /api/v1/openapi
stage: meta
- method: GET
path: /api/v1/accounts/business
stage: accounts
aliases:
- /api/v1/business/me
- method: GET
path: /api/v1/accounts/wallet
stage: accounts
aliases:
- /api/v1/wallet/me
- method: POST
path: /api/v1/accounts/end-users
stage: accounts
- method: GET
path: /api/v1/accounts/end-users
stage: accounts
- method: GET
path: /api/v1/accounts/end-users/{externalUserId}
stage: accounts
- method: GET
path: /api/v1/accounts/end-users/{externalUserId}/deposits
stage: accounts
- method: GET
path: /api/v1/intelligence/feed
stage: read
- method: GET
path: /api/v1/intelligence/views/trade-angles
stage: read
aliases:
- /api/v1/intelligence/trade-angles
- method: GET
path: /api/v1/intelligence/views/happening-now
stage: read
aliases:
- /api/v1/intelligence/happening-now
- method: GET
path: /api/v1/intelligence/views/brief
stage: read
aliases:
- /api/v1/intelligence/brief
- method: GET
path: /api/v1/intelligence/views/market-outlook
stage: read
aliases:
- /api/v1/intelligence/market-outlook
- method: GET
path: /api/v1/intelligence/datasets/earnings-spotlight
stage: read
aliases:
- /api/v1/data/earnings-spotlight
- /api/v1/widgets/earnings-spotlight
- method: GET
path: /api/v1/intelligence/datasets/events
stage: read
aliases:
- /api/v1/data/events
- method: GET
path: /api/v1/intelligence/markets/yield
stage: read
aliases:
- /api/v1/opportunities/yield
- method: GET
path: /api/v1/intelligence/markets/lending
stage: read
aliases:
- /api/v1/opportunities/lending
- method: GET
path: /api/v1/read/portfolio
stage: read
- method: POST
path: /api/v1/connect/confirm
stage: decide
- method: GET
path: /api/v1/connect/confirm/verify
stage: meta
- method: POST
path: /api/v1/connect/confirm/complete
stage: decide
- method: POST
path: /api/v1/connect/authorize/session
stage: accounts
- method: POST
path: /api/v1/connect/authorize/complete
stage: accounts
- method: POST
path: /api/v1/connect/token
stage: accounts
- method: POST
path: /api/v1/decide/assistant/chat
stage: decide
aliases:
- /api/v1/assistant/chat
- method: POST
path: /api/v1/decide/fulfillment
stage: decide
- method: POST
path: /api/v1/execute/trades
stage: execute
aliases:
- /api/v1/actions/trade/swap
- method: POST
path: /api/v1/execute/trades/solana
stage: execute
aliases:
- /api/v1/actions/trade/swap/solana
- method: POST
path: /api/v1/execute/transfers/evm
stage: execute
aliases:
- /api/v1/actions/transfer/evm
- method: POST
path: /api/v1/execute/transfers/solana
stage: execute
aliases:
- /api/v1/actions/transfer/solana
- method: POST
path: /api/v1/execute/transfers/btc
stage: execute
aliases:
- /api/v1/actions/transfer/btc
- method: POST
path: /api/v1/execute/lends/evm
stage: execute
aliases:
- /api/v1/actions/lend/evm
- method: POST
path: /api/v1/execute/borrows/evm
stage: execute
aliases:
- /api/v1/actions/borrow/evm
- method: POST
path: /api/v1/distribution/bulk
stage: execute
- method: GET
path: /api/v1/distribution/runs
stage: execute
- method: POST
path: /api/v1/distribution/runs/{runId}/dry-run
stage: execute
- method: POST
path: /api/v1/distribution/runs/{runId}/confirm
stage: execute
- method: GET
path: /api/v1/distribution/runs/{runId}/reconciliation
stage: execute