Skip to main content
Question

Unable to Fetch Contact & Deal Data Using Access Token in Freshsales API

  • March 3, 2025
  • 1 reply
  • 17 views

integration
Apprentice

I am currently working on integrating Freshsales with our product and facing an issue when trying to fetch Contact & Deal Data using the Freshsales API with an OAuth access token.

 

I have successfully obtained the access token using OAuth 2.0.When I use this token in the API request, I receive a "unauthorized" error. 

 

However, when I call the same API endpoint using an API Token, I am able to retrieve contact and deal data successfully. Why does the API Token work, but the Access Token does not? Is this a valid access token? 

 

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

1 reply

Huzaifa
Community Debut
  • Community Debut
  • 1 reply
  • March 3, 2025

It sounds like your OAuth access token might not have the necessary permissions or scopes to access Contact & Deal data. Double-check the scopes granted during the OAuth authentication process to ensure they include the required permissions. Additionally, verify that the token is still valid and not expired. Since the API Token works but the OAuth token does not, it’s possible that Freshsales enforces different access rules for these authentication methods. You may need to contact Freshsales support or review their API documentation for any specific OAuth requirements.


Reply