Admin & route controls

Operator endpoints for stats, swaps, liquidity, route circuit breakers and refund sweeps. Writes require x-admin-key.

POST /api/v1/admin/routes/control

Enable or disable each liquidity route. Omitted flags are left unchanged.

Parameter In Type Required Description
x-admin-key header string yes Must equal the server's ADMIN_API_KEY.
meshEnabled body boolean no Mesh pool route.
cauldronEnabled body boolean no Cauldron route.
solverEnabled body boolean no Solver inventory route.
reason body string no Optional note recorded with the change.

Read endpoints

Endpoint Returns
GET /api/v1/admin/stats Totals: intents, fills, volume
GET /api/v1/admin/swaps · /swaps/:id Swap history and detail
GET /api/v1/admin/solver Solver wallet and recent cycles
GET /api/v1/admin/cauldron · /cauldron-quote Cauldron pool cache and a test quote
GET /api/v1/admin/mesh-pools Pool index with reserves
GET /api/v1/admin/liquidity Liquidity by route and pair
GET /api/v1/admin/routes/status Route flags
GET /api/v1/admin/refunds Refund engine state

Write endpoints (x-admin-key)

Endpoint Effect
POST /routes/control Set route flags
POST /routes/pause-mesh · /resume-mesh Toggle Mesh
POST /routes/pause-cauldron · /resume-cauldron Toggle Cauldron
POST /routes/pause-solver · /resume-solver Toggle inventory
POST /refunds/sweep Run the refund engine now (admin trigger)
POST /trigger-match Run a matcher cycle
POST /api/v1/intent/match { broadcast: true } Run and broadcast a real solver cycle

The admin dashboard's route controls call these endpoints.