---
title: "Workspace switch (SDK)"
method: POST
path: "/v1/auth/token/workspace-switch"
tags: ["auth"]
---

# Workspace switch (SDK)

`POST /v1/auth/token/workspace-switch`

## Request

- Base URL: `https://api.thebridge.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.thebridge.dev/v1/auth/token/workspace-switch`
- Auth: none declared

Exchange a valid access token and targetTenantUserId for new tokens scoped to the target tenant.

## Response `200`

New tokens issued for target workspace

## Other responses

- `401`: Invalid access token or targetTenantUserId does not belong to this user

---

[API](https://skmtc.dev/thebridge/apis/bridge-api.md) · [All operations](https://skmtc.dev/thebridge/apis/bridge-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thebridge/apis/bridge-api/revisions/290fffcb3d80?raw)
