⚡ Quick Start

Step-by-Step guide

On this page you’re going to install and run WAHA, authenticate the client using QR code, and send your first message to WhatsApp using API!

We will guide you through the necessary steps to successfully send your first text message using WhatsApp API.

Are you a visual learner?

We’ve got you covered!
Watch the video tutorial below to see how to send your first message using WAHA

Step 0. Requirements

WAHA works on top of Docker, that’s the only think you’ll need!

logo

👉 Please follow the Docker official guides to install it on Linux, Windows, and macOS

Why Docker?

Docker makes it easy to ship all-in-one solution with the runtime and dependencies. You don’t have to worry about language-specific libraries or chrome installation.

Also, Docker makes installation and update processes so simple, just one command!

Step 1. Download image

Assuming you have installed Docker, let’s download the image! Follow the instructions below:


Step 2. Run WAHA

Run WhatsApp HTTP API:

docker run -it --rm -p 3000:3000/tcp --name waha devlikeapro/waha

# It prints logs and the last line must be
# WhatsApp API is running on: http://[::1]:3000

👉 Now, open 📊 Dashboard at http://localhost:3000/dashboard

You’ll see WAHA Dashboard:

Dashboard

Step 3. Start a new session

To start a new session you should have your mobile phone with installed WhatsApp application close to you.

Here is the official instruction on WhatsApp site on how to log in.

Now you start default session (current status should be STOPPED).

You can leave all configuration parameters by default: alt

Step 4. Get and scan QR

Wait until the session status is SCAN_QR and click on “camera” icon:
alt 👉 If instead of QR you see Click to reload QR - stop the session and start it again.


You’ll see QR code from WhatsApp Web app, now get your phone with installed WhatsApp application and scan the QR: alt

The session status will move to WORKING status: alt

Step 5. Send a text message

Now we’re ready to send first messages to WhatsApp via API!

Replace 123123 with your phone number without +, but keep @c.us part:

As alternative to curl, you can use 📚 Swagger for that.

Open Swagger at http://localhost:3000/#/chatting , scroll down to chatting section.

  • Find POST /api/sendText endpoint and expand it
  • Click Try it out
  • Replace 123123@c.us with your phone number without +, but keep @c.us part
  • Click Execute

alt

What’s next?

Build Fast

Ask 🤖 WAHA GPT to help you build {python|js|php} code!