This error occurs when you attempt an operation that is prohibited by Unkey’s platform policies, even if your API key has high-level permissions. Unlike the “insufficient_permissions” error which relates to permission roles, this error indicates that the operation itself is not allowed regardless of permissions.Common scenarios that trigger this error:
Trying to perform operations on protected or system resources
Attempting to modify resources that are in a state that doesn’t allow modifications
Trying to exceed account limits or quotas
Performing operations that violate platform policies
Here’s an example of a request that might trigger this error:
Copy
Ask AI
# Attempting to delete a protected system resourcecurl -X POST https://api.unkey.com/v2/apis.deleteApi \ -H "Content-Type: application/json" \ -H "Authorization: Bearer unkey_ADMIN_KEY" \ -d '{ "apiId": "api_system_protected" }'