POST
/api/whatsapp-sessions/{whatsappSession}/connect
Initiates the connection process for a WhatsApp session. Requires an active subscription.
Connect WhatsApp Session
Initiates the connection process for a WhatsApp session. Requires an active subscription.
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 POST "https://www.wasenderapi.com/api/whatsapp-sessions/{whatsappSession}/connect"
-H "Authorization: Bearer YOUR_API_KEY"
-H "Content-Type: application/json"
Response Examples
{
"success": true,
"data": {
"status": "NEED_SCAN",
"qrCode": "2@DTMUHeYfa9/RMXr8A2IP3/...", // This is the QR string. Use a QR code library to generate an image.
}
}