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.
Send a POST request to:
https://app.whatsgate.org/api/v1/session-delete
The request body must contain:
{
"WhatsappID": "YOUR_WHATSAPP_ID"
}
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",
}
}