We’ve been using the v2 API for quite some time to list and download Confluence page attachments.
Our code uses basic authentication (e.g: appends the Authorization header with {email:token} base64 encoding)
Listing page attachment works and returns information including a downloadLink.
Downloading this link started failing recently, although it worked perfectly before.
The URL we are constructing to download the actual attachment is:
https://our_instance.atlassian.net/wiki/download/attachments/{pageID}/{filename}?version=1&modificationDate=…&cacheVersion=1&api=v2
The same basic authorization header is added to this request.
The download request results in HTTP status code 401 (Unauthorized)
Again - this worked perfectly up until a few days ago. Trying to understand what changed and how we can solve it.
The access token we are using the is the “classic one”.