Switch active organization context and return fresh session tokens
POST
/
organizations
/
{orgId}
/
switch
Switch active organization context and return fresh session tokens
curl --request POST \
--url http://localhost:3002/api/v1/organizations/{orgId}/switch \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:3002/api/v1/organizations/{orgId}/switch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:3002/api/v1/organizations/{orgId}/switch"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)Last modified on July 18, 2026
⌘I
Switch active organization context and return fresh session tokens
curl --request POST \
--url http://localhost:3002/api/v1/organizations/{orgId}/switch \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:3002/api/v1/organizations/{orgId}/switch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:3002/api/v1/organizations/{orgId}/switch"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)