Skip to content

Relay API

Missing · No apps/relay/priv/openapi.yaml in the repository yet. Routes below are read from apps/relay/lib/si_relay_web/router.ex, last changed 29 October 2026.

Host Serves
api.fondaco.network, relay.fondaco.network Relay 1.0: /api/v2 and /relay/v1 (mainnet)
preprod-relay.fondaco.network The same on Preprod
app.fondaco.network The swap and the pages below

Hosted endpoints come with M1 hosting; until then the relay runs on the local devnet stack (scripts/stack.sh up, http://localhost:4000). See the wallet quickstart.

CORS-enabled for wallets on other origins. Apps send their key as x-si-app-key; the client token from a quote goes back as x-si-client-token on the accept and on every call for the fill.

Method Path Handler
POST /api/v2/rfq RfqController.create
GET /api/v2/rfq/:id RfqController.show
POST /api/v2/rfq/:id/accept RfqController.accept
GET /api/v2/fills/:id FillController.show
POST /api/v2/fills/:id/offer FillController.offer
POST /api/v2/fills/:id/sponsor FillController.sponsor
POST /api/v2/fills/:id/events FillController.event
GET /api/v2/offers OfferController.index
POST /api/v2/offers OfferController.create
DELETE /api/v2/offers/:id OfferController.delete
GET /api/v2/solvers SolverController.index
GET /api/v2/solvers/:id SolverController.show
GET /api/v2/programme/rules SolverController.rules
GET /api/v2/exit-policy NetworkController.exit_policy
GET /api/v2/network NetworkController.show

WebSocket: ?fill=<id>. The wallet SDK falls back to polling GET /api/v2/fills/:id.

Method Path Handler
GET /relay/v1/client WebSocketController.client

Bearer token in the Authorization header. The WebSocket protocol (welcome, rfq.request, quotes and ladders, rfq.accept, job.dispatch) is what RelayClient in the solver SDK speaks.

Method Path Handler
GET /relay/v1/solver WebSocketController.solver
GET /jobs/:id JobController.show

On the app host, not the API host.

Method Path Handler
GET / PageController.swap
GET /regression PageController.regression
GET /explain PageController.explain
GET /terms PageController.terms
GET /privacy PageController.privacy

The operator's admin API (23 routes under /api/v2/admin, behind the admin allowlist) is not listed: it is not for integrators.