Hi @Kamz,
The general approach could be something like below.
1. Create a Page
POST
_api/sitepages/pages
2. Checkout a Page
POST
_api/sitepages/pages(@{outputs('Send_an_HTTP_request_to_SharePoint')?['body']?['d']['Id']})/checkoutpage
3. SavePage or SavePageAsDraft with body which contains all the components in the CanvasContent1 property
POST
_api/sitepages/pages(@{outputs('Send_an_HTTP_request_to_SharePoint')?['body']?['d']['Id']})/SavePageAsDraft
4. Publish your page
POST
_api/sitepages/pages(@{outputs('Send_an_HTTP_request_to_SharePoint')?['body']?['d']['Id']})/publish

The SavePageAsDraft request would look like below.
What makes it a bit more complex is figuring out which json to use in the CanvasContent1 property and more specifically retrieve all these values dynamically.
For example with the Document Library webpart you would have to retrieve the related siteid, related webid and the listid of the document library which just has been created which you want to use in the first section of your page.

Hope this helps to get you started?