Revoke an API key
curl --request POST \
--url https://api.arg.ai/api/keys/{keyId}/revoke \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.arg.ai/api/keys/{keyId}/revoke"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.arg.ai/api/keys/{keyId}/revoke', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": "<string>"
}API Keys
Revoke an API key
Disable a key without deleting it.
POST
/
api
/
keys
/
{keyId}
/
revoke
Revoke an API key
curl --request POST \
--url https://api.arg.ai/api/keys/{keyId}/revoke \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.arg.ai/api/keys/{keyId}/revoke"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.arg.ai/api/keys/{keyId}/revoke', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": "<string>"
}Authorizations
bearerAuthapiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Organization the key belongs to.
Response
Successful response
The response is of type object.