Free cookie consent management tool by TermsFeed Generator
All Products & Integrations

jalpi page builder docs

Pages

Read, save, publish and audit a page's node tree. Four routes under /page, all scoped to a single post.

Jalpi Core Intermediate Namespace: jalpi-page-builder/v1
3 min read Β· November 2026

Overview#

This page documents the Pages resource endpoints in the Jalpi Page Builder REST API. All endpoints are registered under the jalpi-page-builder/v1 route namespace and accept JSON payloads with WordPress REST nonce authorization.

See also: REST API Overview, AJAX Actions Reference, and Error Codes Reference.

Endpoints Summary#

MethodEndpointCapabilityDescription
GET/wp-json/jalpi-page-builder/v1/page/{post_id}edit_post for the given post_idGet Page
POST/wp-json/jalpi-page-builder/v1/page/{post_id}edit_post for the given post_idSave Page
POST/wp-json/jalpi-page-builder/v1/page/{post_id}/publishedit_post for the given post_id; edit_others_posts additionally required when the caller is not the post authorPublish Page
GET/wp-json/jalpi-page-builder/v1/page/{post_id}/historyedit_post for the given post_idGet History

Get Page#

GET {site_url}/wp-json/jalpi-page-builder/v1/page/{post_id}

Permissions & Authentication

Authentication: WordPress cookie session + REST nonce

Capability: edit_post for the given post_id

Permission Callback: Jalpi_API::edit_permission

Parameters#

NameLocationTypeRequiredDescription
post_idpathintegerYesThe post to read. Must be 1 or greater. Sanitised with absint() and validated by validate_post_id().
X-WP-NonceheaderstringYesWordPress REST nonce, created server-side as wp_create_nonce('wp_rest').

Save Page#

POST {site_url}/wp-json/jalpi-page-builder/v1/page/{post_id}

Permissions & Authentication

Authentication: WordPress cookie session + REST nonce

Capability: edit_post for the given post_id

Permission Callback: Jalpi_API::edit_permission

Parameters#

NameLocationTypeRequiredDescription
post_idpathintegerYesThe post whose layout is being saved. Must be 1 or greater and resolve to an existing post the caller can edit.
page_databodyobjectYesThe complete page node tree. Must contain a sections key. Replaces the stored tree in full; this is not a partial update.
page_data.versionbodystringNoSchema version string. Defaults to '1.0' when absent. Preserved on save but not read by any migration logic.
page_data.sectionsbodyarrayYesTop-level nodes, each a CBNode with type 'section'. May be empty. Every node is rebuilt by the sanitiser before storage.
page_data.globalStylesbodyobjectNoLegacy per-page style model. Preserved for pages saved before the site-wide Design System existed.
X-WP-NonceheaderstringYesWordPress REST nonce. The editor reads it from jalpiEditorConfig.nonce.
Content-TypeheaderstringYesMust be application/json.

Publish Page#

POST {site_url}/wp-json/jalpi-page-builder/v1/page/{post_id}/publish

Permissions & Authentication

Authentication: WordPress cookie session + REST nonce

Capability: edit_post for the given post_id; edit_others_posts additionally required when the caller is not the post author

Permission Callback: Jalpi_API::publish_permission

Parameters#

NameLocationTypeRequiredDescription
post_idpathintegerYesThe post to publish. Must be 1 or greater. Sanitised with absint() and validated by validate_post_id().
X-WP-NonceheaderstringYesWordPress REST nonce.
Content-TypeheaderstringYesMust be application/json. The editor sends an empty JSON object as the body.

Get History#

GET {site_url}/wp-json/jalpi-page-builder/v1/page/{post_id}/history

Permissions & Authentication

Authentication: WordPress cookie session + REST nonce

Capability: edit_post for the given post_id

Permission Callback: Jalpi_API::edit_permission

Parameters#

NameLocationTypeRequiredDescription
post_idpathintegerYesThe post whose history is read. Must be 1 or greater. Sanitised with absint(). This route registers no validate_callback, unlike the other page routes.
X-WP-NonceheaderstringYesWordPress REST nonce.