Download confluence page attachments through api

Hi,

is there an api to directly download all attachments from a confluence page?

Hey @DinaAbdelrahimEldeke

Can you check if this API returns what you need? https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment/#api-pages-id-attachments-get

The downloadLink property in the response should contain a relative path to add to the Confluence base URL to retrieve the attachment data.

e.g. "downloadLink":"/download/attachments/2919172468/attach.txt?... which would be added to your-site.atlassian.net/wiki