Create Workspace
Authorization
AccessToken AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/workspaces" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{ "status": 0, "message": "string", "data": { "id": "string", "name": "string", "description": "", "ownerId": "string", "mastraId": "", "mastraName": "", "status": "pending", "workspaceType": "local", "filesystem": { "type": "local", "basePath": "", "bucket": "", "region": "", "readOnly": false, "config": {} }, "sandbox": { "type": "local", "basePath": "", "bucket": "", "region": "", "readOnly": false, "config": {} }, "mounts": [], "bm25": false, "vectorStoreConfig": null, "autoIndexPaths": [], "skills": [], "tools": {}, "toolDefaults": { "enabled": true, "requireApproval": false, "requireReadBeforeWrite": false, "name": "", "maxOutputTokens": 2000 }, "operationTimeout": 30000, "lspEnabled": false, "icon": "📁", "color": "#f97316", "collaborators": [], "isPublic": false, "metadata": {}, "lastAccessedAt": null, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }, "type": "string", "code": "string"}