The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Confluence Cloud: Getting 200 response in browser but 404 in postman and API calls from code.

Saaket Gupta
April 27, 2023

Hi all,

I'm trying to get my spaces from the confluence cloud get spaces API '/wiki/api/v2/spaces'. I'm getting perfect response in the browser however getting 404 in postman and api calls from my NodeJS code. I am using fresh bearer access token and headers as application/json.

Please help.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Jeroen Poismans
Community Champion
April 27, 2023

Hello Saaket,

Try including following headers too:

  • accept
  • accept-encoding
  • content-type

For the values you can refer to the network tab in your browser's Developer tools.

 

Jeroen

Saaket Gupta
April 27, 2023

Hi Jereon,

Thank you for replying. I have managed to solve the issue by using basic auth instead of oauth.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events