err:unkey:data:portal_not_foundExample response
Likely causes
- The slug or ID is wrong.
- You addressed the portal by an app or keyspace from another workspace.
- Your root key doesn’t have permission to read the portal. On
portal.createSession, a missing session write grant returns 404 if your key cannot read the portal or its sessions.
How to fix
- Check the slug or ID in the dashboard’s portal settings.
- If you address the portal by app or keyspace, use one from this workspace.
- For
portal.createSession, make sure the root key hasunkey:v1:<workspace_id>:projects/<project_id>/portals/<portal_id>/sessions/*#writeor a broader URN grant that covers it.
Related errors
err:unkey:data:portal_already_exists: a portal collides on create or update.err:unkey:authentication:portal_session_not_found: a session token, not the portal, is invalid.err:unkey:authorization:forbidden: the portal exists but is disabled or can’t serve sessions.