GET
/api/whatsapp-sessions/{whatsappSession}/qrcode
Retrieves the QR code needed to connect a WhatsApp session with the WhatsApp client. Requires an active subscription.
Get WhatsApp Session QR Code
Retrieves the QR code needed to connect a WhatsApp session with the WhatsApp client. Requires an active subscription.
This endpoint requires an access token to be included in the Authorization header. You can get the token from here.
Important: Before calling this endpoint, you must first initialize the WhatsApp session by calling the Connect WhatsApp Session endpoint.
Parameters
Name | Type | Required | Description |
---|---|---|---|
whatsappSession | integer | Yes | ID of the WhatsApp session. |
Code Examples
curl "https://www.wasenderapi.com/api/whatsapp-sessions/{whatsappSession}/qrcode"
-H "Authorization: Bearer YOUR_API_KEY"
Response Examples
{
"success": true,
"data": {
"qrCode": "2@DfzdTHeYfa9/RMXr8A2IP3/....", // This is the QR string. Use a QR code library to generate an image.
}
}