Register an OAuth client dynamically
curl --request POST \
--url https://api.peel.sh/oauth/register \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"redirect_uris": [
"<string>"
],
"client_name": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({redirect_uris: ['<string>'], client_name: '<string>'})
};
fetch('https://api.peel.sh/oauth/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.peel.sh/oauth/register"
payload = {
"redirect_uris": ["<string>"],
"client_name": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{}MCP and OAuth
Register an OAuth client dynamically
POST
/
oauth
/
register
Register an OAuth client dynamically
curl --request POST \
--url https://api.peel.sh/oauth/register \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"redirect_uris": [
"<string>"
],
"client_name": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({redirect_uris: ['<string>'], client_name: '<string>'})
};
fetch('https://api.peel.sh/oauth/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.peel.sh/oauth/register"
payload = {
"redirect_uris": ["<string>"],
"client_name": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{}⌘I