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.createPageFolder()
  • Syntax
  • Returns
  • Example
  • Designer Ability
Pages & FoldersCreating & Retrieving Pages and Folders

Create folder

Was this page helpful?
Previous

Create page

Next
Built with

webflow.createPageFolder()

Creates a new folder on the site.

Syntax

1webflow.createPageFolder(): Promise<Folder>

Returns

Promise<Folder>

A Promise that resolves to the newly created folder.

Example

1// Create and name new folder
2const newFolder = await webflow.createPageFolder()
3await newFolder.setName(name)
4
5// Print details
6const folderName = await newFolder.getName()
7console.log(folderName)

Try this example

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canCreatePageAnyAnyAnyDesign