Retrieve the attachments from an issue in Jira Cloud and attach them to a Confluence page

I am a beginner with Atlassian Forge.

I want to retrieve the attachments from an issue created in Jira Service Management and attach them to a specific Confluence page.

Using the current API, /rest/api/3/issue/{issueId}?fields=attachment, I am able to retrieve information such as the filename and content of attachments.

Ideally, I would like to use the Create Attachment API to attach these files to a specified Confluence page. However, I am unsure of the necessary elements required to execute this API. What do I need to prepare to attach the files? File path? File name? Binary data?

Additionally, what should I do to obtain these data?