Skip to content
Skip to Content
Developers

HTTP API

The routes behind the app. Public reads need nothing; private ones need the wallet's sign-in cookie; a few are operator-only.

Auth: none · SIWE (the todoku_session cookie from signing in with your wallet) · ops (SIWE plus an operator wallet) · bearer (an AI app's token).

Public

Method and pathWhat it returns
GET /api/healthDatabase and worker heartbeat
GET /api/contractsThis deployment's network, escrow and naira feed addresses (null until deployed)
GET /api/pricesNaira per dollar (before the margin) and QIE in dollars, cached 30 s
GET /api/plans?service=Live data, TV and exam plans, cheapest first
POST /api/verifyA meter, smartcard or JAMB code checked by name (masked when signed out); 30 a minute
POST /api/quotesPrice and sign one order; 30 a minute per IP
GET /api/orders/{id}One order's status, by its id (no full number, no token)
POST /api/orders/{id}/tx"I paid": the web app reads that transaction's receipt at once and applies its escrow events
GET /api/receipts/{slug}/cardThe receipt's share image
GET /api/identity/{address}QIE ID name, paid and verified
GET /api/demo-lineThe demo line's network and last four digits
GET, POST /api/pay-links[/{id}]Make or read a pay link (10 per 10 minutes per IP)
GET /api/shops/{handle}A shop's page data
GET /api/swap, GET /api/loanA QUSDC → QIE swap transaction; a QIELend borrow plan (mainnet)
GET /api/searchDocs search

Signed in (SIWE)

/api/auth/nonce, /verify, /me, /logout · GET /api/orders (history) and /api/orders/export (CSV) · GET /api/orders/{id}/secret (token or PINs, payer only) · tickets · saved numbers and /api/prefill · /api/rewards · /api/quotes/bulk (shops, 20 lines) · /api/agent/* · /api/drops (create, quote) · /api/telegram · /api/account/connections. Drop claims (POST /api/drops/{id}/claim) use the claimer's typed signature instead of a session.

Operators

/api/ops/overview, /switches, /orders/{id} (ask again, refund, mark delivered), /agents (suspend, reinstate).

Webhooks

RouteTrust
POST /api/webhooks/vtpassVTpass doesn't sign, so the body is only a hint: it is stored with tokens removed, acknowledged, and Todoku asks VTpass itself
POST /api/webhooks/fonbnkThe signature is checked on the raw body before anything else

Both are de-duplicated by the body's SHA-256. MCP and OAuth routes are on their own pages. There is no public JSON for the scorecard: it is a page, /scorecard.

For AI readers, every docs page is also Markdown at /docs/<page>.md, with /llms.txt and /llms-full.txt.

On this page