Authorization.
An API key and a session token resolve to the same account and behave
identically. Nothing you can do with one is unavailable through the other.
API keys
Mint one withPOST /api/billing/claim. The raw key is returned exactly once and
stored only as a hash, so we cannot show it to you again or recover it — which is
also why the endpoint refuses if your account already has a live key. Silently
minting a second would leave you holding a credential you had no way to tell
apart from the first, or to revoke with confidence.
Workspaces
An account is a workspace. Members you invite create links that belong to the workspace, not to themselves — being invited is delegation of the owner’s account, never a free account of your own. A session token that can reach several workspaces selects one withX-Workspace-Id. An API key belongs to exactly one workspace and ignores the
header; GET /api/workspaces reports the one it is scoped to.
401, decided before
anything else about the request is considered.