API Documentation
Integrate WhatsApp messaging directly into your own applications, software, or backend scripts with our simple and powerful REST API. Send text, media, and template messages programmatically from any language. Get your API keys from your WA-MExpress dashboard and start building today.
🚀 Simple & Powerful
A single, straightforward endpoint for all your messaging needs. Our API is designed for developer productivity, with clear parameters and predictable responses.
🌐 Multi-Language Support
With ready-to-use code examples in cURL, PHP, Node.js, and Python, you can integrate in minutes, regardless of your technology stack.
💬 Flexible Messaging
Send plain text, rich media files (PDF, images, documents), or powerful, pre-approved message templates with dynamic variables for personalization.
All API requests are authenticated using your unique appkey and authkey, which can be found in your WA-MExpress client dashboard. All requests should be sent as a POST request to the following endpoint:
| Parameter | Type | Required | Description |
|---|---|---|---|
appkey |
String | Yes | Your application key, found in the dashboard. |
authkey |
String | Yes | Your authorization key for the user, found in the dashboard. |
to |
Number | Yes | The recipient's full WhatsApp number including country code. |
message |
String | No | The text message content (max 1000 characters). Required if template_id is not used. |
template_id |
String | No | The ID of the pre-approved template you wish to send. |
file |
String | No | A publicly accessible URL to a media file. Supported types: jpg, jpeg, png, webp, pdf, docx, xlsx, csv, txt. |
variables |
Array | No | An associative array to replace dynamic variables in your template message. E.g., variables[{variableKey1}]="value". |
Use these examples to quickly test the API from your command line.
Text Message OnlyIntegrate directly into your PHP applications.
Text Message OnlyExamples for your JavaScript and Node.js projects.
Text Message OnlyQuickly send messages from your Python scripts.
Text Message OnlyA successful API call will return the following JSON response.
Ready to Start Building?
Generate your API keys from your dashboard and start sending messages in minutes.
Get Your API KeysThe WA-MExpress REST API is a powerful tool for developers. Always keep your API keys secure and never expose them in client-side code. Ensure you have the proper consent from users before sending them messages.