For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Resources
Get started
ReferenceGuidesExamplesChangelog
ReferenceGuidesExamplesChangelog
  • Designer API
    • Introduction
    • Getting Started
    • Webflow CLI
    • Error Handling
    • App Modes
  • Elements
    • Creating & Retrieving Elements
    • Element Properties & Methods
    • Element Types & Methods
  • Styles
    • Managing Style Properties
    • Managing Variable Modes
  • Components
  • Variables & Collections
    • Variable Collections
    • Variables
    • Variable Modes
  • Assets
  • Pages & Folders
      • Create folder
      • Create page
      • Get all pages and folders
      • Get the current page
      • Switch to a page
  • Utilities
    • User Events & Notifications
    • App Intents & Connections
  • Additional Resources
    • API Playground
    • FAQs
LogoLogo
Resources
Get started
On this page
  • webflow.createPage()
  • Syntax
  • Returns
  • Example
  • Designer Ability
Pages & FoldersCreating & Retrieving Pages and Folders

Create page

Was this page helpful?
Previous

Get all pages and folders

Next
Built with

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)

Try this example

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canCreatePageAnyAnyAnyDesign