Revoke an API key
curl --request DELETE \
--url https://agent.infragrid.ai/v1/workspaces/{workspace_id}/api-keys/{key_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://agent.infragrid.ai/v1/workspaces/{workspace_id}/api-keys/{key_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://agent.infragrid.ai/v1/workspaces/{workspace_id}/api-keys/{key_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)HTTP/2 204 No Content
Credentials
Revoke an API key
Revoke a workspace API key immediately.
DELETE
/
v1
/
workspaces
/
{workspace_id}
/
api-keys
/
{key_id}
Revoke an API key
curl --request DELETE \
--url https://agent.infragrid.ai/v1/workspaces/{workspace_id}/api-keys/{key_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://agent.infragrid.ai/v1/workspaces/{workspace_id}/api-keys/{key_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://agent.infragrid.ai/v1/workspaces/{workspace_id}/api-keys/{key_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)HTTP/2 204 No Content
Requires an authenticated dashboard session.
Returns
uuid
required
Workspace that owns the key.
uuid
required
Credential metadata identifier, not the plaintext key.
Response
HTTP/2 204 No Content
204 No Content after the credential is revoked.
Revocation is immediate and can interrupt active integrations. Deploy a replacement before revoking a key during planned rotation.
Last modified on August 17, 2026