Visual Editor

Create visual edit session

Creates a browser-based edit session for image management on a page. Returns an edit URL for the user. Use data-wpe-slot placeholder images when building pages, then create a session for real image uploads.

post/wpe/project/{projectId}/sessions

Request

  • Base URL: https://api.websitepublisher.ai
  • URL: https://api.websitepublisher.ai/wpe/project/{projectId}/sessions
  • Auth: OAuth 2 (authorization code, authorization URL https://api.websitepublisher.ai/dapi/oauth/authorize, token URL https://api.websitepublisher.ai/dapi/oauth/token, scopes: read, write)

Path parameters

projectIdinteger required

Request body

page_slugstring required

Page slug to edit (e.g., index.htm, about.htm)

capabilities_jsonstring

JSON array of capabilities: image_upload, image_resize, image_padding, image_remove. Default: ["image_upload","image_resize","image_padding"]

ttl_minutesinteger

Session duration in minutes (5-120, default: 30)

Response

Edit session created — returns session_id, edit_url, expires_in

Changes

No recorded changes to this operation across all 1 revision of this API.