Skip to main content

Workspace

How the template models organization-backed workspaces, routes, members, teams, invitations, and settings.

SectionWorkspace / Overview
PurposeWorkspace overview
UpdatedJul 6, 2026
AuthorTemplate Maintainers
Versionv1.2.0
Reading time2 min

Workspace

Workspace is the user-facing name for an application working area. In the template, every workspace is backed by a Better Auth Organization that stores members, roles, teams, invitations, API keys, and access settings.

This page is the high-level map. Use the linked pages for task-specific guidance.

Model

ConceptMeaning
WorkspaceProduct-facing collaboration area shown to users.
OrganizationBetter Auth model that stores workspace membership and access data.
Organization keyThe slug or id used in /w/:organizationKey/... routes.
Active workspaceThe workspace selected in the user's current session.
TeamAn explicit subgroup inside the workspace organization.

Routes under /w/:organizationKey/... validate access before rendering. Deep links use the workspace from the URL and do not silently rewrite the user's active workspace unless the user switches context.

What users can do

  • Create and switch workspace context.
  • Manage workspace details and allowed email domains.
  • Review members and update assignable roles.
  • Create invitations and copy invitation links.
  • Accept or reject invitations after signing in.
  • Create explicit teams and manage team membership.
  • Create workspace API keys when permitted.

Workspace documentation