workspace_required
Your API key reaches several workspaces and the request has no X-Ken-Workspace-Id.
What it means
Your API key reaches several workspaces and the request has no X-Ken-Workspace-Id.
How to fix it
Send X-Ken-Workspace-Id with the id of the workspace to act in. GET /v1/workspaces lists them.
Where it comes from
400 workspace_required is not tied to one endpoint. The errors guide says when the API answers it.
The error body carries this code in error.code. Branch on the code, not on message. See the errors guide.