POST
/v1/auth/switch-workspaceSwitch Workspace
Switch active reseller store workspace.
Switches the authenticated user’s active reseller store workspace. Returns a new access token with the updated activeResellerStoreId claim and sets a new refresh token cookie.
The target reseller store must belong to the authenticated user and must not be soft-deleted.
Body parameters
reseller_store_id string REQUIRED
Reseller store ID to switch to
Responses
200
400
Validation failed
Request
curl -X POST https://api.example.com/v1/auth/switch-workspace \
-H "Authorization: Bearer sk_test_..." \
-H "Content-Type: application/json" \
-d '{
"reseller_store_id": "example_reseller_store_id"
}'Response
200 200 OK
{
"accessToken": "example_accessToken",
"expiresAt": 0
}