Skip to content

API Overview

DarkAuth exposes several API surfaces. They are grouped by purpose rather than by implementation package: public OIDC endpoints, user account endpoints, admin management endpoints, and first-run install endpoints.

The user surface includes OIDC discovery, JWKS, authorization, token exchange, sessions, logout, OPAQUE login and registration, OTP, password reset, email verification, user crypto key storage, organizations, apps, and users directory endpoints.

These endpoints are served from the user origin, which is public in most deployments.

The admin API manages users, admin users, clients, organizations, roles, permissions, settings, email templates, JWKS, OTP state, audit logs, and exports. Admin APIs require an authenticated admin session. Mutating endpoints require a write admin role.

These endpoints are served from the admin origin, which should be restricted in production.

Install endpoints are only active before initialization. They support the web installer, database setup, config writing, first admin registration, and default seeding.

Once the instance is initialized, install endpoints should not be available.

DarkAuth generates OpenAPI from controller schemas. Use the generated contract for exact request and response shapes, and use these docs for behavior, intent, and integration guidance.