Leave a team
curl --request POST \
--url https://api.peel.sh/v1/accounts/{account_id}/leave \
--cookie better-auth.session_token=const options = {method: 'POST', headers: {cookie: 'better-auth.session_token='}};
fetch('https://api.peel.sh/v1/accounts/{account_id}/leave', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.peel.sh/v1/accounts/{account_id}/leave"
headers = {"cookie": "better-auth.session_token="}
response = requests.post(url, headers=headers)
print(response.text){
"left": true
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}Account
Leave a team
POST
/
v1
/
accounts
/
{account_id}
/
leave
Leave a team
curl --request POST \
--url https://api.peel.sh/v1/accounts/{account_id}/leave \
--cookie better-auth.session_token=const options = {method: 'POST', headers: {cookie: 'better-auth.session_token='}};
fetch('https://api.peel.sh/v1/accounts/{account_id}/leave', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.peel.sh/v1/accounts/{account_id}/leave"
headers = {"cookie": "better-auth.session_token="}
response = requests.post(url, headers=headers)
print(response.text){
"left": true
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}⌘I