read_content to read, write_content to change (it includes read_content). The same scopes cover the blog.
The page
List pages leaves out
content, the largest field; Get a page has it. Lists are ordered by created_at, not by position.
HTML content
content is cleaned before it is saved, and the answer holds the cleaned HTML, which may differ from what you sent. Read it from the answer rather than keeping your own copy.
- The limit is 51,200 bytes, counted as you send it, before cleaning, so you can check it beforehand (
422, rulemax). A whole body over 64 KiB answers413 body_too_large. - Kept: text formatting, headings, lists, tables, quotes and code blocks; links to
https,mailto:,tel:andsms:;httpsimages; YouTube and Vimeo player iframes; thedirattribute; and the classes the merchant’s dashboard editor writes (alignment, direction, indent, size, font). - Removed:
scriptandstylewith their content; every other element and attribute, keeping its text (forms, other iframes,on*handlers,styleattributes, other classes); relative URLs,data:images and other URL schemes. - Links get
nofollowandnoreferrerin theirrel, and links to full URLs open in a new tab.
422, rule text).
Slugs
The slug is the page’s name in its storefront URL: lettersa-z and A-Z, digits and dashes, up to 255 characters.
- Create a page without
slugand one is made from the title: its English letters and digits, in lower case, with dashes between words (Return policy→return-policy). A title with none of them, an Arabic one for example, getspage. When the slug is taken, a random suffix is added (return-policy-3fa9c1). - A
slugyou send must not be another page’s:409 slug_taken. - Changing the title later does not change the slug. Send
slugto change it.
AI content check
The title and content go through the same AI content check as the merchant’s own pages, on create and on every update that changes them. When the check flags them, the page is still saved as sent, withis_need_review: true, for a human review.
is_need_reviewis read only. A later update whose check passes does not set it back tofalse.- A check that fails or takes over 15 seconds counts as flagged.
- Each store allows 20 checks a minute, and each app 200 a minute across its stores, shared with products and articles. Over that, the text is flagged without a check.
filter=is_need_review||$eq||true.
Deleting
Delete a page deletes it for good, as the merchant’s dashboard does. To take a page off the storefront and keep it, setis_active: false.