API overview
Integration guidance for the QuantDesk backend gateway. Field-level truth lives in Swagger/OpenAPI, not in Markdown tables here.Developer funnel
Follow this order once your gateway is running:- Developer quickstart — health check, Swagger, first
curl - Authentication — how browser vs API credentials fit together
- Swagger UI at
/api/docs/on your API host — every path, parameter, and schema
Principles
- Swagger / OpenAPI — canonical for HTTP contracts (
GET /api/docs/swaggerfor the JSON document). - This docs site — narratives, safety notes, and copy-paste quickstarts only.
- No duplicate schemas — if Swagger changes, Markdown should still read correctly.
Base URL
Local development defaults tohttp://localhost:3002. All production and devnet endpoints are now served under the V2 namespace:
- V2 API:
https://api.quantdesk.app/api/v2/ - Legacy V1:
https://api.quantdesk.app/api/v1/(Deprecated)
/api/v2 (see Swagger servers).
Errors and resilience
- Prefer retries with backoff on 503 and transient network failures.
- Respect rate limits when documented on the route or in middleware responses.
- Log correlation IDs if your deployment exposes them.