Back to Documentation

API – Servers URLs and prefixes

Related

Safety: Ports and localhost examples below are for local documentation only—never paste real cloud URLs, API keys, or worker credentials into this wiki.

Public API (NestJS)

  • Default local port 4000
  • Global prefix /api/v1 on almost all controllers
  • Excluded from prefix: /health, /health/ready, /health/live, /health/info (root of host)
  • Agents worker (FastAPI)

  • Default local port 8000
  • Base /api/v1 for council, agents, streaming, debates, deliberation routers
  • Env AI_WORKERS_URL on the API points here (see repo apps/api)
  • Typical full URLs

  • https://your-api-host/api/v1/debates
  • http://localhost:8000/api/v1/debates/start (worker; called by API, not browsers in production)