This error occurs when you’re trying to perform an operation on a workspace that doesn’t exist in the Unkey system. This can happen when referencing a workspace by ID or name in API calls.Common scenarios that trigger this error:
Using an incorrect workspace ID
Referencing a workspace that has been deleted
Attempting to access a workspace you don’t have permission to see
Typos in workspace names when using name-based lookups
Here’s an example of a request that would trigger this error:
Copy
Ask AI
# Attempting to list keys in a non-existent workspacecurl -X POST https://api.unkey.com/v1/keys.listKeys \ -H "Content-Type: application/json" \ -H "Authorization: Bearer unkey_YOUR_API_KEY" \ -d '{ "workspaceId": "ws_nonexistent" }'