Connexa API Docs
Connexa ships with a REST API and Socket.IO layer that the React agent console uses in production. Every endpoint returns JSON, expects bearer tokens, and emits realtime updates over sockets.
Base URL
https://api.connexa.chat
Auth
Bearer token (JWT) obtained from /api/auth/login
SDKs
JavaScript (fetch/axios). Community SDKs coming soon.
Key endpoints
Exchange user credentials for a JWT used across chat, media, and push endpoints.
Return chats for the authenticated user, including participants, status, and last message.
Send text, image, voice, file, or location messages to a chat and broadcast via Socket.IO.
Retrieve chat history with replies, reactions, read receipts, and pagination support.
Upload images, voice notes, and files. Returns a URL usable inside subsequent messages.
Allow staff/admin roles to mark chats as open, assigned, in_progress, resolved, or closed.
Authentication
Use the `/api/auth/login` route with email and password to retrieve a JWT. Include it in an `Authorization: Bearer` <token> header for all subsequent requests. Tokens expire in 24 hours; refresh by logging in again or enable API keys via `/api/api-keys` for service-based access.
Rate limits
Express rate limiting protects key routes. Default limits: 300 requests per 5 minutes on `/api/messages`, 100 requests per 5 minutes on `/api/auth`, and configurable upload ceilings. Check response headers such as `x-ratelimit-remaining` to monitor usage.
Developer resources
Explore the included Postman collection, Socket.IO event catalogue, and example React hooks in the Connexa repository. Need something specific? Email platform@connexa.chat and we'll share internal docs or walk through the integration.