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

# decrypt

Uses the current MarsApp ECC public key to decrypt encrypted content.

Request Parameters:

| Parameter Name | Type   | Required | Description                          |
| -------------- | ------ | -------- | ------------------------------------ |
| content        | String | Yes      | Content to decrypt (Base64 encoded). |

Response Parameters:

| Parameter Name | Type   | Description          |
| -------------- | ------ | -------------------- |
| result         | String | Decrypted plaintext. |

Call Example:

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

```javascript
let payload = {
  content: "..."
};

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

{% endcode %}
