Creating confluence page using templates through REST api

I am trying to use a Confluence template, retrieved through the REST API “BaseUrl/wiki/rest/api/template/{contentTemplateId}”, to create a Confluence page. For textual content, it seems to be working fine. However, when the template includes any images - these images are returned without an id or URL and thus when I create a page using that template content - the images are missing. Is this a limitation in the Templates API from Confluence or am I doing something wrong?

Also below is the screen shot of template after opening it in view mode.

1 Like

We are facing the same limitation!

How can we get the images associated with a template via REST API?

The template body storage references <ac:image><ri:attachment ri:filename="SomeImageName.png" /></ac:image> but there seems no way to get that image and potentially store it as an attachment to the newly created page.

Any idea how to accomplish this? Any plans from Atlassian to support creating new content from templates including images?