Skip to main content
A workspace shares apps with other Square Cloud users, each with a role. client.workspaces manages workspaces, client.workspaces.members their members and client.workspaces.apps the shared apps. Creating workspaces needs a Standard, Pro or Enterprise plan. Examples use the client from Creating the client. workspace_id is the id of a workspace (workspaces.list() lists them), app_id the id of one of your apps and member_id the id of a member.

Workspaces

The owner cannot leave (400 CANNOT_LEAVE_OWNER): delete the workspace instead.

Members

Adding a member takes an invite code that the member generates with members.invite_code(). The code is valid for 5 minutes.
Roles (group): view, manager, maintain and admin. Calling a method that your role does not allow is 403 PERMISSION_DENIED.

Shared applications

A workspace can hold up to 100 apps (400 APPLICATIONS_LIMIT_REACHED).

Acting on a shared app

To act on an app shared with you, pass the composite id <appId>-<workspaceId> to any client.apps method. workspaces.get() and workspaces.list() return raw ids, so build it yourself:

Errors

Workspace routes send the ids in the request body, so an empty id is 400 INVALID_ID from the server (not a local error). The exception is workspaces.get(), whose id is in the URL path: an empty id fails locally there.

Next steps

AI

Chat completions through the AI Gateway.

Workspace API reference

The REST endpoints behind these methods.

Workspaces from the CLI

The same actions from the terminal.