Skip to content

Workspaces API

A workspace is a sub-unit of an organization: the container that scopes membership, app access, spaces and channels for a team or venue, such as one cinema branch. An organization holds several workspaces, and a workspace never spans organizations.

Resources

Resource What it is
Workspace A named container inside an organization. Has a slug, a type and a set of enabled apps.
Workspace member An organization user who holds a role on the workspace directly.
Space A location (place) assigned to the workspace.
Channel A playback channel assigned to the workspace.

Teams can also hold a role on a workspace. A user reaches a workspace either directly or through a team, never both.

Authentication and permissions

Send Authorization: Bearer <ACCESS_TOKEN>. See Authentication. Users with the organization role ORG_OWNER or ORG_ADMIN pass every workspace check in their organization.

Action Permission
List or read workspaces, list members, list a workspace's teams Any valid token
Create a workspace org:workspaces:create
Update or delete a workspace, replace its app access, add, change or remove members, assign spaces and channels workspace:settings:manage on that workspace

Base path

Served by CoreAPI.

https://<API_HOST>/api/v1/tenancy/organizations/{orgId}/workspaces/{workspaceId}/…

{orgId} is the organization ID and {workspaceId} the workspace ID. The workspace must belong to the organization in your token.

Capabilities

  • Create, list, read, update and delete workspaces
  • Choose which apps a workspace's members can use
  • Add, list, change and remove direct members
  • Assign spaces and channels to a workspace

Object model

Workspace

Field Type Description
id string Workspace ID. Read-only.
name string Display name: letters, numbers and single spaces only. Unique per organization, ignoring case.
workspaceSlug string URL-safe name. Lower case letters, numbers and dashes. Unique per organization. Set on create from name unless you send one. Write-once.
description string Free text.
workspaceType string A label such as Cinema or Custom. Default Custom.
appIds string[] Apps enabled for the workspace. At least one.
memberCount, spaceCount, channelCount integer Counts. Read-only. Returned by the list and read routes.
{
  "id": "0f6d2f0e-6c1a-4a54-8a77-5d0f3c9b2e10",
  "name": "KLCC Branch",
  "workspaceSlug": "klcc-branch",
  "description": "Flagship branch",
  "workspaceType": "Cinema",
  "appIds": ["playout", "tellyboard"],
  "memberCount": 4,
  "spaceCount": 2,
  "channelCount": 1
}

Workspace member

Field Type Description
userId string User ID.
name string Full name.
email string Email address.
role string WORKSPACE_ADMIN, WORKSPACE_MEMBER, VIEWER, or a custom workspace-scope role ID.
Role Meaning
WORKSPACE_ADMIN Full control of the workspace, including its members.
WORKSPACE_MEMBER Works with the workspace's content. Default for new members.
VIEWER Read-only.

Errors

Status When What to do
400 A required field is missing, name has characters other than letters, numbers and spaces, an app ID is unknown, a role is not a workspace role, or the user is not in the organization. The body is {"error": "<reason>"}, or {"success": false, "error": "Bad Request"} for an unreadable body. Fix the request.
401 No valid token, or the caller has no user record. Sign in again.
403 You lack the permission, the workspace is in another organization, or you tried to change or remove yourself. Ask an administrator.
404 The workspace or member does not exist in this organization. Check the IDs.
409 The name or slug is already used, or the user already reaches the workspace through a team. Choose another name, or remove the team grant first.

Endpoints