Read a client-safe hours snapshot
curl --request GET \ --url 'https://example.com/api/v1/reports/client-hours?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. Internal review, staff identities, costs and private evidence are omitted. Running timers are excluded. Snapshot includes an explicit cutoff. 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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”First day, YYYY-MM-DD in the workspace timezone.
First day, YYYY-MM-DD in the workspace timezone.
Last day, YYYY-MM-DD in the workspace timezone.
Last day, YYYY-MM-DD in the workspace timezone.
Responses
Section titled “Responses”Public report only.
object
object
object
object
object
The balance lines added up: order and extra hours, less carried overage and hours worked, plus the overage settled in the period (releasedOverageHours).
object
The earlier extra blocks and returns the hours carried into the period come from, oldest first, each with the share still unused. Older blocks are taken to be used first.
object
The workspace-local day (YYYY-MM-DD) of the order’s latest audit still in force; null when the order has never been audited.
object
object
Example
{ "data": { "summaries": [ { "carriedExtraBlocks": [ { "kind": "EXTRA_BLOCK" } ], "extraBlocks": [ { "kind": "EXTRA_BLOCK" } ] } ] }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
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.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Client or filter not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Invalid or oversized report scope.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC