JavaScript
const options = {method: 'GET', headers: {'X-Browser-Use-API-Key': '<api-key>'}}; fetch('https://api.browser-use.com/api/v3/sessions/{session_id}/files', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "files": [ { "path": "<string>", "size": 123, "lastModified": "2023-11-07T05:31:56Z", "url": "<string>" } ], "nextCursor": "<string>", "hasMore": false }
List files in a session’s workspace.
Returns paginated file metadata. Pass includeUrls=true to get presigned download URLs (60s expiry) inline with each file.
1 <= x <= 100
Successful Response
Paginated file listing with optional presigned download URLs.
Show child attributes