Learn how to manage workspaces in the NextCoder platform
Workspaces are the fundamental building blocks of the NextCoder platform. Each workspace represents a project that can contain multiple AI agents, integrations, and configurations.
A workspace contains:
Workspaces can be created through the dashboard UI or via the API.
// Create a new workspace via API
const response = await fetch('/api/workspaces', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: 'My New Project',
planId: 'pro'
}),
});
const workspace = await response.json();| Method | Endpoint | Description |
|---|---|---|
| GET | /api/workspaces | List all workspaces |
| POST | /api/workspaces | Create a new workspace |
| GET | /api/workspaces/{id} | Get workspace details |
| PUT | /api/workspaces/{id} | Update a workspace |
| DELETE | /api/workspaces/{id} | Delete a workspace |
interface Workspace {
id: string;
name: string;
ownerId: string;
planId: string;
createdAt: Date;
updatedAt: Date;
}