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
| Name | Type | Required | Description |
|---|---|---|---|
| whatsappSession | integer | Yes | ID of the WhatsApp session. |
Code Examples
curl -X DELETE "https://www.wasenderapi.com/api/whatsapp-sessions/{whatsappSession}"
-H "Authorization: Bearer YOUR_PERSONAL_ACCESS_TOKEN"
-H "Content-Type: application/json"Response Examples
{
}