Torq API reference
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.
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.
Generated snippet
Production request with exact method, path, headers, parameters, and body.
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
idleChoose 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.