Skip to content
  • System
  • Light
  • Dark
  • High contrast

API reference

The Inntrig REST API is documented with an interactive Scalar UI, served directly from the API.

EnvironmentURL
Productionhttps://api-production-02d9.up.railway.app/docs
Localhttp://localhost:3001/docs

The raw OpenAPI 3.1 spec is available at /openapi.json on the same host (useful for code generation or tooling).

All protected endpoints require a session cookie. Sign in via POST /auth/sign-in/email to obtain a better-auth.session_token cookie, then include it with subsequent requests. See the MCP server page for instructions on copying the cookie from DevTools.

TagDescription
HealthGET /health — liveness check
MeCurrent user profile
StandardsRead-only access to audit standards and criteria
ProjectsCreate and manage projects; list audits per project
ReportsCreate, edit, lock/unlock, export, and manage report results
ResultsUpdate criterion result status, notes, and attributes
AdminStaff-only: user management, workspace tiers, standard config

All list endpoints support pagination via ?limit=N&offset=N query parameters and return { data, total, limit, offset }.

The spec is hand-authored in apps/api/src/openapi.ts and served at runtime — there is no generated file on disk. The Scalar UI is provided by @scalar/hono-api-reference and registered in apps/api/src/index.ts.