Revoke Api Token Endpoint
curl --request DELETE \
--url https://api.agentpowers.ai/v1/auth/api-tokens/{token_id}import requests
url = "https://api.agentpowers.ai/v1/auth/api-tokens/{token_id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.agentpowers.ai/v1/auth/api-tokens/{token_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"revoked": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}auth
Revoke Api Token Endpoint
Revoke an API token by ID.
DELETE
/
v1
/
auth
/
api-tokens
/
{token_id}
Revoke Api Token Endpoint
curl --request DELETE \
--url https://api.agentpowers.ai/v1/auth/api-tokens/{token_id}import requests
url = "https://api.agentpowers.ai/v1/auth/api-tokens/{token_id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.agentpowers.ai/v1/auth/api-tokens/{token_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"revoked": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Was this page helpful?