API Reference
Complete reference documentation for all APIMW API endpoints
Base URL
https://api.apimw.com/v1/
Authentication
All API requests require authentication via Bearer token:
Authorization: Bearer YOUR_API_KEY
Endpoints
POST
/v1/auth/token
Generate Token
Generate an access token using API credentials
POST
/v1/whatsapp/messages/send
Send Message
Send a text message via WhatsApp
POST
/v1/auth/refresh
Refresh Token
Refresh an expired access token
POST
/v1/whatsapp/messages/template
Send Template
Send a pre-approved template message
POST
/v1/auth/revoke
Revoke Token
Revoke an access token
GET
/v1/whatsapp/messages/{message_id}
Get Message Status
Check the delivery status of a message
GET
/v1/auth/me
Get Current User
Get the current authenticated user information
GET
/v1/whatsapp/templates
List Templates
Get all available message templates
GET
/v1/whatsapp/analytics
Analytics
Get WhatsApp messaging analytics and statistics
Response Codes
| Code | Description |
|---|---|
200 |
Success |
201 |
Created |
400 |
Bad Request - Invalid parameters |
401 |
Unauthorized - Invalid or missing API key |
403 |
Forbidden - Insufficient permissions |
404 |
Not Found - Resource doesn't exist |
429 |
Too Many Requests - Rate limit exceeded |
500 |
Internal Server Error |
Rate Limits
API requests are rate limited based on your plan:
| Plan | Requests/Hour | Requests/Day |
|---|---|---|
| Free | 100 | 1,000 |
| Starter | 1,000 | 10,000 |
| Professional | 10,000 | 100,000 |
| Enterprise | Unlimited | Unlimited |