Torq API reference Detailed, versioned documentation for every governed Torq REST and GraphQL operation.
This reference is generated from the governed OpenAPI 1.0.0-private-preview contract. It has one page per operation, with the exact method, path, authentication boundary, request schema, response schema, and supported error statuses.
Availability: Private Preview. The reference is public so teams can design safely, while credentials, sandbox admission, and production access remain controlled. The explorer below permits only safe browser-authenticated reads. It never accepts a server secret, wallet signature, or transaction request in a browser.
Interactive explorer Developer API explorer
Explore all 65 operations Run an endpoint-specific governed sample for every operation, or switch to a live browser-safe read. This page never accepts a server secret, wallet signature, or transaction request.
Private Preview Sample responses Live safe reads
OperationPOST /graphql · Execute an advanced Postgres-backed GraphQL query GET /v1/activity · List activity GET /v1/allocation-intelligence · List allocation_intelligence GET /v1/applications · List applications in the authenticated organization POST /v1/applications · Create a test or approved production application GET /v1/assets · List assets GET /v1/assets/{resourceId} · Get complete asset metadata and current pricing GET /v1/audit-log · List tenant-scoped developer audit evidence POST /v1/console/owner-claim · Claim the first Developer Console owner for an existing private-preview organization with no members GET /v1/contracts/{contractName} · Get an active V2 contract artifact GET /v1/credit-facilities · List credit_facilities GET /v1/deployments · List deployments GET /v1/eligibility · List eligibility GET /v1/entities · List entities GET /v1/events · Poll versioned canonical events by cursor GET /v1/fees · List fees GET /v1/funds · List funds GET /v1/funds/{resourceId} · Get a distressed recovery fund, current epoch, fees, readiness, and subscription terms GET /v1/funds/{resourceId}/epochs · List recovery-fund subscription and funding epochs GET /v1/funds/{resourceId}/holdings · List current recovery-fund holdings GET /v1/keys · List redacted API-key metadata POST /v1/keys · Create an origin-bound publishable key or server secret key POST /v1/keys/{keyId}/revoke · Revoke an API key POST /v1/keys/{keyId}/rotate · Atomically replace and revoke an API key GET /v1/liquidation-recovery · List liquidation_recovery GET /v1/markets · List markets GET /v1/markets/{resourceId} · Get complete market economics, liquidity, risk, assets, funding, and access state GET /v1/markets/{resourceId}/activity · List canonical market activity GET /v1/markets/{resourceId}/allocators · List canonical vault funding partitions for a market GET /v1/markets/{resourceId}/history · List historical market rate, utilization, liquidity, and borrow buckets GET /v1/messaging · List messaging GET /v1/nav-reports · List nav_reports GET /v1/networks · List networks GET /v1/oracles · List oracles POST /v1/organizations · Create a self-service sandbox organization and first application GET /v1/partner-programs · List partner_programs GET /v1/positions · List positions POST /v1/production-access-requests · Request reviewed production scopes for an application GET /v1/sandbox · Get application-owned Sepolia sandbox state POST /v1/sandbox/admissions · Request the current wallet's bounded sandbox-entity admission POST /v1/sandbox/faucet-claims · Request a quota-bounded claim of the configured sandbox test token for the current admission wallet POST /v1/sandbox/reset · Reset application-owned sandbox control state without resetting the shared chain POST /v1/stream-token · Create a short-lived authenticated WebSocket stream token GET /v1/tranches · List tranches GET /v1/transactions/{chainId}/{txHash} · Get tracked transaction and canonical post-write progress GET /v1/usage · List 30-day application API usage GET /v1/vaults · List vaults GET /v1/vaults/{resourceId} · Get complete vault economics, allocations, liquidity, fees, public metrics, and mobility state GET /v1/vaults/{resourceId}/activity · List canonical vault activity GET /v1/vaults/{resourceId}/allocations · List the vault's current market allocations GET /v1/vaults/{resourceId}/history · List historical vault share-price, APY, asset, and liquidity buckets GET /v1/vaults/{resourceId}/liquidity · Get portfolio liquidity, duration, and exit terms GET /v1/vaults/{resourceId}/share-mobility · Get share token, transfer, redemption, and wallet eligibility state POST /v1/wallet-sessions/challenges · Create a wallet authentication challenge POST /v1/wallet-sessions/confirm · Confirm a wallet challenge and issue an opaque short-lived session GET /v1/webhook-deliveries · List webhook deliveries POST /v1/webhook-deliveries/{deliveryId}/replay · Replay one retained webhook delivery GET /v1/webhook-endpoints · List webhook endpoints POST /v1/webhook-endpoints · Create a signed webhook endpoint DELETE /v1/webhook-endpoints/{endpointId} · Disable a webhook endpoint PATCH /v1/webhook-endpoints/{endpointId} · Update a webhook endpoint GET /v1/workflows/{requestId} · Get canonical workflow progress POST /v1/workflows/{requestId}/transactions · Register an externally signed transaction POST /v1/workflows/prepare · Prepare and preflight an explicit Torq workflow GET /v1/wrappers · List wrappers Execute an advanced Postgres-backed GraphQL query
Server secret · Credential-free data generated from this operation’s exact governed response schema. It demonstrates every exposed field without touching protocol state.
Run sample Generated snippet Production request with exact method, path, headers, parameters, and body.
Copy cURL TypeScript
curl -X POST 'https://api.torq.finance/graphql' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer $TORQ_SECRET_KEY' \
-H 'Content-Type: application/json' \
--data '{"query":"query { networks { chainId name } }"}'
Response inspection idle Choose any governed operation and run its endpoint-specific sample.Use the governed API surface Read canonical shared state from Torq APIs, not by reconstructing it from RPC. Use a developer key and, where required, a short-lived wallet session. Use an idempotency key for every state-changing operation. Prepare discriminated workflows rather than sending arbitrary contract calls. Base URL: https://api.torq.finance. Download the OpenAPI contract or begin with Prepare a workflow .
Operations Method Endpoint Operation POST/graphqlExecute an advanced Postgres-backed GraphQL query GET/v1/activityList activity GET/v1/allocation-intelligenceList allocation_intelligence GET/v1/applicationsList applications in the authenticated organization POST/v1/applicationsCreate a test or approved production application GET/v1/assetsList assets GET/v1/assets/{resourceId}Get complete asset metadata and current pricing GET/v1/audit-logList tenant-scoped developer audit evidence POST/v1/console/owner-claimClaim the first Developer Console owner for an existing private-preview organization with no members GET/v1/contracts/{contractName}Get an active V2 contract artifact GET/v1/credit-facilitiesList credit_facilities GET/v1/deploymentsList deployments GET/v1/eligibilityList eligibility GET/v1/entitiesList entities GET/v1/eventsPoll versioned canonical events by cursor GET/v1/feesList fees GET/v1/fundsList funds GET/v1/funds/{resourceId}Get a distressed recovery fund, current epoch, fees, readiness, and subscription terms GET/v1/funds/{resourceId}/epochsList recovery-fund subscription and funding epochs GET/v1/funds/{resourceId}/holdingsList current recovery-fund holdings GET/v1/keysList redacted API-key metadata POST/v1/keysCreate an origin-bound publishable key or server secret key POST/v1/keys/{keyId}/revokeRevoke an API key POST/v1/keys/{keyId}/rotateAtomically replace and revoke an API key GET/v1/liquidation-recoveryList liquidation_recovery GET/v1/marketsList markets GET/v1/markets/{resourceId}Get complete market economics, liquidity, risk, assets, funding, and access state GET/v1/markets/{resourceId}/activityList canonical market activity GET/v1/markets/{resourceId}/allocatorsList canonical vault funding partitions for a market GET/v1/markets/{resourceId}/historyList historical market rate, utilization, liquidity, and borrow buckets GET/v1/messagingList messaging GET/v1/nav-reportsList nav_reports GET/v1/networksList networks GET/v1/oraclesList oracles POST/v1/organizationsCreate a self-service sandbox organization and first application GET/v1/partner-programsList partner_programs GET/v1/positionsList positions POST/v1/production-access-requestsRequest reviewed production scopes for an application GET/v1/sandboxGet application-owned Sepolia sandbox state POST/v1/sandbox/admissionsRequest the current wallet's bounded sandbox-entity admission POST/v1/sandbox/faucet-claimsRequest a quota-bounded claim of the configured sandbox test token for the current admission wallet POST/v1/sandbox/resetReset application-owned sandbox control state without resetting the shared chain POST/v1/stream-tokenCreate a short-lived authenticated WebSocket stream token GET/v1/tranchesList tranches GET/v1/transactions/{chainId}/{txHash}Get tracked transaction and canonical post-write progress GET/v1/usageList 30-day application API usage GET/v1/vaultsList vaults GET/v1/vaults/{resourceId}Get complete vault economics, allocations, liquidity, fees, public metrics, and mobility state GET/v1/vaults/{resourceId}/activityList canonical vault activity GET/v1/vaults/{resourceId}/allocationsList the vault's current market allocations GET/v1/vaults/{resourceId}/historyList historical vault share-price, APY, asset, and liquidity buckets GET/v1/vaults/{resourceId}/liquidityGet portfolio liquidity, duration, and exit terms GET/v1/vaults/{resourceId}/share-mobilityGet share token, transfer, redemption, and wallet eligibility state POST/v1/wallet-sessions/challengesCreate a wallet authentication challenge POST/v1/wallet-sessions/confirmConfirm a wallet challenge and issue an opaque short-lived session GET/v1/webhook-deliveriesList webhook deliveries POST/v1/webhook-deliveries/{deliveryId}/replayReplay one retained webhook delivery GET/v1/webhook-endpointsList webhook endpoints POST/v1/webhook-endpointsCreate a signed webhook endpoint DELETE/v1/webhook-endpoints/{endpointId}Disable a webhook endpoint PATCH/v1/webhook-endpoints/{endpointId}Update a webhook endpoint GET/v1/workflows/{requestId}Get canonical workflow progress POST/v1/workflows/{requestId}/transactionsRegister an externally signed transaction POST/v1/workflows/preparePrepare and preflight an explicit Torq workflow GET/v1/wrappersList wrappers