Provision a customer workspace in one step
Changed onInstance admins only (session, or a personal so_ token — workspace Agent sot_ tokens are refused; a workspace owner/admin gets 403). Creates the workspace (or adopts the one on slug), applies branding, policy defaults and feature flags, creates starter folders, invites the admins with the normal invite email, and stores connectors through the normal encrypted connector path. Idempotent by slug: a re-run fills in what is missing and reports the rest unchanged — no second workspace, folder, membership or connector, no resent live invite, no overwritten credential. A failing step is reported in steps and the run continues (HTTP 207). Credential values are never returned or audited. Every step writes a workspace.provision.* audit row.
Request
- Base URLhttps://shareout.site
- URLhttps://shareout.site/v1/admin/workspaces/provision
- AuthHTTP bearer
Request body
Response
Existing workspace, nothing failed
Changes
- info
endpoint added
- info