Mobile API v1

Account and workspace

Read the signed-in member, available workspaces, capabilities, terminology and theme.

On this page

Call each function by its full path. A question mark marks an optional field.

mobile/v1/me:communityTerms

query · Arguments
{
  expectedTenantId?: string
}
Response type
Result
{
  discussions: string
}

mobile/v1/me:get

query · Arguments
{
  expectedTenantId?: string
}
Response type
Result
{
  mobileApiVersion: string
  user: {
    userId: string
    displayName: string | null
    email: string | null
    imageUrl: string | null
  }
  workspace: {
    tenantId: string
    displayName: string
    hostname: string | null
  }
  role: "learner" | "teacher" | "manager" | "builder" | "admin"
  capabilities: {
    learning: boolean
    community: boolean
    notifications: boolean
    messages: boolean
    push: boolean
    documents: boolean
    directory: boolean
    coachFeedback: boolean
  }
  terminology: {
    profile: string
    community: string
    groups: string
    messages: string
  }
  theme: {
    source: "experience" | "theme" | "default"
    preset: "porcelain" | "4kira_preview" | "northstar"
    applicationName: string | null
    defaultMode: "light" | "dark"
    userMode: "light" | "dark" | null
    colors: {
      primary: string
      onPrimary: string
      surfaceTint: string
    }
    light: {
      canvas: string
      surface: string
      ink: string
      mutedInk: string
      action: string
      actionInk: string
      tint: string
      accent: string
      accentInk: string
    } | null
    dark: {
      canvas: string
      surface: string
      ink: string
      mutedInk: string
      action: string
      actionInk: string
      tint: string
      accent: string
      accentInk: string
    } | null
    headingFont: "system" | "serif" | null
  }
}

mobile/v1/me:selectWorkspace

mutation · Arguments
{
  tenantId: string
}
Response type
Result
{
  tenantId: string
}

mobile/v1/me:workspaces

query · Arguments
{}
Response type
Result
{
  workspaces: Array<{
    tenantId: string
    displayName: string | null
    role: "learner" | "teacher" | "manager" | "builder" | "admin"
    hostname: string | null
  }>
}

All API modules · OpenRPC 1.3.2 JSON