JavaScript
const options = { method: 'POST', headers: {'X-Browser-Use-API-Key': '<api-key>', 'Content-Type': 'application/json'}, body: JSON.stringify({name: '<string>'}) }; fetch('https://api.browser-use.com/api/v3/workspaces', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "name": "<string>" }
Create a new workspace for persistent shared file storage across sessions.
Request model for creating a new workspace.
Optional name for the workspace
100
Successful Response
View model for a workspace — persistent shared storage across sessions.
Unique identifier for the workspace
Timestamp when the workspace was created
Timestamp when the workspace was last updated