Skip to main content
Question

Freshdesk API 403 Error on POST request from postman

  • July 7, 2024
  • 1 reply
  • 121 views

Afaq-Qazi
Apprentice

I’m an adminstrator role user in freshdesk account.
I need to migrate agents from freshdesk source account to destination account.

In postman I Posted a contacts successfully with correct API key and url:
http://{{dest-baseurl}}/contacts


Now i am posting agents with same api key and same base url but it is giving me 403 error.

http://{{dest-baseurl}}/agents

POSTMAN ERROR:

{

"code": "access_denied",

"message": "You are not authorized to perform this action."

}

 

Please note that i can successfully add Agents from the freshdesk UI. 

Adminstration > Equipment > Agents > Add New Support Agent.

This leads me to a freshworks domain where i can create agents successfully.

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

1 reply

mahendarsingh
Community Manager
Forum|alt.badge.img+7
  • Community Manager
  • 97 replies
  • August 23, 2024

Hi Afaq,

I hope you are doing well :)

I understand that you want to migrate agents from one account to another. Note that there is no API call to migrate agents https://developers.freshdesk.com/api/#agents , you can only view, list, create, update, search and delete agents. With respect to the error of access denied you are facing please confirm if you are using a simple GET call to list the agents or doing a PUT call to update and agent. Since you have admin access to Freshdesk, you cannot update details of account admin or supervisor (unless you have account admin or supervisor role in Freshdesk)

Feel free to respond to this thread for any queries :)

Thank you


Reply