Touch
Performs more advanced touch gestures. Use this endpoint to simulate realistic behaviors.
Authorizations
Enter your API Key in the format: Bearer . Get it from https://gbox.ai
Path Parameters
Box ID
"c9bdc193-b54b-4ddb-a035-5ac0c598d32d"
Body
Multi-touch action configuration
Array of touch points and their actions
Action options. When options.screenshot is provided, ALL deprecated screenshot fields (outputFormat, presignedExpiresIn, screenshotDelay, screenshotRange, includeScreenshot) will be completely ignored.
{
"screenshot": {
"outputFormat": "base64",
"presignedExpiresIn": "30m",
"delay": "500ms",
"phases": ["before", "after"]
}
}Response
Touch action result with actual parameters used
Result of touch action execution with actual parameters used
message
"Action executed successfully"
Unique identifier for each action. Use this ID to locate the action and report issues.
"c9bdc193-b54b-4ddb-a035-5ac0c598d32d"
Actual parameters used when executing the touch action
{
"points": [
{
"start": { "x": 100, "y": 150 },
"actions": [
{
"type": "move",
"x": 400,
"y": 300,
"duration": "200ms"
},
{ "type": "wait", "duration": "500ms" }
]
}
]
}Optional screenshot data. Only present when screenshots are requested via options.screenshot.phases or deprecated fields
{
"trace": {
"uri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA..."
},
"before": {
"uri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA..."
},
"after": {
"uri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA..."
}
}