Adding a page url & handle programmatically through the api

Topic summary

A user asked whether it’s possible to programmatically set a custom page handle/URL when creating a Shopify page through the API.

Resolution:

  • The Shopify Admin REST API’s Page resource supports this functionality
  • The /pages.json endpoint accepts a handle property in POST requests
  • This property allows developers to define the page URL path (e.g., /pages/my-page)

Outcome:

  • The original poster confirmed they found the solution in the API documentation after posting the question
  • Reference documentation: Shopify Admin REST API Page resource (2024-01)
Summarized with AI on November 13. AI used: claude-sonnet-4-5-20250929.

Thank you, I found it eventually in the docs after I asked the question :sweat_smile: