API Reference
The Swarmd API is organized around REST and JSON-RPC protocols. All requests are routed through the gateway athttps://api.dev.swarmd.ai.
Base URL
Services
Authentication
Almost every endpoint requires a Bearer token:
A small set of Tenant Auth endpoints are deliberately unauthenticated because they are how a session starts:
POST /tenant-auth/v1/tenants, /login, /refresh, /verify-email, /resend-verification, /forgot-password, /reset-password, /accept-invite, /sso/callback, GET /tenant-auth/v1/login/discover and GET /tenant-auth/v1/permissions.
Endpoints are additionally gated by role. The generated reference lists the required roles for each operation, in the form
ENTITY:PERMISSION — for example AGENT_CONVERSATIONS:WRITE or AUDIT:READ.