Skip to main content
Question

Getting access denied while creating ticket


shekhar.das
Apprentice
Forum|alt.badge.img

Hi Team,

 

I have setup a trial version of it and was trying to create a ticket using API my API key calling endpoint POST “api/v2/tickets”.

 

It throws below error:

{

    "code": "access_denied",

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

}

 

Although i am able to get the tickets using the same API key GET  “api/v2/tickets”.

 

Please help me what permission should i have to create the ticket? I am the Admin of the instance i am using.

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

7 replies

Preethi S
Community Debut
Forum|alt.badge.img+3
  • Community Debut
  • 29 replies
  • April 16, 2023

Hi @shekhar.das

 

Thank you for reaching out! 

To start working on modules like tickets, tasks, changes etc., please add an “Agent role” to your profile. Admin role provides privileges only to manage settings of the account and not data within. 

 

Thanks! :) 


shekhar.das
Apprentice
Forum|alt.badge.img
  • Author
  • Apprentice
  • 2 replies
  • April 17, 2023

Hi Preethi,

 

Thank you for your response, I do not have option to add role. Please see below.

 

Regards,

Shekhar Das


Preethi S
Community Debut
Forum|alt.badge.img+3
  • Community Debut
  • 29 replies
  • April 17, 2023

Hi @shekhar.das 

 

Could you please check the workspace you have been added to? If not, please add yourself to a workspace and try again.

 

Thanks :) 


Surbhi
Community Debut
Forum|alt.badge.img+3
  • Community Debut
  • 18 replies
  • April 21, 2023

Hi @shekhar.das 

Can you please share a screenshot of what API settings you are configuring in the web request node. This will help us to investigate better.

Thanks !


rtiglao
Community Debut
  • Community Debut
  • 1 reply
  • November 28, 2023

Did we ever figure out the issue here? Im having the same problem. 


Forum|alt.badge.img+5
  • Community Debut
  • 87 replies
  • December 2, 2023

Hello @rtiglao 

Hope you are well,

This is an access-based issue. You can check if your Profile/API Key has the access to modules like tickets, tasks, changes etc.,(depending upon the API call being made). If you could share your endpoint URL(stripping your domain) and payload you’re using, We can probably check and let you know what’s going wrong or You can also reach out to support@freshservice.com to get guidance on the issue you’re facing and we can probably take and look and help you out.

Cheers and Happy Holidays!😊


Rimazfar
Community Debut
  • Community Debut
  • 2 replies
  • December 28, 2023

Hi there,

I can confirm that by adding the “IT agent” role to a user and generating the API key from that profile resolved the access issue for me. 

Best regards,
Rimaz Farouk


Reply