Performs a swipe in the specified direction
Enter your API Key in the format: Bearer
Box ID
"c9bdc193-b54b-4ddb-a035-5ac0c598d32d"
Simple swipe action configuration. The gesture will be performed from the center of the screen towards the specified direction.
Direction to swipe. The gesture will be performed from the center of the screen towards this direction.
up, down, left, right, upLeft, upRight, downLeft, downRight "up"
Duration of the swipe
Supported time units: ms (milliseconds), s (seconds), m (minutes), h (hours) Example formats: "500ms", "30s", "5m", "1h" Default: 500ms
"500ms"
Distance of the swipe. Can be either a number (in pixels) or a predefined enum value (tiny, short, medium, long). If not provided, the swipe will be performed from the center of the screen to the screen edge
300
Natural language description of the location where the swipe should originate. If not provided, the swipe will be performed from the center of the screen.
"Chrome App"
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"]
}
}
Swipe action result with actual parameters used
Result of swipe 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 swipe action
{
"start": { "x": 540, "y": 1000 },
"end": { "x": 540, "y": 500 },
"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..."
}
}