Getting Started with the WhatsApp API: A Practical Guide for Developers

Learn how to connect your first WhatsApp number, send your first message, and receive webhooks using the Whatspie API in under ten minutes.

1 min read
Getting Started with the WhatsApp API: A Practical Guide for Developers

Integrating WhatsApp into your product used to mean weeks of paperwork. With Whatspie, you can be sending messages in minutes. This guide walks through the essentials.

1. Connect a device

Create an account, open the dashboard, and add a new device. Scan the QR code with WhatsApp on your phone and your number is ready to be used through the API.

2. Send your first message

Every message is a single authenticated HTTP request:

curl -X POST https://api.whatspie.com/messages \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"receiver": "628123456789", "message": "Hello from Whatspie!"}'

3. Receive incoming messages

Register a webhook URL in the dashboard. Whatspie will POST every incoming message to your endpoint, so you can reply, store, or route it however you like.

Tips for production

  • Verify the signature of every webhook request.
  • Respond with a 200 status quickly and process the payload asynchronously.
  • Store the message ID to avoid handling duplicates.

What’s next?

Once the basics work, explore broadcast messaging and the visual bot builder to automate conversations without writing more code.

  • #whatsapp api
  • #getting started
  • #webhooks

Ready to build on WhatsApp?

Connect your number, send your first message, and automate conversations with the Whatspie API and visual bot builder.

Back to top