Create Page

🔒

Requires write_shop_navigation access scope. More access scope

The Create Page API allows users to create a new page on the platform with content, SEO metadata, and URL configuration.

This API is especially useful for:

  1. Dynamically generating custom pages on a website.
  2. Managing SEO metadata (title, description, and keywords) for the page.
  3. Automating page creation during setup processes for new stores or websites.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Body Parameters

ParameterTypeDescriptionRequiredExample
titlestringThe title of the page.Yes"My New Page"
contentstringThe HTML content of the page.Yes"<p>Hello!</p>"
urlstringThe URL of the page.Yes"/pages/about"
meta_titlestringThe SEO title of the page.No"About Us"
meta_keywordstringThe SEO keywords for the page.No"about, page"
meta_descriptionstringThe SEO description of the page.No"Learn about us."
independent_seobooleanWhether to manage SEO independently.Notrue

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Successful Response

FieldTypeDescriptionExample
idintUnique ID of the created page.15979
titlestringTitle of the created page."Test"
contentstringHTML content of the created page."<p>Welcome to my page!</p>"
statusintStatus of the page (1 for active).1
created_atstringTimestamp of when the page was created."1714377813"
updated_atstringTimestamp of the last update."1714377813"
urlstringURL of the created page."/pages/test1"
meta_titlestringSEO title of the page."Test"
meta_keywordstringSEO keywords for the page.""
meta_descriptionstringSEO description of the page."Welcome to my page!"
independent_seobooleanWhether SEO is managed independently.false

Error Response

Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.

FieldTypeExampleDescription
errorString "store is not active"Indicates an error encountered during the process

Error Detail

Status CodeMessagePossible ReasonExample Response
400Bad RequestInvalid input format or request structure (e.g., missing required fields or incorrect data types).Bad Request
UnauthorizedThe request is missing valid authentication credentials or the credentials provided are invalid.Unauthorized

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!