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.

Syntax

1webflow.createPage(): Promise<Page>

Returns

Promise<Page>

A Promise that resolves to the created page.

Example

1// Create new page and set page name
2const newPage = await webflow.createPage() as Page
3await newPage.setName('My New Page')
4
5// Switch to new page
6await webflow.switchPage(newPage)

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canCreatePageAnyAnyAnyDesign