Here I have a confluence page with a diagram as (TEST - SF#*F~93.json) and I am using Confluence API to get that title by (getting macro body by macro ID) but I am unable to get the particular title with ID.json attached to it.
url used : "https://domain/confluence/rest/api/content/{contentid}/history/0/macro/id/{macroid}"