Skip to content

Get the time summary report

GET
/reports/time
Code sample: Shell / cURL
curl --request GET \
--url 'https://example.com/api/v1/reports/time?startDate=example&endDate=example&billable=all&groupBy=client' \
--header 'Authorization: Bearer <token>'

Returns rounded totals (total, billable, non-billable minutes and billable amount) for the filtered period. Each entry is clipped to the window and rounded on its own, so an entry that straddles the window start contributes only its in-window part — the same rule the order budget uses. truncated reports whether the fetch saw every matching entry. Requires the reports.view permission.

startDate
required
string
>= 1 characters
endDate
required
string
>= 1 characters
clientIds
string
orderIds
string
memberIds
string
teamIds

Comma-separated team IDs. Limits entries to members of those teams; combine with groupBy=team to read one team’s margin.

string

Comma-separated team IDs. Limits entries to members of those teams; combine with groupBy=team to read one team’s margin.

responsibleIds

Comma-separated workspace member IDs. Limits orders to those whose client or any linked project assigns one of these operational responsibles. Filtering by responsible does not widen the caller’s own access.

string
<= 10000 characters

Comma-separated workspace member IDs. Limits orders to those whose client or any linked project assigns one of these operational responsibles. Filtering by responsible does not widen the caller’s own access.

activityTypeIds
string
tagIds
string
billable
string
default: all
Allowed values: all billable non-billable
groupBy

Grouping for GET /reports/profitability rows. Accepted but ignored by every other endpoint sharing this query shape.

string
default: client
Allowed values: client order member team

Grouping for GET /reports/profitability rows. Accepted but ignored by every other endpoint sharing this query shape.

Aggregated time totals.

Media typeapplication/json
object
data
required

Aggregated time totals for the filtered period.

object
billableAmount

Billable amount in workspace currency, rounded to cents. Absent when the caller lacks invoices.view, which alone shows what the agency charges.

number
billableMinutes
required
integer
>= -9007199254740991 <= 9007199254740991
nonBillableMinutes
required
integer
>= -9007199254740991 <= 9007199254740991
totalMinutes
required
integer
>= -9007199254740991 <= 9007199254740991
truncated
required

True when the fetch hit the 500,000-entry cap, which makes every total beside it incomplete. Narrow the window or the filters and read it again rather than reporting these numbers as final.

boolean

Example generated

{
"data": {
"billableAmount": 1,
"billableMinutes": 1,
"nonBillableMinutes": 1,
"totalMinutes": 1,
"truncated": true
}
}

Validation error. Parse failures include field paths and expectations.

Media typeapplication/json

Validation error with safe field paths and expected values; submitted values are never returned.

object
error
required
object
code
required

Stable machine-readable error code.

string
issues
Array<object>
object
expected
required
string
message
required
string
path
required
Array<string | number>
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Missing the reports.view permission.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.