Skip to main content
POST
Switch Organization

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Body

application/json
targetUserId
string
required

The user ID to switch to. This can be obtained from the organizations array returned by Get User Organizations endpoint.

Response

Switch successful - returns new access token and user data

token
string

New access token for the target organization

expires_in
integer

Token expiration time in seconds

data
object

User data for the target organization

isHubSet
boolean

Whether user has hub assigned in the target organization

organizations
object[]

Updated list of all user's organizations