Skip to main content
Committed ⭐️⭐️
Oct 12, 2023 10:37 AM UTC
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

 

Dilini Fernando
Expert ⭐️⭐️⭐️⭐️
Nov 9, 2023 7:42 AM UTC

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 ⭐️⭐️⭐️⭐️
Oct 12, 2023 12:43 PM UTC

@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 ⭐️⭐️⭐️⭐️⭐️
Oct 17, 2023 2:28 PM UTC

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 ⭐️⭐️⭐️⭐️⭐️
Oct 17, 2023 3:04 PM UTC

@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 ⭐️⭐️⭐️⭐️
Oct 31, 2023 5:44 AM UTC

Hi @VamsiGrandhi, did the above help you?

Dilini Fernando
Expert ⭐️⭐️⭐️⭐️
Expert ⭐️⭐️⭐️⭐️
Nov 9, 2023 7:42 AM UTC

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