basic qr api