PlexichatGuides

Home

Guides, route-group overviews, and live schema entry points for the Plexichat backend.

Plexichat backend documentation

This portal documents the Plexichat backend: the REST API, the WebSocket gateway, common response shapes, and integration guidance.

Documentation surfaces

  • Narrative docs (this portal) — Guides, configuration, and reference at /docs/api.
  • OpenAPI explorer — Interactive request builder at /docs.
  • API reference (ReDoc) — Readable schema reference at /redoc.
  • Schema JSON — Raw OpenAPI spec at /openapi.json.

The docs path is configurable through docs.path (default /docs/api) and api.docs_url (default /docs).

Quick links

Get started

  • Get started — Authenticate, make your first API requests, and connect to the WebSocket gateway.
  • Features — Overview of all Plexichat feature areas.
  • Data types — Snowflake IDs, timestamps, and common data formats.
  • Permissions — Permission categories and individual permission reference.

Configuration

  • Configuration overview — How config files are discovered and loaded.
  • Default configuration reference — Complete config reference with all defaults from src/config_defaults.py.
  • Authentication — Password policies, sessions, 2FA, OAuth, account deletion, and age gate.
  • Database — PostgreSQL and SQLite setup, connection pooling, and migrations.
  • Valkey — Caching, session storage, and connection pooling.
  • Media — File uploads, storage backends, processing, and security.
  • Voice — WebRTC signaling, SFU backends, and STUN/TURN.
  • WebSocket — Gateway settings, compression, rate limits, and allowed origins.
  • Search — Search backends, indexing, and result limits.
  • Rate limiting — Global, user, IP, bot, and webhook rate limits. Defaults are defined in src/config_defaults.py.
  • API and server — CORS, trusted proxies, debug mode, and TLS.
  • Email — SMTP setup for verification and password reset.
  • Embeds and URL preview — Embed limits and URL preview configuration.
  • Static client — Serve the Vite build from the backend with GitLab releases and SHA-256 verification.

Licensing

  • Licensing — License file setup, environment variable configuration, hot-swapping, and feature gating.

Deployment and operations

API and WebSocket reference

End-user and developer guides

Runtime endpoints

Endpoint Method Description
https://api.plexichat.com/api/v1 — REST API base (default http://localhost:8000/api/v1).
wss://api.plexichat.com/gateway — WebSocket gateway (default ws://localhost:8000/gateway).
/api/v1/ready GET Readiness probe. Returns as soon as HTTP is bound.
/api/v1/health GET Health check. Covers database, events, and cross-worker listener. Also served at /health, as is /ready.
/api/v1/version GET Current server version and minimum supported client version.
/api/v1/version/negotiate POST Version compatibility check for a given client_version.
/api/v1/status GET Server state, version, and uptime.
/api/v1/capabilities GET Public constants without authentication.

Version endpoints are implemented in src/api/routes/version.py and use the version utility in src/utils/common_utils/utils/version/. /api/v1/version reports the running build (currently 1.0.0a239), the minimum supported client, and api_version.