Toggl Saved Reports API is not working with newly created reports

For the past few months, I have been utilizing Toggl’s saved reports API to view time tracking details for our team. I wrote a small Java application that calls the API and generates an HTML table with all the relevant time tracking details for our team. Saved Reports API doc: https://engineering.toggl.com/docs/reports/saved_reports/

Recently, the reporting UI has changed. While the UI change in itself is not an issue, any API calls I make to Toggl to get data for the new reports fail. They result in “404 - report token was not found” error.

E.g. Here are the tokens of two of my summary reports. One was created before this UI update, one was after. They both have the same permissions. However, API calls for the first one succeed, and API calls for the second one fail.

Old report token (report API succeeds): 9466220d40a3dcdb6d2b1d2d03ee05d4
New report token (report API fails): e0b3eb2b-ef45-4798-8768-3a1ccd36762a

Any idea why this is happening? I thought maybe I needed to remove hyphens from the second report ID string, but that did not work either.

Our organization ID is “2212025” and workspace ID is “2404118”.

Thanks.

Was this ever resolved? Having the same issue

Hi Zoea.

The Toggl dev team had updated their reporting API without updating the documentation.

Here is what they sent me:

The new API call to return the data should be:

GET https://api.track.toggl.com/analytics/api/shared/dashboards/{token}?chart_id={id}

** Inform the chart_id as a query param **To obtain charts (fragments in a report), invoke this one:

GET https://api.track.toggl.com/analytics/api/shared/{token}

There is a totally new schema though, so you will have to look at above updated APIs and adapt your application code accordingly.

Thank you SO much! I was going insane trying to figure this out. Works for me now!

Of course, no problem!