Cannot create landing page with custom HTML via the API

Your software
My Mautic version is: 4.4.10
My PHP version is: 7.4.33
My Database type and version is: mysql

Your problem

I want to create a landing page via the API while providing custom HTML.

  • There seems to be no documentation of this in the docs, however I suspect this must exist
  • Tried passing “customHtml” to the pages create and edit endpoint (since that’s how the mail endpoints are working)
  • Tried passing “newContent” to the pages create and edit endpoint (I saw that parameter being used when trying to reverse engineer how the frontend is doing it)
  • Tried posting to /s/pages/edit/ with an URL encoded page[customHtml] parameter (because that seems to be what the UI is doing if I’m interpreting this correctly)

Is there something available I can use that is simply undocumented?