Data
err:unkey:data:workspace_not_found
The requested workspace was not found
Example
What Happened?
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:
How To Fix
Verify that you’re using the correct workspace ID or name and that the workspace still exists:
- Check your Unkey dashboard to see a list of workspaces you have access to
- Verify the workspace ID or name in your API calls
- Ensure you have permission to access the workspace
- If needed, create a new workspace through the dashboard or API
To find your correct workspace ID, you can:
Common Mistakes
- Deleted workspaces: Attempting to reference workspaces that have been deleted
- Copy-paste errors: Using incorrect IDs from documentation examples
- Permission issues: Trying to access workspaces you’ve been removed from
- Case sensitivity: Using incorrect casing in workspace name lookups
Related Errors
- err:unkey:authorization:workspace_disabled - When the workspace exists but is disabled
- err:unkey:data:api_not_found - When the requested API doesn’t exist
- err:unkey:data:key_not_found - When the requested key doesn’t exist
Was this page helpful?