Revoke an API key
curl --request DELETE \
--url https://{your-subdomain}.neetoform.com/api/external/v2/api_keys/{id} \
--header 'X-Api-Key: <x-api-key>'const options = {method: 'DELETE', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://{your-subdomain}.neetoform.com/api/external/v2/api_keys/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetoform.com/api/external/v2/api_keys/{id}"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"notice": "The API key is successfully deleted."
}{
"error": "This action needs a CLI session signed in as a team member, not an API key."
}{
"error": "NeetoApiKeysEngine::ApiKey does not exist."
}API keys
Revoke an API key
Revoke an API key. This cannot be undone. This API needs a CLI session signed in as a team member. Calling it with an API key returns a 403 error.
DELETE
/
api_keys
/
{id}
Revoke an API key
curl --request DELETE \
--url https://{your-subdomain}.neetoform.com/api/external/v2/api_keys/{id} \
--header 'X-Api-Key: <x-api-key>'const options = {method: 'DELETE', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://{your-subdomain}.neetoform.com/api/external/v2/api_keys/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetoform.com/api/external/v2/api_keys/{id}"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"notice": "The API key is successfully deleted."
}{
"error": "This action needs a CLI session signed in as a team member, not an API key."
}{
"error": "NeetoApiKeysEngine::ApiKey does not exist."
}Replace
Learn how to find your subdomain in Workspace subdomain.
{your-subdomain} with your workspace’s subdomain. Learn how to find your subdomain in Workspace subdomain.
Headers
Use the X-Api-Key header to provide your workspace API key. Refer to Authentication for more information.
Path Parameters
Unique ID of the API key. You can get it from the List API keys API.
Example:
"1c9e4a7b-5d2f-4b8a-9c3e-7f6a1b2d3e4f"
Response
OK - Request succeeded
Example:
"The API key is successfully deleted."