Skip to main content
Committed ⭐️⭐️
October 12, 2023
Solved

Getting 401 when using Cognite API in postman

  • October 12, 2023
  • 5 replies
  • 149 views

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

5 replies

Expert ⭐️⭐️⭐️⭐️
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 ⭐️⭐️⭐️⭐️⭐️
MVP ⭐️⭐️⭐️⭐️⭐️
October 17, 2023

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
 

 

André Alves
Andre Alves
MVP ⭐️⭐️⭐️⭐️⭐️
MVP ⭐️⭐️⭐️⭐️⭐️
October 17, 2023

@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

André Alves
Expert ⭐️⭐️⭐️⭐️
October 31, 2023

Hi @VamsiGrandhi, did the above help you?

Dilini Fernando
Expert ⭐️⭐️⭐️⭐️
Expert ⭐️⭐️⭐️⭐️
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