POST
/
v1
/
sessions
/
{sessionId}
/
clipboard
curl --request POST \
  --url https://api.anchorbrowser.io/v1/sessions/{sessionId}/clipboard \
  --header 'Content-Type: application/json' \
  --header 'anchor-api-key: <api-key>' \
  --data '{
  "text": "Text from clipboard API"
}'
{
  "status": "success"
}

Authorizations

anchor-api-key
string
header
required

API key passed in the header

Path Parameters

sessionId
string
required

The ID of the browser session

Body

application/json
text
string
required

Text to set in the clipboard

Example:

"Text from clipboard API"

Response

200
application/json
Clipboard content set successfully
status
string
Example:

"success"