Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Downloading Confluence Attachments

April Dagonese
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 21, 2022

Hi there,

I can successfully use an OAuth2 access token to grab everything I need from Confluence's api except the page attachments I'm trying to download. I'm using the download url I get back from the "_links" key in the page content response, along with the same base url I'm using for all my other calls, but I can only get back a 401 Unauthorized for these. I have the "read:attachment:confluence" scope coming back correctly on my token.

Sample download url: `"https:/{MY_INSTANCE}.atlassian.net/wiki/download/attachments/{ATTACHMENT_ID}/my_doc.docx?version=1&modificationDate=1647900502426&cacheVersion=1&api=v2"`

I've tried removing all the query params after the document name, which I've seen suggested here, but that didn't help.

Can anyone help identify what I'm doing wrong?

Thanks,

April

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events