Skip to main content

Switch the active organization on a session

POST 

/auth/sessions/switch-organization

Takes a valid refresh token + a target organization the user is a member of, verifies membership at mint time, revokes the old session, and mints a fresh access + refresh pair with org_id set to the target. The old refresh token is invalidated (jti rotated). Use this when the user's active workspace changes (the Slack/Linear workspace-switch pattern).

Request

Responses

New token pair