Skip to main content
GET
QRCode as bytes

Overview

Returns the QRCode bytes so you can render it in a compatible component.

Attributes

instanceId
string
required
Your instance ID. Available in the Z-API panel under Instances.
token
string
required
Your Z-API instance token.

Response

200

The QR Code may be returned in bytes, or, on devices that require the Passkey, the Challenge object to continue the authentication process.
Example response for the QR Code bytes
Example response for devices that require the Passkey
In cases where this response is returned, it is necessary to complete the authentication requested via the Challenge. For this, we have the Complete the Challenge endpoint.

405

Make sure you are correctly sending the method specification, that is, verify that you sent POST or GET as specified at the beginning of this topic.

415

If you receive a 415 error, make sure to add the “Content-Type” header to your request, which in most cases is “application/json”.