Skip to main content
Solved

Getting 401 when using Cognite API in postman


Can someone revert with proper procedure for using any of the cognite data fusion API using postman

 

Best answer by Dilini Fernando

Hi @VamsiGrandhi ,

I hope the above helped. I’m closing this topic now, please feel free to create a new post if you still experience problems.

Best regards,
Dilini

View original
Did this topic help you find an answer to your question?

5 replies

Forum|alt.badge.img
  • Seasoned Practitioner
  • 282 replies
  • October 12, 2023

@VamsiGrandhi Have you followed the links below?  Downloading the collection and setting up environments will come in very handy 😀.
 

Looking at your setup.  You need to to change your scope parameter to be https://{{cluster}}.cognitedata.com/user_impersonation

https://api-docs.cognite.com/20230101/#section/Postman

https://developer.cognite.com/dev/guides/postman/

-Jason
 


Andre Alves
MVP
Forum|alt.badge.img+11

Hi @VamsiGrandhi,

Please check with you are using client authentication as “Send as Basic Auth header”


See my token configuration below: 

baseUrl: https://api.cognitedata.com
Auth Url: 
https://login.microsoftonline.com/{{tenant-id}}/oauth2/v2.0/authorize
project: publicdata
 

 


Andre Alves
MVP
Forum|alt.badge.img+11

@VamsiGrandhi 

Please let us know if it works for you, and we would appreciate it if you could share how you resolved it.
Thanks in advance


  • Seasoned Practitioner
  • 223 replies
  • October 31, 2023

Hi @VamsiGrandhi, did the above help you?


Dilini Fernando
Seasoned Practitioner
Forum|alt.badge.img+2
  • Seasoned Practitioner
  • 671 replies
  • Answer
  • November 9, 2023

Hi @VamsiGrandhi ,

I hope the above helped. I’m closing this topic now, please feel free to create a new post if you still experience problems.

Best regards,
Dilini


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings