WasenderAPI

API Documentation

WasenderApi WhatsApp API

Restart WhatsApp Session

Sessions

POST/{whatsappSession}/restart

Restarts a specific, currently connected WhatsApp session.

Restart WhatsApp Session

This endpoint initiates a soft restart of the WhatsApp session connection. It is useful for refreshing the connection to the server without needing to re-scan a QR code.

The session must be in a connected state for the restart to be successful. If the session is disconnected or in another state, the request will fail.

Parameters

NameTypeRequiredDescription
whatsappSessionintegerYesThe unique identifier of the WhatsApp session to restart.

Code Examples

curl -X POST "https://www.wasenderapi.com/api/my-session-123/restart" 
  -H "Authorization: Bearer YOUR_API_KEY"

Response Examples

{
    "success": true,
    "message": "WhatsApp session restarted successfully."
}