Create a landing page
Changed onCreates a business-scoped landing page using the same page creation behavior as Landing Page Studio. The request body below documents the HTML Mode payload. To create and publish an HTML Mode page in one call, include is_published: true with page_display. If is_published is omitted or false, the nested page_display is saved as an unpublished draft and is not returned as the page's current display; create or pick a page display, then call PATCH /v3/pages/{id} with is_published: true and current_page_display_id to publish it. A saved checkout form initializes an unbound page's store_id from page_display.form_display.store_id, including unpublished drafts. The store must belong to the same business.
Request
- Base URLhttps://api.scalev.com
- URLhttps://api.scalev.com/v3/pages
- Auth
- HTTP bearer
- or API key in header authorization
- or OAuth 2Authorization code: https://api.scalev.com/v3/oauth/authorizeToken URL: https://api.scalev.com/v3/oauth/token scopes: page:create
Request body
Example request
{
"name": "API HTML Page",
"slug": "api-html-page",
"page_display": {
"html_document": "<!doctype html><html lang=\"id\"><head><title>My page</title><style>main { color: #111827; }</style></head><body><main>Hello</main><script>console.log(Scalev.data.get());</script></body></html>"
}
}Response
Landing page
Example response
{
"page_display": {
"html_document": "<!doctype html><html lang=\"id\"><head><title>My page</title><style>main { color: #111827; }</style></head><body><main>Hello</main><script>console.log(Scalev.data.get());</script></body></html>"
}
}Changes
- info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added
subschema #1subschema #2to therequest propertyanyOflist - info
the request property
/became optional - info
the request property
/became optional - info
the request property
/became optional - info
the request property
/became optional - info
the request property
/became optional - info
the request property
/became optional - info
the request property
/became optional - info
the request property
/became optional - info
added the non-success response with the status
- info
added the optional property
//////to the response with the status - info
added the optional property
//////to the response with the status - info
added the optional property
//////to the response with the status - info
added the optional property
//////to the response with the status - info
added the optional property
//////to the response with the status
- info
- info
added the new optional request property
////// - info
added the optional property
///////////to the response with the status
- info