POST
/v1/workspacesbetaapiKeyorganization
When to use
Provision a new workspace before uploading or querying its data.
For agents
Requires an organization-scoped request and a write grant for all workspace resources.
Example
import { PermuteClient } from '@permute/sdk';
const orgClient = new PermuteClient({
apiKey: process.env.PERMUTE_API_KEY!,
});
const result = await orgClient.workspaces.create({
"name": "Finance",
"context": "Revenue, customers, and operating performance"
});Request body
{
"name": "Finance",
"context": "Revenue, customers, and operating performance"
}Response
{
"data": {
"id": "wksp_finance123",
"organizationId": "org_acme123",
"name": "Finance",
"context": "Revenue, customers, and operating performance",
"visibility": "private",
"createdAt": "2026-07-14T12:00:00.000Z",
"updatedAt": "2026-07-14T12:00:00.000Z"
}
}