Use the REST API to send messages and receive events via webhooks. Simple endpoints, clear responses, and secure authentication.
1) Create an instance and connect WhatsApp.
2) Generate your API token from /settings.
3) Send your first message using the endpoint below.
http://wapbrigde.com
Use the token generated in Settings. Include it as a bearer token.
POST /api/method/wap_bridge.api.whatsapp.send_api_message
Body
from_number – WhatsApp number connected to your instanceto_number – destination number (with country code)message – text contentPOST /api/method/wap_bridge.api.whatsapp.send_api_message
Body
from_number – WhatsApp number connected to your instanceto_number – destination number (with country code)media_data – base64 file content (no data URL prefix)mime_type – e.g. image/jpegfilename – original file namecaption – optional text captionConfigure your webhook URL in Settings. WapBridge will send inbound messages to your endpoint.
Header (optional)