Overview
ChatSend API Specification
This documentation page is limited to the local session and message API specifications used by this webapp.
Base URL
All endpoints are relative to a configurable base URL. The client reads it from the ChatSend_API_URL environment variable.
Example
https://api.example.comAuthentication
Every request includes a Bearer token. The server must validate the token and reject unauthorized requests with HTTP 401.
Header
Authorization: Bearer YOUR_API_KEYContent Type
- Requests with bodies use application/json.
- Responses use application/json.
- Failure responses use an HTTP status code and either JSON or descriptive text as defined by each spec.
Phone Number Format
Phone numbers must use international format with a + prefix, for example +1234567890. The server should append WhatsApp JID suffixes internally when needed.
API Areas
| Area | Description |
|---|---|
| Sessions | Create, list, inspect, restart, stop, delete, and pair WhatsApp sessions. |
| Messages | Send text, media, voice, video, link previews, seen receipts, and typing indicators. |