GET
/api/whatsapp-sessions
Retrieves a list of all WhatsApp sessions available to the authenticated user.
Get All WhatsApp Sessions
Retrieves a list of all WhatsApp sessions available to the authenticated user.
This endpoint requires an access token to be included in the Authorization header. You can get the token from here.
Code Examples
curl "https://www.wasenderapi.com/api/whatsapp-sessions"
-H "Authorization: Bearer YOUR_PERSONAL_ACCESS_TOKEN"
Response Examples
{
"success": true,
"data": [
{
"id": 1,
"name": "Business WhatsApp",
"phone_number": "+1234567890",
"status": "connected",
"account_protection": true,
"log_messages": true,
"webhook_url": "https:\/\/example.com\/webhook",
"webhook_enabled": true,
"webhook_events": [
"message",
"group_update"
],
"created_at": "2025-04-01T12:00:00Z",
"updated_at": "2025-05-08T15:30:00Z"
},
{
"id": 2,
"name": "Support WhatsApp",
"phone_number": "+9876543210",
"status": "DISCONNECTED",
"account_protection": false,
"log_messages": false,
"webhook_url": null,
"webhook_enabled": false,
"webhook_events": null,
"created_at": "2025-04-15T09:45:00Z",
"updated_at": "2025-05-07T11:20:00Z"
}
]
}