Account
Switch teams
Points the session at another team the user belongs to; everything after acts for that team. An invited address is on the team only once it is verified. Console session only: an API key gets 403 console-only.
POST
/
v1
/
me
/
team
Switch teams
curl --request POST \
--url https://api.offstage.cloud/v1/me/team \
--header 'Content-Type: application/json' \
--cookie oc_session= \
--data '
{
"teamId": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: 'oc_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({teamId: '<string>'})
};
fetch('https://api.offstage.cloud/v1/me/team', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.offstage.cloud/v1/me/team"
payload = { "teamId": "<string>" }
headers = {
"cookie": "oc_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"user": {
"id": "<string>",
"email": "<string>",
"name": "<string>",
"createdAt": 1,
"emailVerified": true
},
"team": {
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"createdAt": 1,
"verified": true,
"kind": "personal",
"region": "us"
},
"role": "owner"
}{
"error": {
"code": "sandbox-closed",
"message": "sandbox sbx_mh3k2f9aQ1xYz0aBcDeFgHiJ is closed (idle)",
"fix": "create a new sandbox",
"requestId": "req_mh3k2f9aQ1xYz0aBcDeFgHiJ"
}
}{
"error": {
"code": "sandbox-closed",
"message": "sandbox sbx_mh3k2f9aQ1xYz0aBcDeFgHiJ is closed (idle)",
"fix": "create a new sandbox",
"requestId": "req_mh3k2f9aQ1xYz0aBcDeFgHiJ"
}
}{
"error": {
"code": "sandbox-closed",
"message": "sandbox sbx_mh3k2f9aQ1xYz0aBcDeFgHiJ is closed (idle)",
"fix": "create a new sandbox",
"requestId": "req_mh3k2f9aQ1xYz0aBcDeFgHiJ"
}
}{
"error": {
"code": "sandbox-closed",
"message": "sandbox sbx_mh3k2f9aQ1xYz0aBcDeFgHiJ is closed (idle)",
"fix": "create a new sandbox",
"requestId": "req_mh3k2f9aQ1xYz0aBcDeFgHiJ"
}
}{
"error": {
"code": "sandbox-closed",
"message": "sandbox sbx_mh3k2f9aQ1xYz0aBcDeFgHiJ is closed (idle)",
"fix": "create a new sandbox",
"requestId": "req_mh3k2f9aQ1xYz0aBcDeFgHiJ"
}
}Authorizations
⌘I
Switch teams
curl --request POST \
--url https://api.offstage.cloud/v1/me/team \
--header 'Content-Type: application/json' \
--cookie oc_session= \
--data '
{
"teamId": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: 'oc_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({teamId: '<string>'})
};
fetch('https://api.offstage.cloud/v1/me/team', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.offstage.cloud/v1/me/team"
payload = { "teamId": "<string>" }
headers = {
"cookie": "oc_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"user": {
"id": "<string>",
"email": "<string>",
"name": "<string>",
"createdAt": 1,
"emailVerified": true
},
"team": {
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"createdAt": 1,
"verified": true,
"kind": "personal",
"region": "us"
},
"role": "owner"
}{
"error": {
"code": "sandbox-closed",
"message": "sandbox sbx_mh3k2f9aQ1xYz0aBcDeFgHiJ is closed (idle)",
"fix": "create a new sandbox",
"requestId": "req_mh3k2f9aQ1xYz0aBcDeFgHiJ"
}
}{
"error": {
"code": "sandbox-closed",
"message": "sandbox sbx_mh3k2f9aQ1xYz0aBcDeFgHiJ is closed (idle)",
"fix": "create a new sandbox",
"requestId": "req_mh3k2f9aQ1xYz0aBcDeFgHiJ"
}
}{
"error": {
"code": "sandbox-closed",
"message": "sandbox sbx_mh3k2f9aQ1xYz0aBcDeFgHiJ is closed (idle)",
"fix": "create a new sandbox",
"requestId": "req_mh3k2f9aQ1xYz0aBcDeFgHiJ"
}
}{
"error": {
"code": "sandbox-closed",
"message": "sandbox sbx_mh3k2f9aQ1xYz0aBcDeFgHiJ is closed (idle)",
"fix": "create a new sandbox",
"requestId": "req_mh3k2f9aQ1xYz0aBcDeFgHiJ"
}
}{
"error": {
"code": "sandbox-closed",
"message": "sandbox sbx_mh3k2f9aQ1xYz0aBcDeFgHiJ is closed (idle)",
"fix": "create a new sandbox",
"requestId": "req_mh3k2f9aQ1xYz0aBcDeFgHiJ"
}
}