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

jalpi page builder docs

Media

Two routes backing the editor's image picker β€” upload an image, and list recent attachments.

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

Overview#

This page documents the Media 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
POST/wp-json/jalpi-page-builder/v1/media/uploadupload_filesUpload Media
GET/wp-json/jalpi-page-builder/v1/mediaedit_postsList Media

Upload Media#

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

Permissions & Authentication

Authentication: WordPress cookie session + REST nonce

Capability: upload_files

Permission Callback: Jalpi_API::upload_permission

Parameters#

NameLocationTypeRequiredDescription
filebodyfileYesThe image, sent as a multipart file field named exactly 'file'. Read via $request->get_file_params().
X-WP-NonceheaderstringYesWordPress REST nonce.
Content-TypeheaderstringYesmultipart/form-data. This is the one route where the editor's apiFetch wrapper does not set application/json β€” let the browser set the boundary itself.

List Media#

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

Permissions & Authentication

Authentication: WordPress cookie session + REST nonce

Capability: edit_posts

Permission Callback: Jalpi_API::edit_permission

Parameters#

NameLocationTypeRequiredDescription
X-WP-NonceheaderstringYesWordPress REST nonce.