Skip to content

Read the internal client-hours review

GET
/reports/client-hours/review
Code sample: Shell / cURL
curl --request GET \
--url 'https://example.com/api/v1/reports/client-hours/review?clientId=example' \
--header 'Authorization: Bearer <token>'

Requires staff access to a client within the actor’s scope (clients.view_all or an assignment). Viewing needs reports.view or reports.export; exporting needs reports.export — the client’s Manager may always view and export regardless of report permissions. Returns only internal review findings for the same fresh snapshot; the client-facing report and workbook remain separate. A missing startDate or endDate follows the selected orders’ default report range: one order opens on its order type’s report range (by default, Hour block, Sprint, Tokens and Time & Materials from the order start to today, or to its end date once passed, and Subscription and Non billable on the current period); several orders that all run from their start open from the earliest start; no order or mixed types open on the current month. A date sent always wins, and the response’s startDate and endDate are the days covered.

clientId
required
string
>= 1 characters
startDate

First day, YYYY-MM-DD in the workspace timezone.

string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/

First day, YYYY-MM-DD in the workspace timezone.

endDate

Last day, YYYY-MM-DD in the workspace timezone.

string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/

Last day, YYYY-MM-DD in the workspace timezone.

projectId
string
>= 1 characters
orderIds
string

Internal review only.

Media typeapplication/json
object
data
required
object
excludedNonBillableEntries
required
integer
<= 9007199254740991
excludedNonBillableHours
required
number
excludedProjectEntries
required
integer
<= 9007199254740991
issueCount
required
integer
<= 9007199254740991
issues
required
Array<object>
object
code
required
string
Allowed values: MISSING_DESCRIPTION MISSING_CODE LEGACY_RELEASE PROJECT_ATTRIBUTION_UNKNOWN LANGUAGE_MISMATCH UNPRINTABLE_DESCRIPTION SETTLEMENT_EXCEEDS_OVERAGE EXTRA_BLOCK_WITHOUT_INVOICE PERIOD_WITHOUT_INVOICE
entryId
string
message
required
string
orderId
required
string
periodStart
string | null
status
required
string
Allowed values: ready needs_review

Example

{
"data": {
"issues": [
{
"code": "MISSING_DESCRIPTION"
}
],
"status": "ready"
}
}

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"
}
}

Staff access is required, the client must be in scope, and viewing needs reports.view or reports.export (exporting needs reports.export) unless the caller manages the client.

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"
}
}

Client or filter not found.

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"
}
}

Invalid or oversized report scope.

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.