Documentation Index
Fetch the complete documentation index at: https://unkey.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
err:unkey:data:portal_config_not_foundExample
What Happened?
This error occurs when you callPOST /v2/portal.createSession with a slug that does not match a portal configuration in your workspace.
Common causes include:
- Typo in the
slugvalue sent from your backend. - The portal configuration belongs to a different workspace than the root key you authenticated with.
- The portal has not yet been provisioned for your workspace. The Customer Portal is in early access, and during that period configurations are created by the Unkey team on request.
How To Fix
- Verify the slug: Double-check that the
slugin your request matches the slug configured for your portal. Slugs are 3–64 characters, lowercase alphanumeric and hyphens, with no leading or trailing hyphen. - Check the workspace: Make sure the root key you are using belongs to the same workspace as the portal configuration.
- Request a configuration: If you have not yet been onboarded to the Customer Portal, contact the Unkey team to provision one for your workspace.
Common Mistakes
- Slug case sensitivity: Slugs are lowercase.
My-Portalwill not matchmy-portal. - Wrong root key: Using a root key from a different workspace returns this error rather than a 401, because the slug lookup is workspace-scoped.
- Hyphen rules: Slugs cannot start or end with a hyphen, and cannot contain underscores or other punctuation.
Related Errors
- err:unkey:authentication:portal_token_missing - When a portal session token is required but not provided
- err:unkey:authentication:portal_session_not_found - When a portal session is invalid, expired, or already used
- err:unkey:data:workspace_not_found - When the workspace itself cannot be resolved

