Solved

Getting 401 when using Cognite API in postman

  • 12 October 2023
  • 5 replies
  • 66 views

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

 

icon

Best answer by Dilini Fernando 9 November 2023, 08:42

View original

5 replies

Userlevel 4
Badge

@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
 

Userlevel 3
Badge +5

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
 

 

Userlevel 3
Badge +5

@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

Userlevel 3

Hi @VamsiGrandhi, did the above help you?

Userlevel 4
Badge +2

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