Authentication

Switch To Workspace

Switch the current user to a workspace user. The user must already have been added to the workspace. Returns the workspace JWT for frontend storage and sets a short-lived LastWorkspace hint cookie for server-rendered flows like MCP OAuth.

post/api/auth/switch_to_workspace

Request

  • Base URL: https://app.getdot.ai (the document declares no server; this is the origin it was published from)
  • URL: https://app.getdot.ai/api/auth/switch_to_workspace
  • Auth: one of:
    • API key in header X-API-KEY
    • API key in cookie Authorization
    • OAuth 2 (password, token URL /api/auth/token)

Request body

workspace_namestring required

Name of the workspace to switch to

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.