GET
/
v1
/
sessions
/
{sessionId}
/
clipboard
JavaScript
import Anchorbrowser from 'anchorbrowser';

const client = new Anchorbrowser({
  apiKey: 'My API Key',
});

const clipboard = await client.sessions.clipboard.get('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');

console.log(clipboard.data);
{
  "data": {
    "text": "Clipboard content"
  }
}

Authorizations

anchor-api-key
string
header
required

API key passed in the header

Path Parameters

sessionId
string<uuid>
required

The ID of the browser session

Response

200
application/json

Clipboard content retrieved successfully

The response is of type object.