GET /v1/instances/:instanceId/configure
Returns a Base64-encoded QR code that you scan with WhatsApp to link a phone number to this instance. After scanning, the instance status transitions to CONFIGURED and eventually ACTIVE.
Request
Headers
| Header | Value |
|---|---|
Authorization | Bearer <token> |
Path parameters
| Parameter | Type | Description |
|---|---|---|
instanceId | string | The instance ID to configure |
Response 200
| Field | Type | Description |
|---|---|---|
instanceId | string | The instance ID |
qrCodeBase64 | string | Base64-encoded QR code image |
message | string | Additional status message |
Decoding the QR code
ConvertqrCodeBase64 to an image and display it for scanning:
- JavaScript
- Python
Errors
| Code | Description |
|---|---|
401 | Missing or invalid token |
404 | Instance not found or does not belong to the user |