Creating workspaces
To create a delegated workspace, use the Create workspace endpoint.
import { Fabric } from "@fbrc/sdk";
const api = new Fabric({
apiKey: process.env.FABRIC_API_KEY!,
});
const workspace = await api.workspaces.create({
title: "Project Alpha",
});
curl https://api.fabric.so/v2/workspaces \
-X POST \
-H 'X-Api-Key: <FABRIC_API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"title": "Project Alpha"
}'
The workspace associated with your developer API key is automatically assigned as the parent workspace, so no additional configuration is required.