Torque Accounts API
The Accounts API from Torque — 7 operation(s) for accounts.
Operations 8
GET
/api/v1/accounts/end-users/{externalUserId}/deposits
List deposit events for a partner end-user
#
The Accounts API from Torque — 7 operation(s) for accounts.
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-accounts-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 Accounts 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: Accounts
paths:
/api/v1/accounts/business:
get:
tags:
- Accounts
summary: Business profile + integrator status for API key
description: Returns business identity plus access.torquePro / SKUs, webhook configuration flags (no secrets), and rate-limit policy. Use to diagnose 403 TORQUE_PRO_REQUIRED before calling gated routes.
x-torque-runtime-stage: accounts
security:
- businessApiKey: []
responses:
'200':
description: Business + integrator status for Bearer sk_live_…
headers:
X-RateLimit-Limit:
schema:
type: integer
description: Business API key requests allowed per rolling minute
X-RateLimit-Remaining:
schema:
type: integer
description: Remaining requests in the current rolling window
X-RateLimit-Reset:
schema:
type: integer
description: Unix epoch seconds when the rolling window can admit another request
content:
application/json:
schema:
$ref: '#/components/schemas/BusinessMeResponse'
'401':
description: Invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
'403':
description: Business inactive
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
'429':
description: Rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
operationId: getApiV1AccountsBusiness
x-operation-id-source: derived
/api/v1/accounts/wallet:
get:
tags:
- Accounts
summary: Smart wallet session identity
x-torque-runtime-stage: accounts
security:
- smartWalletJwt: []
responses:
'200':
description: JWT-linked user and wallet addresses
content:
application/json:
schema:
$ref: '#/components/schemas/WalletMeResponse'
'401':
description: Invalid smart wallet JWT
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
operationId: getApiV1AccountsWallet
x-operation-id-source: derived
/api/v1/accounts/end-users:
post:
tags:
- Accounts
summary: Provision partner end-user wallet
description: Idempotent on externalUserId. Requires the end user email — Torque links the wallet to that account profile.
x-torque-runtime-stage: accounts
security:
- businessApiKey: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerEndUserProvisionPostBody'
responses:
'200':
description: Existing partner end-user
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerEndUserResponseV1'
'201':
description: New partner end-user created
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerEndUserResponseV1'
'401':
description: Invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
'403':
description: Entitlement required or wallet suspended
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
'409':
description: Identity conflict across businesses
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
'429':
description: Rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
operationId: postApiV1AccountsEndUsers
x-operation-id-source: derived
get:
tags:
- Accounts
summary: List partner end-users
x-torque-runtime-stage: accounts
security:
- businessApiKey: []
parameters:
- name: cursorCreatedAt
in: query
required: false
description: Pagination cursor (createdAt ms)
schema:
type: integer
- name: limit
in: query
required: false
description: Page size (default 50, max 100)
schema:
type: integer
responses:
'200':
description: Partner end-user page
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerEndUserListResponseV1'
'401':
description: Invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
operationId: getApiV1AccountsEndUsers
x-operation-id-source: derived
/api/v1/accounts/end-users/{externalUserId}:
get:
tags:
- Accounts
summary: Get partner end-user by externalUserId
x-torque-runtime-stage: accounts
security:
- businessApiKey: []
parameters:
- name: externalUserId
in: path
required: true
schema:
type: string
responses:
'200':
description: Partner end-user with portfolio summary and capabilities
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerEndUserResponseV1'
'401':
description: Invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
operationId: getApiV1AccountsEndUsersByExternalUserId
x-operation-id-source: derived
/api/v1/accounts/end-users/{externalUserId}/deposits:
get:
tags:
- Accounts
summary: List deposit events for a partner end-user
x-torque-runtime-stage: accounts
security:
- businessApiKey: []
parameters:
- name: externalUserId
in: path
required: true
schema:
type: string
- name: cursorCreatedAt
in: query
required: false
description: Pagination cursor (detectedAt ms)
schema:
type: integer
- name: limit
in: query
required: false
description: Page size (default 25, max 100)
schema:
type: integer
responses:
'200':
description: BTC credits and indexed receive transactions
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerEndUserDepositsResponseV1'
'401':
description: Invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
operationId: getApiV1AccountsEndUsersByExternalUserIdDeposits
x-operation-id-source: derived
/api/v1/business/me:
get:
tags:
- Accounts
summary: Business profile + integrator status for API key (deprecated alias)
description: Deprecated alias — use `/api/v1/accounts/business`. Returns business identity plus access.torquePro / SKUs, webhook configuration flags (no secrets), and rate-limit policy. Use to diagnose 403 TORQUE_PRO_REQUIRED before calling gated routes.
x-torque-runtime-stage: accounts
security:
- businessApiKey: []
responses:
'200':
description: Business + integrator status for Bearer sk_live_…
headers:
X-RateLimit-Limit:
schema:
type: integer
description: Business API key requests allowed per rolling minute
X-RateLimit-Remaining:
schema:
type: integer
description: Remaining requests in the current rolling window
X-RateLimit-Reset:
schema:
type: integer
description: Unix epoch seconds when the rolling window can admit another request
content:
application/json:
schema:
$ref: '#/components/schemas/BusinessMeResponse'
'401':
description: Invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
'403':
description: Business inactive
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
'429':
description: Rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
deprecated: true
x-torque-canonical-path: /api/v1/accounts/business
operationId: getApiV1BusinessMe
x-operation-id-source: derived
/api/v1/wallet/me:
get:
tags:
- Accounts
summary: Smart wallet session identity (deprecated alias)
x-torque-runtime-stage: accounts
security:
- smartWalletJwt: []
responses:
'200':
description: JWT-linked user and wallet addresses
content:
application/json:
schema:
$ref: '#/components/schemas/WalletMeResponse'
'401':
description: Invalid smart wallet JWT
content:
application/json:
schema:
$ref: '#/components/schemas/TorqueV1Error'
deprecated: true
description: Deprecated alias — use `/api/v1/accounts/wallet`.
x-torque-canonical-path: /api/v1/accounts/wallet
operationId: getApiV1WalletMe
x-operation-id-source: derived
components:
schemas:
PartnerEndUserDepositsResponseV1:
type: object
required:
- externalUserId
- items
- nextCursor
properties:
externalUserId:
type: string
items:
type: array
items:
$ref: '#/components/schemas/PartnerEndUserDepositEventV1'
nextCursor:
type:
- integer
- 'null'
PartnerEndUserProvisionPostBody:
type: object
required:
- externalUserId
- email
properties:
externalUserId:
type: string
email:
type: string
format: email
metadata:
type: object
additionalProperties:
type: string
PartnerEndUserDepositEventV1:
type: object
required:
- kind
- asset
- txRef
- network
- status
- detectedAt
properties:
kind:
type: string
enum:
- btc
- receive
asset:
type: string
txRef:
type: string
amount:
type:
- number
- 'null'
network:
type: string
status:
type: string
detectedAt:
type: string
format: date-time
WalletMeResponse:
type: object
properties:
subject:
type:
- string
- 'null'
email:
type: string
evmWalletAddress:
type:
- string
- 'null'
solanaWalletAddress:
type:
- string
- 'null'
PartnerEndUserResponseV1:
type: object
required:
- externalUserId
- torqueUserId
- identityMode
- metadata
- status
- addresses
- portfolioSummary
- capabilities
- createdAt
- updatedAt
properties:
externalUserId:
type: string
torqueUserId:
type: string
identityMode:
type: string
enum:
- partner_email
- synthetic
metadata:
type: object
additionalProperties:
type: string
status:
type: string
enum:
- active
- suspended
- closed
addresses:
type: object
properties:
evm:
type: string
solana:
type:
- string
- 'null'
btcDeposit:
type:
- string
- 'null'
portfolioSummary:
$ref: '#/components/schemas/PartnerEndUserPortfolioSummaryV1'
capabilities:
$ref: '#/components/schemas/PartnerEndUserCapabilitiesV1'
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
PartnerEndUserPortfolioSummaryV1:
type: object
required:
- navUsd
- btcConfirmedSats
properties:
navUsd:
type: number
btcConfirmedSats:
type:
- integer
- 'null'
TorqueV1Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
message:
type: string
details:
type: object
additionalProperties: true
PartnerEndUserCapabilitiesV1:
type: object
required:
- deposit
- withdraw
- connect
properties:
deposit:
type: boolean
withdraw:
type: boolean
connect:
type: boolean
PartnerEndUserListResponseV1:
type: object
required:
- items
- nextCursor
properties:
items:
type: array
items:
$ref: '#/components/schemas/PartnerEndUserResponseV1'
nextCursor:
type:
- integer
- 'null'
BusinessMeResponse:
type: object
required:
- id
- name
- status
- access
- webhooks
- rateLimit
- versions
properties:
id:
type: string
name:
type: string
status:
type: string
logo:
type:
- string
- 'null'
currency:
type: string
timezone:
type: string
executionPrivacyMode:
type: string
privateReceiveSlots:
type: array
items:
type: object
additionalProperties: true
access:
type: object
required:
- personalIntegrator
- tier
- torquePro
- apiEntitlements
- skus
- upgradeUrl
properties:
personalIntegrator:
type: boolean
tier:
type: string
enum:
- standard
- pro
torquePro:
type: boolean
apiEntitlements:
type:
- array
- 'null'
items:
type: string
skus:
type: object
additionalProperties:
type: boolean
description: Resolved SKU allowlist for this business key
upgradeUrl:
type: string
format: uri
webhooks:
type: object
required:
- depositConfigured
- signalsConfigured
- signalsSymbolFilter
- events
properties:
depositConfigured:
type: boolean
signalsConfigured:
type: boolean
signalsSymbolFilter:
type:
- array
- 'null'
items:
type: string
events:
type: array
items:
type: string
enum:
- end_user.deposit.detected
- desk.angle.published
rateLimit:
type: object
required:
- limitPerMinute
- window
properties:
limitPerMinute:
type: integer
window:
type: string
enum:
- rolling_60s
versions:
type: object
required:
- intelligenceSchema
properties:
intelligenceSchema:
type: integer
description: IntelligenceItemV1 schema version (independent of platform catalog)
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