✨ Subscripe Now ✨ Unlock 2025 with Pro Plan for just €1
  • Support
  • CommunityLoginStart Free
    1
    🎁 Get 1 year of Wawp Pro for just $12 Use coupon: 12MW

    WhatsApp REST API Documentation

    Overview

    Wawp API allows you to interact with WhatsApp using a REST interface, enabling you to create instances, send messages, manage webhooks, and perform various administrative tasks.

    Base URL

    All requests should be made to the following base URL:

    https://app.wawp.net/api/

    You will need an access token to authenticate your requests.


    Instance Management

    1. Create Instance

    Endpoint:

     https://app.wawp.net/api/create_instance?access_token=64d71xxxxxxxx

    URL:
    Description: Create a new instance ID for WhatsApp.

    Parameters:

    • access_token: Your access token.

    2. Get QR Code

    Endpoint:

    POST /get_qrcode

    URL:

    https://app.wawp.net/api/get_qrcode?instance_id=609ACF283xxxx&access_token=64d71xxxxxxxx

    Description: Displays a QR code to login to WhatsApp Web. You can also receive the result via a webhook.

    Parameters:

    • instance_id (string): The instance ID.
    • access_token (string): Your access token.

    3. Reboot Instance

    Endpoint:

    POST /reboot

    URL:

    https://app.wawp.net/api/reboot?instance_id=609ACF283xxxx&access_token=64d71xxxxxxxx

    Description: Logout from WhatsApp Web and start a fresh scan.

    Parameters:

    • instance_id (string): The instance ID.
    • access_token (string): Your access token.

    4. Reset Instance

    Endpoint:

    POST /reset_instance

    URL:

    https://app.wawp.net/api/reset_instance?instance_id=609ACF283xxxx&access_token=64d71xxxxxxxx

    Description: Logout from WhatsApp Web, change the instance ID, and delete all old instance data.

    Parameters:

    • instance_id (string): The instance ID.
    • access_token (string): Your access token.

    5. Reconnect

    Endpoint:

    POST /reconnect

    URL:

    https://app.wawp.net/api/reconnect?instance_id=609ACF283xxxx&access_token=64d71xxxxxxxx

    Description: Re-initiate connection between the app and WhatsApp Web when the connection is lost.

    Parameters:

    • instance_id (string): The instance ID.
    • access_token (string): Your access token.

    Direct Message API

    1. Send Text Message

    Endpoint:

    POST /send

    URL:

    https://app.wawp.net/api/send

    Request Body:

    {
      "number": "84933313xxx",
      "type": "text",
      "message": "test message",
      "instance_id": "609ACF283xxxx",
      "access_token": "64d71xxxxxxxx"
    }

    Description: Send a text message to a specific phone number through the app.

    Parameters:

    • number (string): The recipient’s phone number.
    • type (string): The message type (text).
    • message (string): The message content.
    • instance_id (string): The instance ID.
    • access_token (string): Your access token.

    2. Send Media & File

    Endpoint:

    POST /send

    URL:

    https://app.wawp.net/api/send

    Request Body:

    {
      "number": "84933313xxx",
      "type": "media",
      "message": "test message",
      "media_url": "https://i.pravatar.cc",
      "instance_id": "609ACF283xxxx",
      "access_token": "64d71xxxxxxxx"
    }

    Description: Send a media or file message to a specific phone number through the app.

    Parameters:

    • number (string): The recipient’s phone number.
    • type (string): The message type (media).
    • message (string): The message content.
    • media_url (string): The URL of the media or file to be sent.
    • filename (optional, for documents): The name of the file.
    • instance_id (string): The instance ID.
    • access_token (string): Your access token.

    Group API

    1. Send Text Message to Group

    Endpoint:

    POST /send_group

    URL:

    https://app.wawp.net/api/send_group

    Request Body:

    {
      "group_id": "8498761xxxxxxxx@g.us",
      "type": "text",
      "message": "test message",
      "instance_id": "609ACF283xxxx",
      "access_token": "64d71xxxxxxxx"
    }

    Description: Send a text message to a group through the app.

    Parameters:

    • group_id (string): The group ID.
    • type (string): The message type (text).
    • message (string): The message content.
    • instance_id (string): The instance ID.
    • access_token (string): Your access token.

    2. Send Media & File to Group

    Endpoint:

    POST /send_group

    URL:

    https://app.wawp.net/api/send_group

    Request Body:

    {
      "group_id": "8498761xxxxxxxx@g.us",
      "type": "media",
      "message": "test message",
      "media_url": "https://i.pravatar.cc",
      "instance_id": "609ACF283XXXX",
      "access_token": "64d71xxxxxxxx"
    }

    Description: Send a media or file message to a group through the app.

    Parameters:

    • group_id (string): The group ID.
    • type (string): The message type (media).
    • message (string): The message content.
    • media_url (string): The URL of the media or file to be sent.
    • filename (optional, for documents): The name of the file.
    • instance_id (string): The instance ID.
    • access_token (string): Your access token.
    Tags: