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
Name | Type | Required | Description |
---|---|---|---|
whatsappSession | integer | Yes | The 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."
}