Skip to main content

Saved reports

POST Load the previously saved report​

https://api.track.toggl.com/reports/api/v3/shared/{report_token}

Returns the previously saved report.

Authentication

A public report is accessible by anyone, a private one is only accessible by the report's owner or workspace admin. If the criteria aren't met it returns 403 status code.

Parameters

The report can be executed without parameters, and in this case the saved or default parameters will be used.

curl -X POST https://api.track.toggl.com/reports/api/v3/shared/{report_token} \
-H "Content-Type: application/json" \
-u <email>:<password>

Response​

200​

Returns report information
nametypedescription
detailed_results
nametypedescription
reportArray of detailed.GroupedTimeEntry-
totalstotals.ReportData-
-
dictionaries
nametypedescription
clientsdictionary.GeneralDictionary-
filtersdictionary.ReportDictionariesDataRemove it after FlexQ release.
projectsdictionary.ProjectDictionary-
tagsdictionary.GeneralDictionary-
tasksdictionary.TaskDictionary-
user_groupsdictionary.GeneralDictionary-
usersdictionary.UserDictionary-
-
features
nametypedescription
additionalPropertiesobject-
-
fixed_daterangeboolean-
hide_amountsboolean-
input_params
nametypedescription
additionalPropertiesobject-
-
publicboolean-
report_namestring-
report_typestring-
saved_params
nametypedescription
additionalPropertiesobject-
-
summary_results
nametypedescription
reportsummary.ReportData-
totalstotals.ReportData-
-
weekly_results
nametypedescription
reportArray of weekly.DataRow-
totalstotals.ReportData-
-
workspace_logostring-

400​

Possible error messages:

* report_type does not exist in params
* The report period is not supported

401​

Possible error messages:

* Unable to extract authentication data
* Incorrect username and/or password

403​

Invalid token

404​

Not found

500​

report is too big to be exported

POST Export CSV for saved report​

https://api.track.toggl.com/reports/api/v3/shared/{report_token}.csv

Downloads a previously saved report in csv.

Authentication

A public report is accessible by anyone, a private one is only accessible by the report's owner or workspace admin. If the criteria aren't met it returns 403 status code.

Parameters

The report can be executed without parameters, and in this case the saved or default parameters will be used.

curl -X POST https://api.track.toggl.com/reports/api/v3/shared/{report_token}.csv \
-H "Content-Type: application/json" \
-u <email>:<password>

Response​

200​

Returns report information in csv form

400​

Possible error messages:

* report_type does not exist in params
* The report period is not supported

401​

Possible error messages:

* Unable to extract authentication data
* Incorrect username and/or password

403​

Possible error messages:

* Invalid token
* Workspace was not found or the report's owner is no longer active on it

404​

Not found

500​

parameter \`since\` is missing

POST Export XSLX saved report​

https://api.track.toggl.com/reports/api/v3/shared/{report_token}.xlsx

Downloads a previously saved report in xlsx.

Authentication

A public report is accessible by anyone, a private one is only accessible by the report's owner or workspace admin. If the criteria aren't met it returns 403 status code.

Parameters

The report can be executed without parameters, and in this case the saved or default parameters will be used.

curl -X POST https://api.track.toggl.com/reports/api/v3/shared/{report_token}.xlsx \
-H "Content-Type: application/json" \
-u <email>:<password>

Response​

200​

Returns report information in xlsx form

400​

Possible error messages:

* report_type does not exist in params
* The report period is not supported

401​

Possible error messages:

* Unable to extract authentication data
* Incorrect username and/or password

403​

Possible error messages:

* Invalid token
* Workspace was not found or the report's owner is no longer active on it

404​

Not found

500​

parameter \`since\` is missing

POST Export saved report in pdf format​

https://api.track.toggl.com/reports/api/v3/shared/{report_token}/pdf

Authentication

A public report is accessible by anyone, a private one is only accessible by the report's owner or workspace admin. If the criteria aren't met it returns 403 status code.

Parameters

The report can be executed without parameters, and in this case the saved or default parameters will be used.

curl -X POST https://api.track.toggl.com/reports/api/v3/shared/{report_token}/pdf \
-H "Content-Type: application/json" \
-u <email>:<password>

Response​

200​

Returns report information in pdf form

400​

Possible error messages:

* report_type does not exist in params
* The report period is not supported

401​

Possible error messages:

* Unable to extract authentication data
* Incorrect username and/or password

403​

Possible error messages:

* Invalid token
* Workspace was not found or the report's owner is no longer active on it

404​

Not found

500​

parameter \`since\` is missing
© 2024 Toggl. All rights reserved.