Generate QR API

POST
Endpoint
{{ url('/') }}/generate-qr
Request Parameters
Parameter Type Required Description
device string Yes Number of your device
api_key string Yes API Key
force boolean No If true, when device is not exist, it will be created
Try It Out
Response

                    
QR Code
QR Code
Normal Response Example
                
{
    "status": "processing",
    "message": "Processing"
}

// If processing, you need to hit the endpoint again to get the result
// Result will be like this
{
    "status": false,
    "qrcode": "data:image/png;base64,...",
    "message": "Please scan QR code"
}
                
            
Failed Response Example
                
{
    "status": false,
    "msg": "Invalid data!",
    "errors": {} // list of errors
}