> For the complete documentation index, see [llms.txt](https://support.marscat.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.marscat.io/development-guide/frontend-development/api-interface/api-interface-details/level-0/scanqrcode.md).

# scanQRCode

Calls the system scanning function to scan a QR code and return the result.

Request Parameters

{% hint style="info" %}
None
{% endhint %}

Response Parameters

| Parameter Name | Type   | Description                            |
| -------------- | ------ | -------------------------------------- |
| result         | String | String result returned after scanning. |

Call Example

{% code title="example.js" %}

```javascript
const response = await relayx.scanQRCode();
if (response.code === 200) {
  console.log("Scanned QRCode:", response.result);
}
```

{% endcode %}
