API Reference

REST API

The API gateway is the single entrypoint for all client requests. Every route except /health and unauthenticated auth endpoints requires a valid JWT Bearer token.

Base URL

Set via NEXT_PUBLIC_API_URL in the web app. Default local development:

https://altiusapi-gateway-production.up.railway.app

Include Authorization: Bearer <token> and Content-Type: application/json on authenticated requests.

OpenAPI specs

Swagger UI and OpenAPI JSON are available in non-production gateway environments. Production disables interactive docs for security.

Gateway

Interactive Swagger UI and machine-readable OpenAPI 3 spec.

Schema Engine

FastAPI auto-generated spec (direct service access in dev).

http://localhost:4001/openapi.json

Domains

Roles

JWT payloads carry a role claim. The gateway enforces minimum roles per route:

  • viewer — read pipelines, schemas, sandboxes, ontology
  • reviewer — approve or reject sandbox proposals
  • engineer — create, edit, execute, merge
  • admin — RBAC, drift resolution, agent registry, entitlements