> 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/verifysignature.md).

# verifySignature

Used to verify the signature generated by `generateSignature`.

Request Parameters:

| Parameter Name | Type   | Required | Description                           |
| -------------- | ------ | -------- | ------------------------------------- |
| message        | String | Yes      | Original message content.             |
| signature      | String | Yes      | Signature to verify (Base64 encoded). |

Response Parameters:

| Parameter Name | Type    | Description                     |
| -------------- | ------- | ------------------------------- |
| result         | Boolean | Whether the signature is valid. |

Call Example:

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

```javascript
let payload = {
  message: "Hello RelayApp",
  signature: "..."
};

const response = await relayx.verifySignature(payload);
if (response.code === 200) {
  console.log("Valid Signature:", response.result);
}
```

{% endcode %}
