WhatsApp API request builder

Fill in a device id, number and message and get a ready QuackAPI request in cURL, Node.js, TypeScript, Python, PHP and Laravel.

curl -X POST https://quackapi.com/v1/messages/chat \
  -H "Content-Type: application/json" \
  -H "x-api-key: $QUACKAPI_KEY" \
  -d '{"deviceId":1,"to":"923001234567","body":"Hello from QuackAPI"}'

How to use it

  1. Enter your device id (the number shown on the Devices page), the recipient number with country code and no plus sign, and your message.
  2. Pick a language. The tool prints a ready request for POST https://quackapi.com/v1/messages/chat with the x-api-key header.
  3. Copy it, replace the placeholder with your own API key from an environment variable, and run it.

Why it matters

Most failed first requests come from a missing header, a number with a plus sign or spaces, or a wrong device id. Building the request here removes those mistakes before you touch your own code.

Frequently asked questions

Is my API key sent anywhere?

No. The tool runs in your browser. Use a placeholder in the key field and keep the real key in an environment variable.

Which number format does the API expect?

Digits only with the country code first, for example 923001234567. No plus sign, spaces, dashes or leading zero.

Where do I find the device id?

On the Devices page of the dashboard. Each connected WhatsApp number has a numeric id.

Building with WhatsApp? See the quick start.