Switch to an assigned Workspace

Switch to an assigned Workspace and receive an authentication token for the target Workspace. <Note> This endpoint requires authentication with [user credentials](/developers/auth/user-credentials) (not an application token), as application tokens are scoped to a single Workspace. The returned `auth_token` is valid for the target Workspace. Your original token remains valid for the source Workspace. </Note>

Authentication

AuthorizationBearer

An auth_token should be provided to authenticate a session.

To obtain an auth_token, see the /api/v1/authenticate POST request.

Request

This endpoint expects an object.
target_organisationobjectRequired

Response

Successfully switched to the assigned Workspace
auth_tokenstring or null
JWT authentication token valid for the target Workspace

Errors