Unitpost Organizations API
For platforms that give each customer a workspace: an organization key creates, lists, closes and restores the organization's workspaces and mints their keys, and registers webhook endpoints that receive every workspace's events, each naming its workspace (`workspace_id`, `external_id`). Staff approve each organization first. To change the plan of a workspace the organization pays for, quote it (`POST …/plan-quotes`), show the price, then confirm the quote within 10 minutes; that takes `organizations:billing`, which only an organization Owner gives a key. Creates and plan changes stay within the Owner's API rules: the plans they allow, up to their largest plan price (with none set, each plan's lowest price). An organization can also ask for shared usage (Organization → Billing, Request access): one Starter or Growth plan whose allowance its workspaces share, turned on by Unitpost on request. `GET …/shared-plan` reads it; `PUT`, `PATCH` and `DELETE …/shared-plan/workspaces/{workspace_id}` add a workspace, set its cap and take it off (`organizations:billing`). Buying, upgrading and ending it stay in the dashboard.