# API Reference [Back to docs index](../README.md) | [Back to project README](../../README.md) The API reference is split by responsibility so each source file stays focused and easy to review. ## Sections - [Authentication and sessions](api/authentication.md) - session cookies, API tokens, and session lifetime. - [Endpoints](api/endpoints.md) - public routes, protected routes, multi-account routes, information routes, diagnostics, and OAuth routes. - [Middleware](api/middleware.md) - `sessVal`, `roleChk`, strict session helpers, render helpers, and token authentication. - [Code examples](api/examples.md) - Express integration, role checks, API auth, client login/logout, database access, and error handling. - [Operational reference](api/operations.md) - HTTP status codes, security best practices, and rate limits. ## Related Reference - [Error codes](error-codes.md) - [Database guide](../guides/database.md) - [Configuration guide](../guides/configuration.md)