Authentication
Register, login, and manage tokens. View →
All API requests should be made to:
http://your-server:8080/apiThe Whatomate API uses JWT (JSON Web Tokens) for authentication. Include the access token in the Authorization header:
Authorization: Bearer <access_token>See Authentication for details on obtaining tokens.
All responses are returned in JSON format with the following structure:
{ "status": "success", "data": { // Response data }}{ "status": "error", "message": "Error description", "data": null}| Code | Description |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid or missing token |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found |
| 500 | Internal Server Error |
API requests are subject to rate limiting to ensure fair usage:
Rate limit headers are included in responses:
X-RateLimit-Limit: 100X-RateLimit-Remaining: 95X-RateLimit-Reset: 1640000000List endpoints support pagination using page and limit query parameters:
GET /api/contacts?page=1&limit=20Paginated responses include:
{ "status": "success", "data": { "items": [...], "total": 100, "page": 1, "limit": 20, "total_pages": 5 }}Authentication
Register, login, and manage tokens. View →
Users
User management (Admin only). View →
Contacts
Manage contacts and assignments. View →
Messages
Send and receive messages. View →
Templates
Manage message templates. View →
Flows
WhatsApp Flows management. View →
Chatbot
Chatbot configuration. View →
Webhooks
Receive real-time updates. View →
Analytics
Dashboard and message analytics. View →