Revoke an API key
curl --request DELETE \
--url https://go-fetch.io/api/v1/api-keys/{id}/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://go-fetch.io/api/v1/api-keys/{id}/"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://go-fetch.io/api/v1/api-keys/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));API keys
Revoke an API key
It stops authenticating at once and stays listed with is_active: false. Needs the admin scope.
DELETE
/
api
/
v1
/
api-keys
/
{id}
/
Revoke an API key
curl --request DELETE \
--url https://go-fetch.io/api/v1/api-keys/{id}/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://go-fetch.io/api/v1/api-keys/{id}/"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://go-fetch.io/api/v1/api-keys/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));