Overview
Workspaces are isolated execution environments within an organization. The Workspaces API provides functions to create workspaces, list available workspaces, and manage workspace-level settings.Workspace Functions
create
Creates a new workspace within an organization. Requires authentication.Display name for the workspace
Organization to create the workspace in. If not provided, uses the user’s default organization or creates a new personal organization.
Storage ID for the workspace icon image
Unique workspace identifier
Parent organization ID
Name of the parent organization
URL-friendly slug for the organization
Workspace display name
URL-friendly workspace slug
URL to the workspace icon, or null if no icon is set
Unix timestamp of workspace creation
list
Lists workspaces accessible to the current user, optionally filtered by organization.Filter workspaces to a specific organization
create response.
generateWorkspaceIconUploadUrl
Generates a temporary upload URL for uploading a workspace icon.Temporary URL to upload the icon image to
Storage identifier to use when creating/updating the workspace
Organization Functions
create (Organization)
Creates a new organization. Requires authentication.Display name for the organization
Unique organization identifier
Organization display name
URL-friendly organization slug
Unix timestamp of creation
listMine
Lists all organizations the current user is a member of. Returns an array of organization objects.getNavigationState
Retrieves the current user’s navigation state, including their default organization and workspace.The user’s current/default organization
The user’s current/default workspace
List of organizations the user belongs to
List of workspaces the user has access to
getOrganizationAccess
Retrieves the current user’s access level and role within an organization.Organization to check access for
User’s role:
"owner", "admin", "member", or "billing_admin"Whether the user has admin privileges (owner or admin role)
Whether the user can manage billing settings
resolveWorkosOrganizationId
Resolves the WorkOS organization ID for a given Executor organization.Executor organization ID
The associated WorkOS organization ID, if any
Workspace Structure
Workspaces provide isolation for:- Tasks: Code execution is scoped to a workspace
- Tool Sources: MCP servers and API integrations can be workspace-specific
- Approvals: Approval workflows operate at the workspace level
- Storage: Workspace-scoped storage instances for persistent data
- Policies: Access control policies can be defined per workspace
Organization Structure
Organizations are the top-level container and manage:- Members: User membership and roles
- Billing: Subscription and usage tracking
- Workspaces: Multiple isolated environments
- Organization-scoped tool sources: Shared across all workspaces
- Organization-scoped policies: Apply to all workspaces
Related Types
OrganizationRole:"owner"|"admin"|"member"|"billing_admin"ToolSourceScopeType:"organization"|"workspace"PolicyScopeType:"account"|"organization"|"workspace"