Backend API

The pages model contains data relating to pages within your storefront and the content within them.

👉

We recommend not making changes via the API for the pages model when possible and suggest using the dashboard model editor instead. If you do wish to make changes via the API, see our data model customization guide.

Fields

idobjectId

Unique identifier for the page.

namestringrequired

Human-friendly name of the page.

slugstringrequired

Lowercase, hyphenated identifier typically used in URLs. When creating a product, a slug will be generated automatically from the name. Maximum length of 1,000 characters.

contentstring

HTML formatted page content.

date_createddate

Date and time the page was created.

date_publisheddate

Date and time the page was published.

date_updateddate

Date and time the page was updated.

meta_descriptionstring

Page description used for search engine optimization purposes.

publishedboolean

Indicates whether the page is published. Defaults to false.

redirectstring

URL to specify a page redirect.

The pages model
 {
  "id": "5f5efea5703b7a10d8000007",
  "name": "About Us",
  "slug": "about-us",
  "content": "Welcome to <strong>Strongbad's Awesome Store</strong>. We make awesome things for awesome people.",
  "date_updated": "2021-09-16T01:05:27.003Z",
  "date_published": "2020-09-28T09:08:23.005Z",
  "date_created": "2020-09-28T09:07:17.091Z",
  "meta_description": null,
  "redirect": null,
  "published": true,
  }