{ "meta": { "requestId": "req_2c9a0jf23l4k567" }, "error": { "detail": "The workspace associated with this API key has been disabled", "status": 403, "title": "Forbidden", "type": "https://unkey.com/docs/api-reference/errors-v2/unkey/authorization/workspace_disabled" }}
This error occurs when you attempt to use an Unkey API key that belongs to a disabled workspace. When a workspace is disabled in Unkey, all API keys associated with that workspace stop working, regardless of their individual status.Here’s an example of a request that would trigger this error:
Copy
Ask AI
# Request to Unkey API with a key from a disabled workspacecurl -X POST https://api.unkey.com/v1/keys.listKeys \ -H "Content-Type: application/json" \ -H "Authorization: Bearer unkey_KEY_FROM_DISABLED_WORKSPACE"
A workspace might be disabled for various reasons:
Billing issues or unpaid invoices
Administrative action due to terms of service violations
If you encounter this error when using the Unkey API, you need to address the workspace issue:
Check billing status: If the workspace was disabled due to billing issues, settle any outstanding payments in the Unkey dashboard
Contact workspace administrator: If you’re not the workspace administrator, contact them to determine why the workspace was disabled
Contact Unkey support: If you believe the workspace was disabled in error, or you need assistance resolving the issue, contact Unkey support
Use a key from a different workspace: If you have access to multiple workspaces, you can temporarily use a key from an active workspace while resolving the issue
Once the workspace is re-enabled, all API keys associated with it should become usable again (unless individually disabled).