Creating page with plugin inside via Rest API

Hello

I’m trying to mass create pages in our confluence ( 6.15.6 ). We’re using PlaySQL plugin to show data from connected database.

I’ve tried to create pages with Rest API, but every time I try to include plugin in page body it does not work as intended: It adds image representing plugin, not the plugin itself.

I’ve looked in requests that appear in communication to confluence while adding new page with plugin and tried to simulate them, but without much luck.

Do any of you know a way to add page with plugin in it?

Any would be appreciated.

Thanks