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
      • Page information
        • Get page name
        • Set page name
        • Get page title
        • Set page title
        • Get page slug
        • Set page slug
        • Get page description
        • Set page description
        • Get publish path
        • Get page category
        • Get utility page key
        • Get collection ID
        • Get collection name
      • Page settings
  • Utilities
    • User Events & Notifications
    • App Intents & Connections
  • Additional Resources
    • API Playground
    • FAQs
LogoLogo
Resources
Get started
On this page
  • page.getUtilityPageKey()
Pages & FoldersManaging PagesPage information

Get utility page key

Was this page helpful?
Previous

Get collection ID from a CMS page

Next
Built with

page.getUtilityPageKey()

Get the page key of a Webflow utility page.

Syntax

1page.getUtilityPageKey(): Promise<null | UtilKey>

Returns

Promise<null | UtilKey>

A promise that resolves to one of the following utility page keys, or null if the page is not a utility page:

  • '401' - Unauthorized access page
  • '404' - Not found page
  • 'search' - Search results page
  • 'ecommerce-checkout' - Main checkout page
  • 'ecommerce-paypal-checkout' - PayPal checkout flow
  • 'ecommerce-confirmation' - Order confirmation page
  • 'usys-log-in' - User login page
  • 'usys-sign-up' - User registration page
  • 'usys-reset-password' - Password reset request page
  • 'usys-user-account' - User account management
  • 'usys-update-password' - Password update page
  • 'usys-access-denied' - Access denied error page

Example

1// Get Current Page
2const currentPage = await webflow.getCurrentPage() as Page
3
4// Get utility page key
5const utilityKey = await currentPage.getUtilityPageKey()
6console.log("Utility Key", utilityKey)

Try this example

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadPageSettingsAnyAnyAnyAny