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

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events