Skip to main content
Workspaces are the top-level containers for teams in Moonshadow. Every workspace holds its own members, integrations, and event history. Use these endpoints to create new workspaces, list your existing ones, and update workspace settings.

List Workspaces

Returns a paginated list of workspaces you have access to.

Query Parameters

integer
default:"20"
Number of workspaces to return. Maximum is 100.
string
Cursor from a previous response to fetch the next page.

Response

array
Array of workspace objects.
string
Unique workspace identifier, e.g. ws_abc123.
string
Human-readable workspace name.
string
URL-friendly unique identifier for the workspace.
string
Billing plan: free, team, or enterprise.
object
Cursor pagination metadata.

Create a Workspace

Creates a new workspace for your team.

Request Body

string
required
Display name for the workspace. Must be between 1 and 100 characters.
string
required
URL-friendly unique identifier. Must match ^[a-z0-9-]+$ and be 2 to 50 characters.
string
default:"free"
Billing plan for the workspace. Options: free, team, enterprise.

Response

Returns the newly created workspace object with a generated id.

Get a Workspace

Retrieves a single workspace by its ID.

Path Parameters

string
required
The workspace ID, e.g. ws_abc123.

Response


Update a Workspace

Updates fields on an existing workspace.

Path Parameters

string
required
The workspace ID to update.

Request Body

string
New display name for the workspace.
string
New slug. Must still be globally unique.
string
New billing plan: free, team, or enterprise.

Response

Returns the updated workspace object.
Changing a workspace’s plan may trigger billing changes. Use with care in production.