Skip to main content
GET
/
instances
/
{instanceId}
/
token
/
{token}
/
qr-code
/
image
QRCode as image
curl --request GET \
  --url https://api.z-api.io/instances/{instanceId}/token/{token}/qr-code/image \
  --header 'Client-Token: <api-key>'

Overview

Returns the QRCode in base64 image format, so you can display it in an image 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

Returns the QRCode image in base64.

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.