Request New QR Code
Generate a new QR code for instance authentication after an expired or failed scan.
Rate Limit
This endpoint is limited to 1 request per minute to prevent abuse and protect against rapid QR code generation attempts.When to Use
Use this endpoint when:- The QR code has expired (typically after 60 seconds)
- The initial QR code scan failed
- The user closed the scanning interface without completing authentication
- You need to refresh the authentication flow
Response
The response includes:- Updated instance details
qr_code- New base64-encoded PNG QR code- Current instance status (should be
SCAN_QR_CODE) access_token- Your instance access token
QR Code Display
The QR code is returned as a base64-encoded PNG without the data URI prefix. To display it in HTML:Authentication Flow
- Request a new QR code
- Display it to the user
- User scans with WhatsApp mobile app (Settings > Linked Devices)
- Monitor instance status until it changes to
WORKING
Error Responses
- 404: Instance not found - Check if the instance UUID is correct
- 429: Rate limit exceeded - Wait at least 60 seconds before requesting again
Authorizations
Bearer token authentication. Example: Bearer 234|3uB2pBST2H6If8twXIeUaeNu23VJ8XassYoOVJuva48388e1
Headers
application/json
"application/json"
Path Parameters
Instance UUID copied from hypersender dashboard
"{{ instance_id }}"
Response
New QR code generated successfully
Instance UUID
"fa3d01c4-1234-4c0d-a12f-df319b612f8c"
Instance name
"MyInstanceName"
Phone number in E.164 format
"+201234567890"
Service type
"whatsapp"
Instance status
STOPPED, STARTING, WORKING, SCAN_QR_CODE, FAILED, PENDING "WORKING"
Access token for the instance
"234|3uB2pBST2H6If8twXIeUaeNu23VJ8XassYoOVJuva48388e1"
Creation timestamp
"2025-05-26T10:12:45"
Base64-encoded PNG QR code (without data:image/png;base64, prefix). You must prepend it manually when displaying: [Image blocked: No description]
"iVBORw0KGgoAAAANSUhEUgAAA..."