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

# copyToClipboard

Copies specified text to the system clipboard.

## Request Parameters

| Parameter Name | Type   | Required | Description                                |
| -------------- | ------ | -------- | ------------------------------------------ |
| text           | String | Yes      | Supports copying text of unlimited length. |

## Response Parameters

None

## Call Example

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

```javascript
let payload = {
  text: "Hello World"
};

const response = await relayx.copyToClipboard(payload);
if (response.code === 200) {
  console.log("Text copied to clipboard");
}
```

{% endcode %}
