Programmatic access to websites, pages, media, and templates.
All API requests require a CSRF token passed as the X-CSRFToken header. Session authentication is used — you must be logged in.
Returns all websites owned by the authenticated user with page counts and publish status.
Saves the GrapesJS editor state (components + styles + HTML/CSS) for a page.
Upload an image, video, or document to the site's media library.
Toggles the website between published (live) and unpublished (draft) states.
Generate a complete website from a text prompt. Creates a Website + Page and returns the editor URL.
Permanently deletes a website and all its pages, media, and settings. Cannot be undone.
Export all pages as downloadable code. Formats: bundle (single HTML), separate (HTML + CSS), zip (all pages). Paid plans only.
Bugs, ideas, praise — we want to hear it all.
We read every submission and use it to make Surgepulse better.