WasenderApi - Low Cost WhatsApp API for Developers Delete WhatsApp Session - API Documentation - WasenderApi - Low Cost WhatsApp API for Developers
WasenderApi API

API Documentation

WasenderApi WhatsApp API

Delete WhatsApp Session

Sessions

DELETE/api/whatsapp-sessions/{whatsappSession}

Deletes a specific WhatsApp session. If the session is connected, it will attempt to disconnect from the WhatsApp API server first.

Delete WhatsApp Session

Deletes a specific WhatsApp session. If the session is connected, it will attempt to disconnect from the WhatsApp API server first.

This endpoint requires an access token to be included in the Authorization header. You can get the token from here.

Parameters

NameTypeRequiredDescription
whatsappSessionintegerYesID of the WhatsApp session.

Code Examples

curl -X DELETE "https://www.wasenderapi.com/api/whatsapp-sessions/{whatsappSession}"
  -H "Authorization: Bearer YOUR_API_KEY"
  -H "Content-Type: application/json"

Response Examples

{
    "success": true,
}