Reset the Challenge
Instance
Reset the Challenge
Resets the current passkey challenge, allowing a new QR Code to be generated
POST
Reset the Challenge
Overview
This method is part of the instance connection flow via Passkey (WebAuthn). It is used when the client wants to generate a new QR Code — for example, to scan it with a different device. When this endpoint is called, the current challenge is reset. On the next call to the QR Code endpoint, a new QR Code is generated.This endpoint invalidates the current passkey flow. After a successful call, the qr-code endpoint must be called again to obtain the new QR Code.
Attributes
Required
Your instance ID. Available in the Z-API panel under Instances.
Your Z-API instance token.
Response
200
Returns the result of the processing by the instance. There are two possible variations: Success — challenge reset:On success, call the qr-code endpoint again to obtain the new QR Code.
400
Returned in the following cases:- Instance not found for the
instanceId+tokenpair: