Table of Contents

Deleting a session via API

Deleting a session logs that WhatsApp account out of Whatsgate, removes the session data from Whatsgate servers, and frees the connection. If your plan has no free connection left, delete a session before you create another one.

Request command

Send a POST request to:

https://app.whatsgate.org/api/v1/session-delete

Request body object

The request body must contain:

{
  "WhatsappID": "YOUR_WHATSAPP_ID"
}

Response object

Successful response object

{
  "result": "OK",
  "data": {
        "id": 456,
        "name": "My Whatsapp",
        "unique_id": "YOUR_WHATSAPP_ID",
        "status": "DESTROYING",
        "callback": null,
        "date_add": "2022-10-12 07:10:49",
        "status_name": "Deleting",
        "pushname": "John",
        "wid": "19991234567@c.us",
    }
}