Reference
Endpoints
Every route, grouped. JSON over HTTPS with a Bearer credential; the Index answers without one.
Routes
Inference
POST/v1/chat/completionsOpenAI’s messages in; choices and usage out, plus a tokex receipt.
GET/v1/planAutopilot’s choice for a request, priced, without running it.
GET/v1/modelsModels you can run, with tier and credit cost.
Market
GET/v1/quotePrice a trade: amount out, impact, fees per leg.
POST/v1/swapTrade, with a floor. Final once it runs.
GET/v1/poolsPools and their reserves.
GET/v1/ratesRates between every pair of credits.
Wallet
GET/v1/balanceBalances per credit.
GET/v1/portfolioHoldings valued in a reference credit and in USD.
GET/v1/purchases/quoteWhat a card purchase buys, with the load fee.
Limits and safety
POST/v1/budgetsSet a spend cap for the account or one key.
POST/v1/panicRevoke every other key and freeze money movement. Reads stay open.
POST/v1/unfreezeLift an owner freeze, with a credential created after it.
Automation
POST/v1/ordersA standing order: buy at or below a price, or sell at or above one.
POST/v1/agents/deployDeploy an automation under its own key and its own cap.
Public, no key
GET/v1/indexThe Tokex Index now.
GET/v1/index/historyThe Index as a stored series.