Getting Started
Guides, route-group overviews, and live schema entry points for the Plexichat backend.
Getting Started
Use this guide when bringing up a client, bot, or integration against a Plexichat server.
1. Learn the Runtime Surface
- REST API base:
http://api.plexichat.com/api/v1 - WebSocket gateway:
ws://api.plexichat.com/gateway - generated API docs:
/docs - health endpoint:
/health
2. Check Version Compatibility
Call the public version endpoints before relying on feature-specific behavior.
curl http://api.plexichat.com/api/v1/version
curl -X POST http://api.plexichat.com/api/v1/version/negotiate \
-H "Content-Type: application/json" \
-d '{"client_version":"a.1.0-49"}'
3. Discover Server Capabilities
GET /capabilities exposes public constants such as avatar limits and whether the server requires an additional access-token gate.
curl http://api.plexichat.com/api/v1/capabilities
4. Authenticate
Most REST endpoints require Authorization: Bearer <token> for user sessions or Authorization: Bot <token> for bot tokens.
Typical first steps:
curl -X POST http://api.plexichat.com/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"username":"example","password":"example"}'
curl http://api.plexichat.com/api/v1/users/@me \
-H "Authorization: Bearer YOUR_SESSION_TOKEN"
If the server enforces an additional API access token, include X-API-Access-Token on authenticated requests. See Access Tokens.
5. Make a First Authenticated Request
curl http://api.plexichat.com/api/v1/users/@me \
-H "Authorization: Bearer YOUR_SESSION_TOKEN"
Good follow-up requests are:
GET /users/@me/settingsGET /users/@me/featuresGET /serversGET /users/@me/notifications
6. Connect to the Gateway
The gateway is used for real-time events, presence, typing, and voice signaling.
High-level flow:
- connect to
ws://api.plexichat.com/gateway - receive
HELLO - send
IDENTIFY - start heartbeating
- consume
DISPATCHevents such asREADYandMESSAGE_CREATE
See Gateway Connection for payload examples.
7. Use the Right Documentation Surface
- Use this portal for narrative guidance and route-group overviews.
- Use
/docsor/openapi.jsonwhen you need the generated request and response schemas for a specific endpoint.