Documentation
HTTP API Documentation
https://api.waapi.me
Get Instance QR Code
This request retrieves the QR code contents for a WaAPI instance, but only if a connection session has been started for that instance using the Instance Connect request. Use this method to get the QR code necessary for establishing the instance`s connection.
Request
This section provides an example HTTP request for retrieving the QR code. Ensure that the request includes the correct URL and the instance ID, and that a connection session has been started with the Instance Connect request before making this call.
GEThttps://api.waapi.me/instance/:id/qr
Headers
When making this request, it`s important to include Authorization HTTP header
Authorization: <YOUR_API_KEY>
Response
The response contains the QR code content in the form of encoded data. This QR code can be scanned to establish the instance`s connection with WhatsApp. If no session has been started for the instance, the response will indicate that the QR code is not available. Refer to the table for further details on the response fields.
Field | Type | Description |
---|---|---|
qrcode | string|null | QR code content |