Skip to main content
POST

Behavior

Only the browser’s download directory (~/Downloads) is reachable, and only while the cloud browser runs. Paths outside it, including the browser profile, are rejected.

Path parameters

string
required
The agent session ID, or the browser session ID from its RunnerSessionEvent.

Request body

string
default:"~/Downloads"
Directory to list.
integer
default:"500"
Maximum number of entries to return, at least 1. When the directory holds more, truncated is true and the page ends at the oldest entry returned.
string
Page cursor: the modified_at of the last entry of the previous page. Always send it together with name_after.
string
Page cursor: the name of the last entry of the previous page. Modification times are not unique, so the name is what keeps files sharing one from being skipped.

Response

200 with the directory listing.
string
The listed directory, resolved.
object[]
Entries, newest first.
string
string
integer
string
boolean
boolean
true when the listing stopped at max_entries. Take modified_at and name from the last entry and send them as modified_before and name_after for the next page.

Page through a large directory

Pass the last entry’s modified_at and name back as the cursor until truncated is false:
Python

Errors