Pages
Get All Pages (Deprecated)
GET https://api.bigcommerce.com/stores/{store_hash}/v2/pagesRequest
Returns a list of Pages. Default sorting is by auto-generated ID from oldest to newest.
Warning
Deprecated
- This API operation is deprecated. Avoid using this API operation if possible. It will be removed in a future version.
- To get one or more pages, use Pages V3ʼs Get pages endpoint. To get a single page, use Pages V3ʼs Get a page endpoint.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- page in query - numberFilter param.
- limit in query - numberFilter param.
example
Response
Body
idinteger
read-onlyID of the page. Read-Only.Example: 44channel_idnumber
Channel ID.Example: 11namestring
Page name, as displayed on the storefront.Example: Contact Formemailstring
Where the page’s type is a contact form, the email address that receives messages sent using the form.Example: janedoe@example.combodystring
HTML or variable that populates this page’s<body>
element, in default/desktop view. Required in POST if page type israw
.Example: <p>We're happy to answer questions or help you with returns.<br />Please fill out the form below if you need assistance.</p>is_visibleboolean
If true, this page appears in the storefront navigation menu.Example: trueparent_idinteger
ID of any parent Web page.Example: 5sort_orderinteger
Order in which this page should display on the storefront. (Lower integers specify earlier display.)Example: 3typestring
page
: free-text pagelink
: link to another web addressrss_feed
: syndicated content from an RSS feedcontact_form
: When the store’s contact form is usedAllowed: page | rss_feed | contact_form | raw | link
contact_fieldsstring
Where the page’s type is a contact form - object whose members are the fields enabled (in the control panel) for storefront display. Possible members are:fullname
- full name of the customer submitting the form;phone
- customer’s phone number, as submitted on the form;companyname
- customer’s submitted company name;orderno
- customer’s submitted order number;rma
- customer’s submitted RMA (Return Merchandise Authorization) number.Example: fullname,companyname,phone,orderno,rmais_homepageboolean
If true, this page is the storefront’s home page.layout_filestring
Layout template for this page. This field is writable only for stores with a Blueprint theme applied.Example: page.htmlis_customers_onlyboolean
If true, this page is for customers only.search_keywordsstring
Comma-separated list of keywords that shoppers can use to locate this page when searching the store.has_mobile_versionboolean
If true, this page has a mobile version. (For Blueprint themes only)mobile_bodystring
HTML to use for this page’s body when viewed in the mobile template (deprecated - Blueprint only).Example: 0content_typestring
Allowed: application/json | text/javascript | text/html
Example: text/htmlurlstring
Relative URL on the storefront for this page.Example: /contact-us/feedstring
If page type isrss_feed
, then this field is visible.linkstring
If page type islink
, this field is returned.
example
Create a Page (Deprecated)
POST https://api.bigcommerce.com/stores/{store_hash}/v2/pagesRequest
Creates a Page. The request payload limit is 1MB.
Required Fields
type
name
link
(for a page oftype: link
)feed
(for a page oftype: rss_feed
)body
(for a page oftype: raw
)
Read Only Fields
id
Content Type
The default value for content_type
is text/html
; however, if page_type
is set to raw
, content_type
can be changed to text/javascript
or application/json
. Updating this field lets you place a JavaScript or a JSON file in the root directory.
Warning
Deprecated
- This API operation is deprecated. Avoid using this API operation if possible. It will be removed in a future version.
- To create one or more pages, use Pages V3ʼs Create pages endpoint.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- Content-Type in header with default of application/json - stringrequiredThe MIME type of the request body.
Body
channel_idnumber
channel IDExample: 11namestring
requiredPage name, as displayed on the storefront.Example: Contact Formbodystring
requiredHTML or variable that populates this page’s<body>
element, in default/desktop view. Required in POST if page type israw
.Example: <p>We're happy to answer questions or help you with returns.<br />Please fill out the form below if you need assistance.</p>is_visibleboolean
If true, this page appears in the storefront’s navigation menu.Example: trueparent_idinteger
ID of any parent Web page.Example: 5sort_orderinteger
Order in which this page should display on the storefront. (Lower integers specify earlier display.)Example: 3typestring
requiredpage
: free-text pagelink
: link to another web addressrss_feed
: syndicated content from an RSS feedcontact_form
: When the store’s contact form is usedAllowed: page | rss_feed | contact_form | raw | link
is_homepageboolean
If true, this page is the storefront’s home page.is_customers_onlyboolean
If true, this page is for customers only.search_keywordsstring
Comma-separated list of keywords that shoppers can use to locate this page when searching the store.has_mobile_versionboolean
If true, this page has a mobile version. (For Blueprint themes only)mobile_bodystring
HTML to use for this page’s body when viewed in the mobile template (deprecated - Blueprint themes only).Example: 0contact_fieldsstring
Where the page’s type is a contact form: object whose members are the fields enabled (in the control panel) for storefront display. Possible members are:fullname
: full name of the customer submitting the form;phone
: customer’s phone number, as submitted on the form;companyname
: customer’s submitted company name;orderno
: customer’s submitted order number;rma
: customer’s submitted RMA (Return Merchandise Authorization) number.Example: fullname,companyname,phone,orderno,rmaemailstring
Where the page’s type is a contact form, the email address that receives messages sent using the form.Example: janedoes@example.comurlstring
Relative URL on the storefront for this page.Example: /contact-us/layout_filestring
Layout template for this page. This field is writable only for stores with a Blueprint theme applied.Example: page.htmlfeedstring
If page type isrss_feed
then this field is visible. Required in POST required forrss page
type.linkstring
If page type islink
this field is returned. Required in POST to create alink
page.content_typestring
Allowed: application/json | text/javascript | text/html
Example: text/html
example
Response
Body
idinteger
read-onlyID of the page. Read-Only.Example: 44channel_idnumber
Channel ID.Example: 11namestring
Page name, as displayed on the storefront.Example: Contact Formemailstring
Where the page’s type is a contact form, the email address that receives messages sent using the form.Example: janedoe@example.combodystring
HTML or variable that populates this page’s<body>
element, in default/desktop view. Required in POST if page type israw
.Example: <p>We're happy to answer questions or help you with returns.<br />Please fill out the form below if you need assistance.</p>is_visibleboolean
If true, this page appears in the storefront navigation menu.Example: trueparent_idinteger
ID of any parent Web page.Example: 5sort_orderinteger
Order in which this page should display on the storefront. (Lower integers specify earlier display.)Example: 3typestring
page
: free-text pagelink
: link to another web addressrss_feed
: syndicated content from an RSS feedcontact_form
: When the store’s contact form is usedAllowed: page | rss_feed | contact_form | raw | link
contact_fieldsstring
Where the page’s type is a contact form - object whose members are the fields enabled (in the control panel) for storefront display. Possible members are:fullname
- full name of the customer submitting the form;phone
- customer’s phone number, as submitted on the form;companyname
- customer’s submitted company name;orderno
- customer’s submitted order number;rma
- customer’s submitted RMA (Return Merchandise Authorization) number.Example: fullname,companyname,phone,orderno,rmais_homepageboolean
If true, this page is the storefront’s home page.layout_filestring
Layout template for this page. This field is writable only for stores with a Blueprint theme applied.Example: page.htmlis_customers_onlyboolean
If true, this page is for customers only.search_keywordsstring
Comma-separated list of keywords that shoppers can use to locate this page when searching the store.has_mobile_versionboolean
If true, this page has a mobile version. (For Blueprint themes only)mobile_bodystring
HTML to use for this page’s body when viewed in the mobile template (deprecated - Blueprint only).Example: 0content_typestring
Allowed: application/json | text/javascript | text/html
Example: text/htmlurlstring
Relative URL on the storefront for this page.Example: /contact-us/feedstring
If page type isrss_feed
, then this field is visible.linkstring
If page type islink
, this field is returned.
example
Get A Page (Deprecated)
GET https://api.bigcommerce.com/stores/{store_hash}/v2/pages/{id}Request
Returns a Page.
Warning
Deprecated
- This API operation is deprecated. Avoid using this API operation if possible. It will be removed in a future version.
- To get a single page, use Pages V3ʼs Get a page endpoint.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- id in path - integerrequiredID of the page.
example
Response
Body
idinteger
read-onlyID of the page. Read-Only.Example: 44channel_idnumber
Channel ID.Example: 11namestring
Page name, as displayed on the storefront.Example: Contact Formemailstring
Where the page’s type is a contact form, the email address that receives messages sent using the form.Example: janedoe@example.combodystring
HTML or variable that populates this page’s<body>
element, in default/desktop view. Required in POST if page type israw
.Example: <p>We're happy to answer questions or help you with returns.<br />Please fill out the form below if you need assistance.</p>is_visibleboolean
If true, this page appears in the storefront navigation menu.Example: trueparent_idinteger
ID of any parent Web page.Example: 5sort_orderinteger
Order in which this page should display on the storefront. (Lower integers specify earlier display.)Example: 3typestring
page
: free-text pagelink
: link to another web addressrss_feed
: syndicated content from an RSS feedcontact_form
: When the store’s contact form is usedAllowed: page | rss_feed | contact_form | raw | link
contact_fieldsstring
Where the page’s type is a contact form - object whose members are the fields enabled (in the control panel) for storefront display. Possible members are:fullname
- full name of the customer submitting the form;phone
- customer’s phone number, as submitted on the form;companyname
- customer’s submitted company name;orderno
- customer’s submitted order number;rma
- customer’s submitted RMA (Return Merchandise Authorization) number.Example: fullname,companyname,phone,orderno,rmais_homepageboolean
If true, this page is the storefront’s home page.layout_filestring
Layout template for this page. This field is writable only for stores with a Blueprint theme applied.Example: page.htmlis_customers_onlyboolean
If true, this page is for customers only.search_keywordsstring
Comma-separated list of keywords that shoppers can use to locate this page when searching the store.has_mobile_versionboolean
If true, this page has a mobile version. (For Blueprint themes only)mobile_bodystring
HTML to use for this page’s body when viewed in the mobile template (deprecated - Blueprint only).Example: 0content_typestring
Allowed: application/json | text/javascript | text/html
Example: text/htmlurlstring
Relative URL on the storefront for this page.Example: /contact-us/feedstring
If page type isrss_feed
, then this field is visible.linkstring
If page type islink
, this field is returned.
example
Update a Page (Deprecated)
PUT https://api.bigcommerce.com/stores/{store_hash}/v2/pages/{id}Request
Updates a Page. The request payload limit is 1MB.
Read Only Fields
- id
Warning
Deprecated
- This API operation is deprecated. Avoid using this API operation if possible. It will be removed in a future version.
- To update multiple pages, use Pages V3ʼs Update pages endpoint. To update a single page, use Pages V3ʼs Update a page endpoint.
- Updating the channel ID for a page is not supported.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- id in path - integerrequiredID of the page.
- Content-Type in header with default of application/json - stringrequiredThe MIME type of the request body.
Body
idinteger
read-onlyID of the page. Read-Only.Example: 44channel_idnumber
Channel ID.Example: 11namestring
Page name, as displayed on the storefront.Example: Contact Formemailstring
Where the page’s type is a contact form, the email address that receives messages sent using the form.Example: janedoe@example.combodystring
HTML or variable that populates this page’s<body>
element, in default/desktop view. Required in POST if page type israw
.Example: <p>We're happy to answer questions or help you with returns.<br />Please fill out the form below if you need assistance.</p>is_visibleboolean
If true, this page appears in the storefront navigation menu.Example: trueparent_idinteger
ID of any parent Web page.Example: 5sort_orderinteger
Order in which this page should display on the storefront. (Lower integers specify earlier display.)Example: 3typestring
page
: free-text pagelink
: link to another web addressrss_feed
: syndicated content from an RSS feedcontact_form
: When the store’s contact form is usedAllowed: page | rss_feed | contact_form | raw | link
contact_fieldsstring
Where the page’s type is a contact form - object whose members are the fields enabled (in the control panel) for storefront display. Possible members are:fullname
- full name of the customer submitting the form;phone
- customer’s phone number, as submitted on the form;companyname
- customer’s submitted company name;orderno
- customer’s submitted order number;rma
- customer’s submitted RMA (Return Merchandise Authorization) number.Example: fullname,companyname,phone,orderno,rmais_homepageboolean
If true, this page is the storefront’s home page.layout_filestring
Layout template for this page. This field is writable only for stores with a Blueprint theme applied.Example: page.htmlis_customers_onlyboolean
If true, this page is for customers only.search_keywordsstring
Comma-separated list of keywords that shoppers can use to locate this page when searching the store.has_mobile_versionboolean
If true, this page has a mobile version. (For Blueprint themes only)mobile_bodystring
HTML to use for this page’s body when viewed in the mobile template (deprecated - Blueprint only).Example: 0content_typestring
Allowed: application/json | text/javascript | text/html
Example: text/htmlurlstring
Relative URL on the storefront for this page.Example: /contact-us/feedstring
If page type isrss_feed
, then this field is visible.linkstring
If page type islink
, this field is returned.
example
Response
Body
idinteger
read-onlyID of the page. Read-Only.Example: 44channel_idnumber
Channel ID.Example: 11namestring
Page name, as displayed on the storefront.Example: Contact Formemailstring
Where the page’s type is a contact form, the email address that receives messages sent using the form.Example: janedoe@example.combodystring
HTML or variable that populates this page’s<body>
element, in default/desktop view. Required in POST if page type israw
.Example: <p>We're happy to answer questions or help you with returns.<br />Please fill out the form below if you need assistance.</p>is_visibleboolean
If true, this page appears in the storefront navigation menu.Example: trueparent_idinteger
ID of any parent Web page.Example: 5sort_orderinteger
Order in which this page should display on the storefront. (Lower integers specify earlier display.)Example: 3typestring
page
: free-text pagelink
: link to another web addressrss_feed
: syndicated content from an RSS feedcontact_form
: When the store’s contact form is usedAllowed: page | rss_feed | contact_form | raw | link
contact_fieldsstring
Where the page’s type is a contact form - object whose members are the fields enabled (in the control panel) for storefront display. Possible members are:fullname
- full name of the customer submitting the form;phone
- customer’s phone number, as submitted on the form;companyname
- customer’s submitted company name;orderno
- customer’s submitted order number;rma
- customer’s submitted RMA (Return Merchandise Authorization) number.Example: fullname,companyname,phone,orderno,rmais_homepageboolean
If true, this page is the storefront’s home page.layout_filestring
Layout template for this page. This field is writable only for stores with a Blueprint theme applied.Example: page.htmlis_customers_onlyboolean
If true, this page is for customers only.search_keywordsstring
Comma-separated list of keywords that shoppers can use to locate this page when searching the store.has_mobile_versionboolean
If true, this page has a mobile version. (For Blueprint themes only)mobile_bodystring
HTML to use for this page’s body when viewed in the mobile template (deprecated - Blueprint only).Example: 0content_typestring
Allowed: application/json | text/javascript | text/html
Example: text/htmlurlstring
Relative URL on the storefront for this page.Example: /contact-us/feedstring
If page type isrss_feed
, then this field is visible.linkstring
If page type islink
, this field is returned.
example
Delete a Page (Deprecated)
DELETE https://api.bigcommerce.com/stores/{store_hash}/v2/pages/{id}Request
Deletes a Page.
Warning
Deprecated
- This API operation is deprecated. Avoid using this API operation if possible. It will be removed in a future version.
- To delete multiple pages, use Pages V3ʼs Delete pages endpoint. To delete a single page, use Pages V3ʼs Delete a page endpoint.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- id in path - integerrequiredID of the page.