โ† API reference
Query / surfaces

listWorkspaces

List the caller's visible workspace library (own personal + their teams' + instance).

Arguments

firstInt

Page size, 0 to 100 (default 25). A value outside that range returns a PAGE_SIZE_NEGATIVE or PAGE_SIZE_EXCEEDED error.

afterString

Cursor from a previous page's endCursor; results resume after it. An unresolvable cursor is ignored and the first page is returned.

Optional criteria (handle, computed status) narrowing the visible workspaces.

Ordering terms; only the first is applied. Defaults to UPDATED_AT / DESC.

Returns WorkspaceConnection!

Scalar fields at a glance

totalCountInt
โ†— View the complete WorkspaceConnection type

Explore in a view

Journeys and Workspaces
View exact SDL
"""
List the caller's visible workspace library (own personal + their teams' + instance).
"""
listWorkspaces(
  """
  Page size, 0 to 100 (default 25). A value outside that range returns a PAGE_SIZE_NEGATIVE or PAGE_SIZE_EXCEEDED error.
  """
  first: Int
  """
  Cursor from a previous page's `endCursor`; results resume after it. An unresolvable cursor is ignored and the first page is returned.
  """
  after: String
  """
  Optional criteria (handle, computed status) narrowing the visible workspaces.
  """
  filter: WorkspaceFilterInput
  """
  Ordering terms; only the first is applied. Defaults to UPDATED_AT / DESC.
  """
  sort: [WorkspaceSortInput!]
): WorkspaceConnection! @topic(names: ["surfaces"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.