err:unkey:application:portal_key_creation_unavailableExample response
Likely causes
- A permission or role the session’s policy names was deleted after the session was created. The portal never creates permissions on the end user’s behalf.
- The end user’s identity has a rate limit with the same name as one of the policy’s rate limits. A key rate limit takes precedence over an identity one of the same name, so the new key would escape the identity’s limit.
- The keyspace or its API was deleted.
- An identity with the end user’s
externalIdalready exists in a different project.
How to fix
- Recreate the missing permission or role, or rename the conflicting identity rate limit.
- If the policy itself is wrong, create a new portal session with a corrected policy.
Related errors
err:unkey:application:portal_key_limit_reached: the end user already holds as many keys as the session allows.err:unkey:data:permission_not_found: the same missing permission, reported to a root key caller.