Skip to main content
POST
Eval

Description

Executes a JavaScript expression in the context of the current page and returns the result.

Authentication

Open-source deployments do not require authentication by default. If your server config enables X-API-Key, include that header with the request.

Path Parameters

id
string
required
The browser ID returned from Create Session.

Request Body

expression
string
required
The JavaScript expression to evaluate.

Response

success
boolean
Whether the evaluation completed successfully.
data
object
The return value of the evaluated expression.

Example