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_resultsobject-
dictionariesobject-
featuresobject-
fixed_daterangeboolean-
hide_amountsboolean-
input_paramsobject-
is_commenting_enabledboolean-
publicboolean-
report_namestring-
report_typestring-
saved_paramsobject-
summary_resultsobject-
weekly_resultsobject-
workspace_logostring-
detailed_results
NameTypeDescription
reportArray of object-
totalsobject-
report
NameTypeDescription
billableboolean-
billable_amount_in_centsinteger-
client_namestring-
currencystring-
descriptionstring-
emailstring-
hourly_rate_in_centsinteger-
project_colorstring-
project_hexstring-
project_idinteger-
project_namestring-
row_numberinteger-
tag_idsArray of integer-
tag_namesArray of string-
task_idinteger-
task_namestring-
time_entriesArray of object-
user_idinteger-
usernamestring-
time_entries
NameTypeDescription
atstring-
at_tzstringused by reports v2 proxy
idinteger-
secondsinteger-
startstring-
stopstring-
totals
NameTypeDescription
billable_amount_in_centsinteger-
graphArray of object-
labour_cost_in_centsinteger-
ratesArray of object-
resolutionstring-
secondsinteger-
tracked_daysinteger-
graph
NameTypeDescription
billable_amount_in_centsinteger-
by_rateobject-
labour_cost_in_centsinteger-
secondsinteger-
by_rate
rates
NameTypeDescription
billable_secondsinteger-
currencystring-
hourly_rate_in_centsinteger-
dictionaries
NameTypeDescription
clientsobject-
filtersobjectRemove it after FlexQ release.
projectsobject-
tagsobject-
tasksobject-
user_groupsobject-
usersobject-
clients
filters
NameTypeDescription
clientsobject-
projectsobject-
tagsobject-
tasksobject-
user_groupsobject-
usersobject-
clients
projects
tags
tasks
user_groups
users
projects
tags
tasks
user_groups
users
features
input_params
saved_params
summary_results
NameTypeDescription
reportobject-
totalsobject-
report
NameTypeDescription
groupsArray of Object-
totals
NameTypeDescription
billable_amount_in_centsinteger-
graphArray of object-
labour_cost_in_centsinteger-
ratesArray of object-
resolutionstring-
secondsinteger-
tracked_daysinteger-
graph
NameTypeDescription
billable_amount_in_centsinteger-
by_rateobject-
labour_cost_in_centsinteger-
secondsinteger-
by_rate
rates
NameTypeDescription
billable_secondsinteger-
currencystring-
hourly_rate_in_centsinteger-
weekly_results
NameTypeDescription
reportArray of object-
totalsobject-
report
NameTypeDescription
billable_amounts_in_centsstring-
billable_secondsstring-
client_namestring-
currencystring-
hourly_rate_in_centsintegerIn cents
planned_task_idinteger-
project_colorstring-
project_hex_colorstring-
project_idinteger-
project_namestring-
secondsstring-
user_idinteger-
user_namestring-
totals
NameTypeDescription
billable_amount_in_centsinteger-
graphArray of object-
labour_cost_in_centsinteger-
ratesArray of object-
resolutionstring-
secondsinteger-
tracked_daysinteger-
graph
NameTypeDescription
billable_amount_in_centsinteger-
by_rateobject-
labour_cost_in_centsinteger-
secondsinteger-
by_rate
rates
NameTypeDescription
billable_secondsinteger-
currencystring-
hourly_rate_in_centsinteger-

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.