Skip to main content
Answer

Getting 401 when using Cognite API in postman

  • October 12, 2023
  • 5 replies
  • 110 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

Forum|alt.badge.img
  • Seasoned Practitioner
  • 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+14
  • 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
 

 


Andre Alves
MVP
Forum|alt.badge.img+14
  • 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


  • Seasoned Practitioner
  • October 31, 2023

Hi @VamsiGrandhi, did the above help you?


Dilini Fernando
Seasoned Practitioner
Forum|alt.badge.img+2
  • Seasoned Practitioner
  • 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