GET
/api/whatsapp-sessions/{whatsappSession}
Retrieves details for a specific WhatsApp session.
Get WhatsApp Session Details
Retrieves details for a specific 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 "https://www.wasenderapi.com/api/whatsapp-sessions/{whatsappSession}"
-H "Authorization: Bearer YOUR_API_KEY"
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"
],
"api_key": "75075a7bf6417bff59e76fb7205382c2dc74cf1769e76f382c2dc74cf176c0bf",
"webhook_secret": "fb61be92ddb7935e0cedcec58e470f6c",
"created_at": "2025-04-01T12:00:00Z",
"updated_at": "2025-05-08T15:30:00Z"
}
}