API Reference
Complete reference for all API endpoints.
Base URL
https://wapi.michotech.me/api/v1
Authentication
All endpoints require a Bearer token. The session is determined automatically by the API key.
Auth Header
Authorization: Bearer YOUR_API_KEY
Endpoints
| Method | Endpoint | Description |
|---|---|---|
POST |
/messages/text |
Send a text message |
POST |
/messages/media |
Send media (multipart) |
GET |
/messages/received |
List inbound messages only |
GET |
/messages/sync |
Sync from Node service and persist new messages |
GET |
/chats |
List chats for the session |
GET |
/chats/{chatId}/messages |
List messages in one chat |
GET |
/messages |
List messages (paginated) |
GET |
/messages/{id} |
Get a specific message |