GET/quickstart—200OK

Send your first message in 5 minutes

Follow these four steps to create an account, connect your WhatsApp number, and send a message via the API.

  1. 1

    Create your account

    Sign up for a free WSAPI account using your email, Google, or GitHub credentials. No credit card is required to start your 14-day trial.

  2. 2

    Create an instance and pair it

    After registering, you'll be taken directly to the pairing page. Scan the QR code with your phone to connect your WhatsApp account; the pairing guide covers re-pairing and session expiry. You can also access this anytime from the dashboard.

  3. 3

    Get your credentials

    Copy your Instance ID from the instance detail page. Then generate your API Key in Settings. These two values authenticate every API request.

    headers.txt
    x-api-key: YOUR_API_KEY
    x-instance-id: YOUR_INSTANCE_ID
  4. 4

    Send your first message

    Use the following cURL command to send a text message. Replace the placeholder values with your actual credentials and the recipient phone number (including country code, no + or spaces). The quickstart in the docs runs the same flow with the response payloads spelled out.

    first-message.sh
    curl -X POST https://api.wsapi.chat/messages/text \
      -H "Content-Type: application/json" \
      -H "x-api-key: YOUR_API_KEY" \
      -H "x-instance-id: YOUR_INSTANCE_ID" \
      -d '{
        "to": "1234567890",
        "text": "Hello from WSAPI!"
      }'

    ✓ 200 OK: Message delivered. Response includes the message ID.

Related reading

Explore more

Want to explore more?

The full API reference covers every endpoint, webhook event, and configuration option.