Remove an AI key
import requests
url = "https://platform.ankra.app/api/v1/org/account/ai-keys/{key_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/account/ai-keys/{key_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/account/ai-keys/{key_id} \
--header 'Authorization: Bearer <token>'{
"deleted": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Account
Remove an AI key
Deletes the key’s secret from Vault and then the key, so work you start afterwards no longer runs on it. Requires your own personal access token: a service account’s token and an MCP-scoped token are refused, and so is a token whose scopes allow no changes.
DELETE
/
api
/
v1
/
org
/
account
/
ai-keys
/
{key_id}
Remove an AI key
import requests
url = "https://platform.ankra.app/api/v1/org/account/ai-keys/{key_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/account/ai-keys/{key_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/account/ai-keys/{key_id} \
--header 'Authorization: Bearer <token>'{
"deleted": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}