curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.sandbox.stateset.app/api/v1/sandbox/{id}/mouse' \
--header "Authorization: ApiKey $STATESET_SANDBOX_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"action": "click",
"x": 1,
"y": 1,
"button": 1,
"endX": 1,
"endY": 1
}'
{
"success": true
}
Perform a mouse action (click, move, drag, double-click)
Mouse action executed successfully
POST
/
api
/
v1
/
sandbox
/
{id}
/
mouse
curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.sandbox.stateset.app/api/v1/sandbox/{id}/mouse' \
--header "Authorization: ApiKey $STATESET_SANDBOX_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"action": "click",
"x": 1,
"y": 1,
"button": 1,
"endX": 1,
"endY": 1
}'
{
"success": true
}
Confirm your deployment before running this request. This page describes an API contract;
a published reference does not establish hosted availability. Check the dated
host report and obtain your deployment URL and credentials.
Replace the example host if your provisioned service uses a different URL.
Path parameters
string (uuid)
required
Sandbox identifier
Request body
MouseActionRequest
string
required
Allowed values:
'click', 'move', 'double_click', 'drag'.integer
required
Minimum:
0. Maximum: 9007199254740991.integer
required
Minimum:
0. Maximum: 9007199254740991.integer | string
Minimum:
1. Maximum: 3.Show button
Show button
Show Option 1: integer
Show Option 1: integer
Minimum:
1. Maximum: 3.Show Option 2: string
Show Option 2: string
Allowed values:
'1', '2', '3', 'left', 'middle', 'right'.integer
Minimum:
0. Maximum: 9007199254740991.integer
Minimum:
0. Maximum: 9007199254740991.Response
SuccessResponse
boolean
Status codes
| Code | Meaning |
|---|---|
200 | Mouse action executed successfully |
400 | Invalid request |
404 | Sandbox not found |
500 | Mouse action failed |
Using this contract
Read the source OpenAPI document for declared schemas and alternatives. This page also includes documented corrections from the spec overlays. Example IDs and values are illustrative; replace them with records from your workspace.curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.sandbox.stateset.app/api/v1/sandbox/{id}/mouse' \
--header "Authorization: ApiKey $STATESET_SANDBOX_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"action": "click",
"x": 1,
"y": 1,
"button": 1,
"endX": 1,
"endY": 1
}'
{
"success": true
}
Last modified on September 21, 2026