POST
/api/whatsapp-sessions/{whatsappSession}/disconnectDisconnects an active WhatsApp session.
Disconnect WhatsApp Session
Disconnects an active WhatsApp session.
This endpoint requires an access token to be included in the Authorization header. You can get the token from here.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| whatsappSession | integer | Yes | ID of the WhatsApp session. |
Code Examples
curl -X POST "https://www.wasenderapi.com/api/whatsapp-sessions/{whatsappSession}/disconnect"
-H "Authorization: Bearer YOUR_API_KEY"
-H "Content-Type: application/json"Response Examples
{
"success": true,
"data": {
"status": "disconnected",
"message": "WhatsApp session disconnected successfully"
}
}