GET/time/total.json
Get Total Time across an Account
Query Params
- Name
fromDate
- Type
- string
- Description
string (YYYYMMDD) - The start date to retrieve from
- Name
fromTime
- Type
- string
- Description
string (HH:MM) - The start time only if fromdate is passed
- Name
toDate
- Type
- string
- Description
string (YYYYMMDD) - The end date to retrieve to
- Name
toTime
- Type
- string
- Description
string (HH:MM) - The end time only if todate is passed
- Name
userId
- Type
- integer
- Description
Return time logs for a specific user only
- Name
projectType
- Type
- string
- Description
string (all, active, archived) - Filter the time entries to those in Active projects, Archived projects or All projects.
Request Examples
Example Request
GET
/time/total.jsoncurl --request GET \ --url https://{site_name}.teamwork.com/stats.json
Responses
- Code
- 200
- Type
- object
- Schema
- Description
- 200 Response
200 Response
application/json
{
"STATUS": "OK",
"time-totals": {
"total-mins-sum": "25",
"non-billed-mins-sum": "25",
"non-billable-hours-sum": "0.42",
"total-hours-sum": "0.42",
"billed-mins-sum": "0",
"billed-hours-sum": "0.00",
"billable-hours-sum": "0.42",
"non-billable-mins-sum": "25",
"non-billed-hours-sum": "0.42",
"billable-mins-sum": "25"
}
}