reports
Summarize tracked time
Maximum range: 366 days; defaults to daily buckets with no grouping. Tag groups are not additive.
Request body
Required
application/json
Type: object
| Field | Type | Required | Description and constraints |
|---|---|---|---|
| fromDate | string | No | Inclusive filter start date {"format":"date"} |
| toDateExclusive | string | No | Exclusive filter end date {"format":"date"} |
| from | string | Yes | Inclusive start timestamp; provide with to {"format":"date-time"} |
| to | string | Yes | Exclusive end timestamp; provide with from {"format":"date-time"} |
| state | string | No | Entry, job or operation state; meaning depends on the endpoint {"enum":["running","stopped","invalid"]} |
| projectIds | array<string> | No | Project IDs; comma-separated in GET, array in POST {"minItems":1,"maxItems":100} |
| projectIds[] | string | No | {"minLength":1,"maxLength":512} |
| tagIds | array<string> | No | Tag IDs; comma-separated GET filter, array in bodies {"minItems":1,"maxItems":100} |
| tagIds[] | string | No | {"minLength":1,"maxLength":512} |
| tagMatch | string | No | Tag matching: any or all {"enum":["any","all"]} |
| noProject | boolean | No | Match entries without a project |
| noTags | boolean | No | Match entries without tags |
| includeDescendants | boolean | No | Include descendant tags when filtering |
| archived | string | No | Archive filter: active, only or all {"enum":["active","only","all"]} |
| match | string | No | Time matching: overlaps or startsWithin {"enum":["overlaps","startsWithin"]} |
| text | string | No | Search text; POST avoids putting it in URLs {"maxLength":500} |
| limit | integer | No | Page size; default 100, maximum 500 {"minimum":1,"maximum":500} |
| cursor | string | No | Opaque cursor; return unchanged, do not parse {"maxLength":8192} |
| timeZone | string | Yes | IANA time zone, for example Asia/Shanghai {"maxLength":128} |
| period | string | No | Report interval: day, week or month {"enum":["day","week","month"],"default":"day"} |
| groupBy | string | No | Grouping: none, project or tag {"enum":["none","project","tag"],"default":"none"} |
| includeRunning | boolean | No | Include running timers in reports |
| includeAncestors | boolean | No | Include ancestor tags in reports |
| weekStartsOn | string | No | First day of the week; default monday {"enum":["monday","sunday"]} |
Complete JSON Schema
Request example
Replace path and request parameters with actual values. For requests with a body, save it as request.json using the schema above.
Responses
200
Successful response; status depends on the operation result.
application/json
Type: object
| Field | Type | Required | Description and constraints |
|---|---|---|---|
| totalDurationSeconds | number | Yes | Deduplicated total duration in seconds |
| totalEntryCount | number | Yes | Deduplicated total entry count |
| buckets | array<object> | Yes | Date and group buckets |
| buckets[] | object | No | |
| buckets[].date | string | Yes | Date in the report time zone |
| buckets[].groupId | string | null | Yes | Group resource ID, or null |
| buckets[].groupId (anyOf 1) | string | No | |
| buckets[].groupId (anyOf 2) | null | No | |
| buckets[].durationSeconds | number | Yes | Duration in seconds; may be fractional |
| buckets[].entryCount | number | Yes | Number of entries |
| evaluatedAt | string | Yes | Server evaluation timestamp |
| excludedInvalidCount | number | Yes | Number of invalid entries excluded |
| groupingIsAdditive | boolean | Yes | Whether groups can be added without double counting |
Complete JSON Schema
400, 401, 403, 404, 413, 422, 429, 500, 503
Error response; branch on code.
application/json
Type: object
| Field | Type | Required | Description and constraints |
|---|---|---|---|
| code | string | Yes | Machine-readable error code |
| message | string | No | Error message; use code for program logic |
| requestId | string | No | Request trace identifier |
| operationId | string | No | Request receipt identifier; no status polling is needed |