Register an OAuth client
curl --request POST \
--url https://api.webstashai.com/oauth/register \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"client_name": "<string>",
"redirect_uris": [
"<string>"
],
"grant_types": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
client_name: '<string>',
redirect_uris: ['<string>'],
grant_types: ['<string>']
})
};
fetch('https://api.webstashai.com/oauth/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.webstashai.com/oauth/register"
payload = {
"client_name": "<string>",
"redirect_uris": ["<string>"],
"grant_types": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"client_id": "<string>",
"client_name": "<string>",
"redirect_uris": [
"<string>"
],
"grant_types": [
"<string>"
]
}{
"error": "<string>"
}Register an OAuth client
POST
https://api.webstashai.com
/
oauth
/
register
Register an OAuth client
curl --request POST \
--url https://api.webstashai.com/oauth/register \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"client_name": "<string>",
"redirect_uris": [
"<string>"
],
"grant_types": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
client_name: '<string>',
redirect_uris: ['<string>'],
grant_types: ['<string>']
})
};
fetch('https://api.webstashai.com/oauth/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.webstashai.com/oauth/register"
payload = {
"client_name": "<string>",
"redirect_uris": ["<string>"],
"grant_types": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"client_id": "<string>",
"client_name": "<string>",
"redirect_uris": [
"<string>"
],
"grant_types": [
"<string>"
]
}{
"error": "<string>"
}