Soft delete an API key. The key will be marked as deleted but preserved for audit purposes.
DELETEhttps://api.aitronos.com/v1/organizations/{org_id}/api-keys/{key_id}
org_id string required
The organization ID.
key_id string required
The API key ID.
A confirmation message indicating the API key was deleted.
Bash
- Bash
- Python
- JavaScript
curl "https://api.aitronos.com/v1/organizations/org_123abc/api-keys/ak_123abc456def789" \
-X DELETE \
-H "X-API-Key: $FREDDY_API_KEY"Response:
{
"success": true,
"message": "API key deleted successfully",
"id": "ak_123abc456def789"
}