recoup-platform-build-workspace
Recoup — Build Workspace
Build the account's folder tree from the real roster. Idempotent; skips existing.
Guard: if orgs/ already exists with content, stop → use
recoup-roster-manage-artist (work inside an artist) instead.
Procedure
Auth Authorization: Bearer $RECOUP_ACCESS_TOKEN; RECOUP_ORG_ID (optional)
scopes to one org. Then: GET /api/organizations → for each (or just
RECOUP_ORG_ID), GET /api/artists?org_id=… →
mkdir -p orgs/{slugify(org)}/artists/{slugify(name)} and write a RECOUP.md
identity file (artistName/artistSlug/artistId from account_id) per artist;
skip existing; commit. slugify = lowercase-kebab; never append IDs to folder names.
(In an open-agents sandbox artists live at top-level artists/ — no orgs/; that's
recoup-roster-manage-artist territory.) Uses recoup-platform-api-access for the call
shapes.