Listing workspaces
GET /api/v1/workspaces returns the key’s workspace, and confirms in active which workspace the call acted in.
The X-Workspace-Id header
The header is optional and cannot switch workspace. Send it with the key’s own workspace id to be explicit about where a call lands. Packages and templates you list, create or act on are scoped to that workspace.
- Omit the header to act in the key’s workspace.
- Any other id (unknown, or another workspace in the organisation) returns
401. The call never lands in a different workspace and is never widened to the whole organisation. GET /api/v1/workspacesreports the workspace actually used inactive, so you can confirm a header was honoured.

