workspace_unavailable
Returned when:
- A
Scripe-Workspace-Idheader (or MCPswitch_workspacecall) names a workspace the consenting user is not currently a member of — access follows live membership, so leaving a workspace revokes API reach within ~60 seconds. - The consent’s pinned workspace itself is no longer accessible to the user.
- On the REST API with an API key: a
Scripe-Workspace-Idheader that disagrees with the key’s own workspace (keys are single-workspace).
GET /v1/workspaces (or the MCP list_workspaces tool) to see
what the token can currently reach. See
Workspaces § Multi-workspace access.