Revoke an API key
curl --request DELETE \
--url https://api.urltodata.ai/v1/keys/{keyId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.urltodata.ai/v1/keys/{keyId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.urltodata.ai/v1/keys/{keyId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"revoked": true,
"keyId": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": "<string>",
"documentationUrl": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": "<string>",
"documentationUrl": "<string>"
}API Reference
Revoke an API key
DELETE
/
v1
/
keys
/
{keyId}
Revoke an API key
curl --request DELETE \
--url https://api.urltodata.ai/v1/keys/{keyId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.urltodata.ai/v1/keys/{keyId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.urltodata.ai/v1/keys/{keyId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"revoked": true,
"keyId": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": "<string>",
"documentationUrl": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": "<string>",
"documentationUrl": "<string>"
}