Downloading Confluence Attachments from 3LO Apps (OAuth 2.0)


I managed to call all Confluence APIs using access_token except for downloading attachments from Confluence Pages.

Almost all methods talks about the download link returned from /rest/api/content/${pageId}/child/attachment API. But this _links->download is in the format of /download/attachments/${pageId}/${attName}
and cannot be used with the access token

Is there any API to get the actual download URL (the redirect from the above URL) which is in the format of${token}&client=${clientId}&name=${attName}

Or how can I construct this URL?