Skip to main content
This API is available on self-hosted deployments only. See Self-Hosting for setup instructions.

How This Helps

Workspaces organize users and datasets within an organization. Use these endpoints to list workspaces, view membership, check access levels, and change member roles — all programmatically.

Prerequisites

  • A self-hosted Visual Layer deployment with authentication enabled.
  • An authenticated session with a workspace member account.
  • Admin role required for role-change operations.

List Workspaces

Retrieve all workspaces the authenticated user belongs to.

Query Parameters

Example

Response

Workspace Object Fields

Permission Fields


Get Workspace

Retrieve details for a specific workspace.

Path Parameters

Example

Response

Returns a single Workspace object.

List Workspace Members

Retrieve all members of a workspace with their roles.

Query Parameters

Example

Response

Member Object Fields


Update Member Role

Change a workspace member’s role. Admin access required.

Path Parameters

Request Body

Example

Response

Returns the updated Member object.

Role Change Behavior

Role changes have cascading effects depending on the transition: Promoting to Admin (single-workspace mode):
  • All existing admins are demoted to Editor.
  • The promoted user receives Keycloak admin roles.
  • All affected users are logged out and must re-authenticate.
Demoting to Viewer:
  • All dataset-level permissions above Viewer are revoked.
  • Datasets owned by the demoted user are transferred to the admin performing the change.
  • If the user was an admin, Keycloak admin roles are revoked.
You cannot change your own role. Attempting to do so returns a 400 error.

Check Settings Access

Check the authenticated user’s access level for workspace settings.

Query Parameters

Example

Response


List Organizations

Retrieve all organizations the authenticated user belongs to.

Example

Response


Get Organization

Retrieve details for a specific organization.

Path Parameters

Example

Response


Python Example


Response Codes

See Error Handling for the error response format.

User Management

Create, update, and delete user accounts on self-hosted deployments.

Admin Settings

View and update runtime configuration settings.