Skip to main content
POST
Scroll
Moves the pointer to x, y and scrolls the wheel there.
Always send x and y. The pointer is moved before every scroll, and omitting either coordinate moves it to 0 on that axis. A request of {"direction": "down", "amount": 3} warps the pointer to the top-left corner and scrolls whatever happens to be under it. There is no way to scroll at the pointer’s current position through this endpoint.

Path parameters

string
required
Computer ID (UUID).

Query parameters

string
Which screen to scroll on. Optional. Omit it to act on the screen the computer booted with. An unknown id returns 404 rather than falling back to the default screen.

Body parameters

integer
required
X coordinate to move the pointer to before scrolling, in pixels from the left edge. Nominally optional, but omitting it moves the pointer to x = 0. See the warning above.
integer
required
Y coordinate to move the pointer to before scrolling, in pixels from the top edge. Nominally optional, but omitting it moves the pointer to y = 0. See the warning above.
string
default:"down"
Scroll direction: up or down. Optional. Omitting it scrolls down, and so does any value other than the exact string up.
integer
default:"1"
Number of wheel clicks. Optional. Omitting it, or sending 0, scrolls once. A negative value moves the pointer, scrolls nothing, and still returns 200.

Response

boolean
Always true on a 200. A failed scroll is an error status.
string
Always scroll.
object
Carries direction and amount after defaults are applied. The coordinates the pointer was moved to are not echoed back.

Example

Response

Errors

Every failure raised after the request leaves the API layer also carries a request_id. Quote it in support requests. When the computer agent itself answered non-2xx, the body additionally carries upstream_status.

Authorizations

Authorization
string
header
required

API key authentication. Get your key at orgo.ai/workspaces

Path Parameters

id
string
required

Computer ID

Query Parameters

screen
string

Which screen to act on. Omit for the boot screen. An unknown id returns 404 rather than falling back.

Body

application/json
x
integer
required

X coordinate to move the pointer to before scrolling, in pixels from the left edge. The pointer is moved before every scroll, so omitting this warps it to x = 0 and scrolls whatever is under that point. Always send it.

y
integer
required

Y coordinate to move the pointer to before scrolling, in pixels from the top edge. The pointer is moved before every scroll, so omitting this warps it to y = 0 and scrolls whatever is under that point. Always send it.

direction
enum<string>
default:down

Scroll direction. Optional. Omitting it scrolls down, and so does any value other than the exact string up.

Available options:
up,
down
amount
integer
default:1

Number of wheel clicks. Optional. Omitting it, or sending 0, scrolls once. A negative value moves the pointer, scrolls nothing, and still returns 200.

Response

Scroll performed

success
boolean
Example:

true