Exchange an authorization code or refresh token
curl --request POST \
--url https://api.peel.sh/oauth/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'X-API-Key: <api-key>'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({})
};
fetch('https://api.peel.sh/oauth/token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.peel.sh/oauth/token"
payload = {}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text){}{}MCP and OAuth
Exchange an authorization code or refresh token
POST
/
oauth
/
token
Exchange an authorization code or refresh token
curl --request POST \
--url https://api.peel.sh/oauth/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'X-API-Key: <api-key>'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({})
};
fetch('https://api.peel.sh/oauth/token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.peel.sh/oauth/token"
payload = {}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text){}{}⌘I