Revoke an API key
curl --request DELETE \
--url https://api.webstashai.com/auth/api-keys/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.webstashai.com/auth/api-keys/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.webstashai.com/auth/api-keys/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"success": true
}{
"error": "<string>"
}Revoke an API key
DELETE
https://api.webstashai.com
/
auth
/
api-keys
/
{id}
Revoke an API key
curl --request DELETE \
--url https://api.webstashai.com/auth/api-keys/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.webstashai.com/auth/api-keys/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.webstashai.com/auth/api-keys/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"success": true
}{
"error": "<string>"
}