API reference
Build against RIVR over REST, the Model Context Protocol (MCP), and the federation protocol. The REST and MCP pages are generated from source and regenerated before every build, so they always match the code.
230
REST route handlers
53 groups
179
MCP tools
18 registries
47
Federation endpoints
signed + discovery
Auth models
The three principals RIVR authenticates: NextAuth session, MCP bearer token, and Ed25519 peer signature. Read this first.
Open data
Public events and objects with no account: the /api/public read API, the sitemaps, the anonymous MCP tools, and /llms.txt.
Federation protocol
Signed-event + peer-registry endpoints that sovereign instances federate through — the verified-principal trust rail.
MCP tools by registry
- Account — 1 tools
- Core — 68 tools
- Documents — 1 tools
- Events — 10 tools
- Files & Docs — 4 tools
- Grants — 2 tools
- Group Lifecycle — 7 tools
- Groups — 8 tools
- Moderation — 6 tools
- Mutual Economy — 6 tools
- Notifications — 3 tools
- Offerings & Marketplace — 5 tools
- Plans — 1 tools
- Settings — 8 tools
- Social — 13 tools
- Wallet — 10 tools
- Wiki — 3 tools
- Work Graph — 23 tools
REST routes by group
- /api/admin (2)
- /api/agent-hq (9)
- /api/app-release (1)
- /api/auth (2)
- /api/autobot (14)
- /api/billing (4)
- /api/builder (11)
- /api/connections (11)
- /api/cron (14)
- /api/crypto (1)
- /api/debug (1)
- /api/design (2)
- /api/email (1)
- /api/events (8)
- /api/federation (29)
- /api/geo (1)
- /api/groups (1)
- /api/health (1)
- /api/internal (4)
- /api/kg (6)
- /api/link-preview (1)
- /api/live-invitations (1)
- /api/local-ads (1)
- /api/locales (1)
- /api/locations (1)
- /api/map-diagnostics (1)
- /api/map-microsheds (1)
- /api/map-neighborhoods (1)
- /api/map-style (1)
- /api/map-style-tiles (1)
- /api/map-tilesets (1)
- /api/mcp (9)
- /api/mobile (3)
- /api/murmurations (2)
- /api/myprofile (2)
- /api/profile (6)
- /api/public (5)
- /api/recovery (4)
- /api/resources (1)
- /api/runtime (1)
- /api/schema-schema (2)
- /api/session-record (1)
- /api/sites (7)
- /api/spatial-web (2)
- /api/stripe (10)
- /api/terminal (6)
- /api/test-seed (2)
- /api/transcription (1)
- /api/universal-manifest (1)
- /api/upload (1)
- /api/wallet (1)
- /wow (7)
- /api/xr (22)