Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Overview

Workspaces endpoints

Available Operations

list

List all workspaces for the authenticated user. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<operations.ListWorkspacesResponse>

Errors

create

Create a new workspace for the authenticated user. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.CreateWorkspaceResponse>

Errors

delete

Delete an existing workspace. The default workspace cannot be deleted. Workspaces with active API keys cannot be deleted. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.DeleteWorkspaceResponse>

Errors

get

Get a single workspace by ID or slug. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.GetWorkspaceResponse>

Errors

update

Update an existing workspace by ID or slug. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.UpdateWorkspaceResponse>

Errors

listMembers

List all members of a workspace. Returns paginated results. For the default workspace, returns all organization members (implicit membership). Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<operations.ListWorkspaceMembersResponse>

Errors

bulkAddMembers

Add multiple organization members to a workspace. Members are assigned the same role they hold in the organization. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.BulkAddWorkspaceMembersResponse>

Errors

bulkRemoveMembers

Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.BulkRemoveWorkspaceMembersResponse>

Errors