Question

create a ticket api

  • 10 January 2024
  • 4 replies
  • 139 views

i tried to send api request to create a new ticket , but i got an error .

{

    "code": "invalid_credentials",

    "message": "You have to be logged in to perform this action."

}

important to say that i logged in to the freshdesk in this time...


4 replies

Userlevel 5
Badge +9

Hi.
Usually I do use a central credential object which I have stored in the Credentials Admin settings.
This requires you to sacrifice an Agent license for a dedicated API user only used for API actions. But also you don’t need to change all Workflows if the user with the credentials leaves the company.

Webhook:

 

Credentials:

 

Userlevel 5
Badge +9

In postman this would look like this:

 

Userlevel 5
Badge +5

Hi @msconfig87 

Hope you are well.

Could you please share the endpoint url(stripping off your domain) and Payload for us to take a look at it. Based on your previous Screenshot, I’m able to see that you’re trying to create a ticket with Assets Payload used. You may go through the Freshservice Documentation of APIs: https://api.freshservice.com/v2

This would help and resolve your issue. Feel free to reach out in case of queries!

Thanks and Regards,

Amy!

Userlevel 5
Badge +9

I am fine, @Rontw asked this question

Reply