Is there a way to download attachments in confluence page using API (preferably using Oauth2.0 3LO)
Hi Anuja,
I can see from other posts here on Community that you're encountering a 401 error when trying to access the API. I see that you have expanded the children.attachment parameter on the get content API endpoint .
First, are you able to use the site's specific API endpoints (e.g. yoursite.atlassian.net/wiki/rest/) using basic auth and and API token? Details about how to use these with Atlassian Cloud are listed here. In short, you generate a new token from id.atlassian.com and use that in place of a password in the basic auth call.
I would expect your user account to be able to download any attachments that you can normally get from browsing Confluence via the site's REST API using basic auth.
If you are needing to use 3LO because you're developing an app, we also have a dedicated Developer Community that might be good to check out for app development related questions. Since the topics are more focused, it's easier for other developers to watch the questions coming in and provide guidance.
Cheers,
Daniel
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.