Revoke an API token by ID
curl --request DELETE \
--url https://albus.sh/api/tokens/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://albus.sh/api/tokens/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://albus.sh/api/tokens/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "Invalid or expired token"
}{
"message": "Resource not found"
}Tokens
Revoke an API token by ID
DELETE
/
tokens
/
{id}
Revoke an API token by ID
curl --request DELETE \
--url https://albus.sh/api/tokens/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://albus.sh/api/tokens/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://albus.sh/api/tokens/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "Invalid or expired token"
}{
"message": "Resource not found"
}