MediaGroup is not having attachment name or jira id. how to get the content from issue attachments or any other API's?

I am trying to render image from adf schema. but when it is into mediagroup, it is not having file name. it has only UUID. but in attachments list in the issue details not having uuid.

{
"type": "mediaGroup",
"content": [
{
"type": "media",
"attrs": {
"id": "uuid-1"
}
}
]
}
how to map this with issue attachment list and get the image id to get it displayed? even thumbnail get also needs issue attachment jira id.