How do I create a new page from HTML?

Hi guys, this seems not to work any more,
im trying to create new page using v2 API from existing content but confluence wont accept .html format no matter which representation i use, im getting raw html code in the page with 200 ok status

anybody got the solution for this maybe?

How are you getting the html code from the existing content?
You might have to strip the enclosing or tags from the content you want to include in your new page.

We primarily work with ADF, but it’s the same principe:
When getting a page we retrieve something like:

{
 "type": "doc",
  "content": [
   // ...
  ],
  "version": 1
}

→ If we wanted to include this page in an other page, we would have to extract the content.