logo
MistWAPI
WhatsApp Cloud API — Docs

Welcome to MistWAPI

MistNex Dynamics provides a fully managed WhatsApp Cloud API. You only verify your token via webhook; clients handle messaging logic themselves.

Authentication

All requests require a client_token in the JSON body:

{
  "client_token": "YOUR_LONG_LIVED_TOKEN"
}

Webhook Verification

Clients verify token by POSTing to our endpoint:

POST https://wapi.mistnex.co.zw/webhook/
Body:
{
  "client_token": "YOUR_LONG_LIVED_TOKEN"
}
Response: 200 OK (token valid)

Send Text Message

{
  "client_token": "YOUR_LONG_LIVED_TOKEN",
  "to_number": "26377XXXXXXX",
  "message": "Hello from WAPI!"
}

Send Template Message

{
  "client_token": "YOUR_LONG_LIVED_TOKEN",
  "to_number": "26377XXXXXXX",
  "template_name": "order_update",
  "parameters": ["John", "Order #1234"]
}

Send Document

{
  "client_token": "YOUR_LONG_LIVED_TOKEN",
  "to_number": "26377XXXXXXX",
  "document_url": "https://example.com/invoice.pdf",
  "filename": "Invoice.pdf"
}

Sample Code

Python

import requests

url = "https://wapi.mistnex.co.zw/webhook/"
payload = {
  "client_token": "YOUR_LONG_LIVED_TOKEN",
  "to_number": "26377XXXXXXX",
  "message": "Hello from Python!"
}
resp = requests.post(url, json=payload)
print(resp.status_code, resp.text)
        

Node.js

const axios = require('axios');

axios.post('https://wapi.mistnex.co.zw/webhook/', {
  client_token: 'YOUR_LONG_LIVED_TOKEN',
  to_number: '26377XXXXXXX',
  message: 'Hello from Node.js!'
}).then(res => console.log(res.data))
  .catch(err => console.error(err));
        

PHP

<?php
$data = [
  'client_token' => 'YOUR_LONG_LIVED_TOKEN',
  'to_number' => '26377XXXXXXX',
  'message' => 'Hello from PHP!'
];
$ch = curl_init('https://wapi.mistnex.co.zw/webhook/');
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type:application/json']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>