Hello, I have a problem getting the Confluence Rest API data from an external tool (c# code). I can do this with a browser, but I cannot get data from Postman or my program. Below, I awill describe what I did:
I built a string based on my email and api token and encoded it to the base64.
I tried to get data in Postman, but I got ‘Status 401 Unauthorized’
when I opened the same address in browser, I got response but without results.
when I opened one of the confluence pages and then I repeated request – I got the results in the browser but still nothing in Postman.
Then I Noticed in History that I need to login to Confluence first before sending the request.
I found a endpoint used for login (/dologin.action) and I made a post request, but still I couldn’t login.
I got the same result when I opened the page in a browser (I am sure that I used a correct credentials) – it seems like I don’t have a Confluence account – but a Microsoft account, as we can see in the history [1. 8)].
The second way that I tried was to use OAuth 2.0 (3LO) apps