結論

Google Sheets API だけじゃなくて、Google Drive API も使う

<

pre class=”brush:shell”>
const sheets = google.sheets({ version: “v4”, auth: oAuth2Client });
const drive = google.drive({ version: “v3”, auth: oAuth2Client });

// スプレッドシートを作成する
const createdSheet = await sheets.spreadsheets.create();

全文はこちら:Google Sheets APIで誰でも編集できるスプレッドシートを作成する(Node.js / TypeScript)
著者:@Michinosuke