Schedule Export API access

Hi there,

I’d like to use the Freshdesk feature Reports > Schedule Export for generating reports every hour. I could see there are two ways of getting this done (i.e. By using Email or API). While using API, how can I access the data, since it throws me the below error?

{
  "access_denied": true
}

Am I missing something here?

Can you please guide me on this?

Thank you.

2 Likes

Hi Rajeswaran.
Just checking, did you get this error when you are accessing the URL along with the API key?
If not, can you try this command:

curl -v -u API_KEY:X -H "Content-Type: application/json" -X GET 'URL'
1 Like

Yes @tejakummarikuntla

2 Likes

Hi Rajeswaran,
are you using the Admin’s API Key who created the export? if not, do the role API Key has report export privilege?

I tried recreating the issue, if it’s the same person who created the export and using their API Key to fetch it’s working great.
If possible, could you share a bit details about the scenario?

Hi @tejakummarikuntla Now it’s working as expected. I tried creating and accessing with the same agent (With Admin access). I could get the data.

Thanks :slight_smile:

1 Like