WhatsApp API Sender

Project Image

I needed a way to send automated WhatsApp messages for various projects notifications, alerts, reminders, that sort of thing. The official WhatsApp Business API felt like overkill (and honestly, too expensive 😂) for what I wanted to do. So I built this: a lightweight REST API that lets you send WhatsApp messages with just a simple HTTP request.


Built with Node.js, Express, and the Baileys library, this tool turns any WhatsApp account into a programmable messaging endpoint. You scan a QR code once to link your device, and then you're good to go, just send a POST request with the phone number and message, and it handles the rest.

image.png 360.38 KB
I added Basic Authentication to keep things secure (because you definitely don't want random people sending messages from your number), and a secret scan URL so only authorized users can link their WhatsApp accounts. There's also real-time connection status monitoring using Socket.IO, so you can see if your bot is online or if it needs to reconnect.

Technologies Used

NodeJS icon NodeJS
Express JS icon Express JS

© 2024 Ferdyhape. All rights reserved.