Auth

Switch user workspace

POST
http://localhost:3000/api/auth/switch-workspace

Switch the authenticated user to a different workspace (tenant). Returns new authentication tokens for the target workspace.

Body

application/json
tenantIdstringrequired

The tenant ID to switch to

Example
550e8400-e29b-41d4-a716-446655440000

Response

200OK

Successfully switched workspace. Returns new authentication tokens.

400Bad Request

Invalid workspace switch request. Check that tenantId is a valid UUID.

401Unauthorized

User not authenticated or does not have access to the workspace.

Copyright © 2023-Present Ever Co. LTD.Docs by Sourcey