Skip to main content
err:unkey:application:portal_key_creation_unavailable
An end user tried to create a key in the Customer Portal, but the key-creation settings on their portal session no longer match your workspace. No key was created. You get HTTP 412. The end user only sees that key creation is unavailable. The message names no permission, role, or keyspace, so check the causes below yourself.
Example 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 externalId already exists in a different project.

How to fix

  1. Recreate the missing permission or role, or rename the conflicting identity rate limit.
  2. If the policy itself is wrong, create a new portal session with a corrected policy.
Last modified on November 18, 2026