Designer API
Control the Webflow Designer
webflow.createPage()
Create a new page in the Designer. This method will return an error if the App tries to create more pages than a User’s plan allows.
1webflow.createPage(): Promise<Page>
Promise<Page>
A Promise that resolves to the created page.
1// Create new page and set page name2const newPage = await webflow.createPage() as Page3await newPage.setName('My New Page')45// Switch to new page6await webflow.switchPage(newPage)
Try this example