Revoke an API key
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.prudra.dev/organisations/{orgId}/api-keys/{keyId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.prudra.dev/organisations/{orgId}/api-keys/{keyId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)curl --request DELETE \
--url https://api.prudra.dev/organisations/{orgId}/api-keys/{keyId} \
--header 'Authorization: Bearer <token>'Organisation
Revoke an API key
Only owner or admin roles may revoke. Members receive 403.
DELETE
/
organisations
/
{orgId}
/
api-keys
/
{keyId}
Revoke an API key
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.prudra.dev/organisations/{orgId}/api-keys/{keyId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.prudra.dev/organisations/{orgId}/api-keys/{keyId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)curl --request DELETE \
--url https://api.prudra.dev/organisations/{orgId}/api-keys/{keyId} \
--header 'Authorization: Bearer <token>'
