Read authorized client-hours filters
curl --request GET \ --url 'https://example.com/api/v1/reports/client-hours/options?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 the client’s orders and projects.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Authorized filter options.
object
object
object
object
object
Example generated
{ "data": { "client": { "id": "example", "name": "example" }, "limitedOrderOptions": true, "orders": [ { "code": "example", "id": "example", "name": "example" } ], "projects": [ { "id": "example", "name": "example" } ] }}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 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" }}Scope limit exceeded.
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