Shopify page API tutorial (2026): publish online store content from your own Shopify app with the GraphQL Admin API – create pages, add them to a navigation menu without losing dropdowns, create a blog and publish a post, then see all of it on the real storefront. Shopify app development series, episode 11 – everything shown is real, nothing skipped.
What you'll learn
- Scopes write_content + write_online_store_navigation
- pageCreate (published by default!), pageUpdate, pageDelete
- blogCreate + articleCreate (author required)
- menuUpdate replaces the whole menu – keep nested items
- Handles: TAKEN vs -1
💻 Free source code for this episode: github.com/fayyaz315/shopify-app-development-2026/tree/ep11
Chapters
- 0:00 Preview + intro
- 0:37 Pages, blogs, menus
- 1:21 Create a page
- 2:54 Add it to a menu
- 4:32 A blog and a post
- 5:36 On the storefront
- 6:06 Delete
- 6:29 Two defaults in GraphiQL
- 7:17 Honest notes
- 8:05 Recap
Step by step (full walkthrough)
Preview + intro
In the next ten minutes, your app publishes a page, puts it in the store's menu, and writes a blog post. All live on the real storefront, without breaking the dropdown that was already there. This is the Shopify page API at work.
A page our app created a minute ago, live on the storefront, with a link in the main menu. This is episode eleven of the Shopify app development series. Last time, files and media.
Today: pages, blog posts and menus. The full code is free on GitHub, and the link is in the description.
Pages, blogs, menus
Online store content is three things. All three are plain GraphQL Admin API calls. No theme code, no Liquid.
Pages, like a size guide, a shipping policy, or an about page. Blogs, and the posts inside them. Shopify calls a post an article.
And menus, the navigation links in the theme's header and footer. Good uses: publish policy pages for a merchant, import a blog from another platform, or add your app's page to the store's menu. Two new scopes: write content for pages and blogs, and write online store navigation for menus.
As in episode ten, I restarted the dev server and opened the app once, and the new scopes were granted.
Create a page
Here's the new Online store content page. Pages on top, then the menu, then blog posts. A new page is a new file: app.content becomes/app/content.
One query reads it all: the newest pages, the blogs with their latest posts, and the menus with their items. Pages come back newest first: sortKey updated at, reversed. Menu items can hold items of their own, so the query asks three levels deep, with a fragment to keep it short.
A title, size guide, and one line of text. Published is ticked. Create page.
Page created, and it's in the list, with its address, slash pages/size guide. We didn't send a handle, so Shopify made one from the title. You can send your own, and our action passes one along if the form has it.
The code is page create with a title, the body as HTML, and is published from the checkbox. The body is HTML. Our helper escapes the text and wraps each line in a paragraph, because Shopify stores the body exactly as you send it.
In my tests, a script tag inside the body came back unchanged. So never pass user input straight into a page. Hide and publish are page update with is published.
And the trap is coming up in GraphiQL: the default. Every action returns userErrors, and the page shows Shopify's own message in a red toast.
Add it to a menu
Now the menu. I pick Custom Menus, the one this theme shows in its header. Home, a Features dropdown with four links inside, Pages, and Track order.
addToMenu, on the size guide. Added to Custom Menus. The new link is last, type page.
And Features still has its four links inside. Each item has a type. In this store: front page, catalog, search, page, and plain HTTP links.
Goes to is the address Shopify works out for each one. A page link stores the page's ID, not its URL. In my tests, when the page's handle changed, the link showed the new address.
That's not automatic. There's no add one link mutation. Menu update replaces the whole menu with the list you send.
So the action reads the menu, keeps every item with its ID, and adds the new page link at the end. And the keep helper copies each item's own items too. Forget that line, and the Features dropdown is gone.
A page link needs the type page and the page's ID. In my tests, a page link without an ID failed with page not found. Remove does the opposite: read the menu, filter out that one item, and send the rest back.
The buttons know which is which. If the page is already in the chosen menu, it says removeFromMenu. Every store has default menus.
Mine had three: the main menu, the footer, and the customer account menu. Coming up: the one field article create won't let you skip.
A blog and a post
Blog posts. Every post lives in a blog, so first I create one: Style notes. Blog created, and it's picked for the post.
A title, how our tees should fit. Author, text, and two tags. Publish post.
It's in the list, in Style notes, by Fayyaz, tagged fit and tees. The post's address is/blogs, the blog's handle, then the post's handle. Both handles come from the titles.
Blog create needs only a title. Article create takes the blog ID, title, body, tags, publish, and an author. Tags arrive as one comma separated text, and the action splits them into a list.
The author isn't optional. Without it, GraphQL rejects the whole request before Shopify even runs it, so it's not in userErrors. And a blog ID that doesn't exist comes back as must reference an existing blog.
One more detail. The store has an older blog with a personal post, so our page only lists posts from the blog you pick.
On the storefront
Now the proof, on the real storefront. This development store has a password, so I unlocked it in this browser before recording. Slash pages/size guide.
Our title, our text. And in the header: Home, Features, Pages, Track order, and Size guide. The menu change, live.
And the blog post, with today's date. The storefront needed no theme change. The theme already shows this menu, and pages and blogs have their own templates.
Delete
Last, delete. Back in the app, with Custom Menus picked. Delete the size guide page.
Page deleted. And look at the menu. The size guide link is gone too.
Shopify removed it with the page, without a word. Page delete takes only the ID. Before deleting, a careful app checks which menus point at the page and tells the merchant.
Two defaults in GraphiQL
Two defaults I'd want to know about, in GraphiQL. Page create, a title and a handle, and no is published at all. Is published: true.
The page went live the moment it was created. If you want a draft, say is published false. Same handle again.
Handle has already been taken. Pages refuse a duplicate handle. Now menu create, with the handle of a menu that already exists.
No error. The handle quietly became custom menus dash one. Same API, two different rules.
For menus, the handle matters. It's how a theme finds the menu it should show. And changing a page's handle can leave a redirect behind.
Page update with redirect new handle, and the old URL still works.
Honest notes
A few honest notes before the recap. One: our text box is plain text turned into paragraphs. A real editor would send rich HTML, escaped or sanitised.
Two: we add links at the top level of a menu. Nesting a link inside a dropdown means adding it to that item's items. Three: this theme's footer has no menu block, which is why I used the header menu.
Your theme may differ. Want to practise? Add a change handle button.
Page update with a new handle and redirect new handle, then open the old URL. And everything you saw was tested on my real development store, on API version 2026-10, before I pressed record.
Recap
So, the recap. Add the content and navigation scopes. Create pages with page create, and always set is published, because the default is live.
Create a blog, then posts with article create, and never forget the author. And update menus by sending the whole tree back, nested items included. That's the Shopify page API in 2026, inside a real app, on a real store.
The full code for this episode is free on GitHub. The link is in the description. Next episode: markets and translations.
Your store in a second language, from your own app. See you there.
Quick fixes from this episode (60-second Shorts)
Shopify Menu API: menuUpdate Deletes Your Dropdowns (Unless You Do This)
Shopify menu API (2026-10): menuUpdate has no 'add one link' – it replaces the whole menu. Send every existing item with its id, AND the items inside each dropdown, plus your new link. Our header kept its 4-item dropdown and got a new 'Size guide' link on the real storefront.
Shopify Article API: Publish a Blog Post from Your App (Author Required)
Shopify article API (2026-10): blogCreate makes the blog, articleCreate publishes the post – title, body, tags and an author. Leave the author out and GraphQL rejects the whole request before Shopify even runs it. The post is live on the storefront seconds later.
Shopify Page API: New Pages Go Live by Default (and Handles Clash)
Shopify page API (2026-10): pageCreate without isPublished makes a PUBLISHED page – live on your storefront at once. And a taken handle fails with TAKEN for pages, while menus quietly get handle-1. Tested on a real store.
The Shopify App Development 2026 series
All episodes are free, with the code on GitHub. Course page: Shopify App Development 2026.
- Episode 1: How to Create a Shopify App in 2026 (Shopify CLI Step by Step for Beginners)
- Episode 2: Shopify Admin API Tutorial 2026
- Episode 3: Shopify Product Variants API 2026
- Episode 4: Shopify GraphQL Create Collection 2026
- Episode 5: Shopify Update Inventory API 2026
- Episode 6: Shopify Create Discount Code API 2026
- Episode 7: Shopify Metafields API 2026
- Episode 8: Shopify Metaobjects API 2026
- Episode 9: Shopify App Webhooks 2026
- Episode 10: Shopify File Upload API 2026
- Episode 11: Shopify Page API 2026 (this episode)
- Episode 12: Shopify Translation API 2026
🔔 New episodes every week on the YouTube channel. Need a custom Shopify app or API integration? Wixob Technologies builds them: info@wixob.com.