Get the profitability report
curl --request GET \ --url 'https://example.com/api/v1/reports/profitability?startDate=example&endDate=example&billable=all&groupBy=client' \ --header 'Authorization: Bearer <token>'Returns revenue, cost, profit, and margin grouped by client, order, member, or team — set with groupBy (defaults to client). Grouping by team attributes revenue to every team its member belongs to, bucketing members with no team under a ‘No team’ row; cost for a team row is not entries-driven like the other groupings — it is the cost of every staff member on the roster, day by day at the cost valid each day and only from their hire date (a deactivated member counts up to the day before their deactivation, so a past period keeps their cost), whether or not they logged any hours, so a lead who mostly directs the team still counts toward its cost. Only the date, client, order, member, and groupBy filters apply — the remaining query filters are accepted but ignored. meta.truncated reports whether the fetch saw every matching entry; meta.uncostedMinutes, when present, is minutes excluded from cost because their member had no resolvable cost. Requires the reports.costs permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Comma-separated team IDs. Limits entries to members of those teams; combine with groupBy=team to read one team’s margin.
Comma-separated team IDs. Limits entries to members of those teams; combine with groupBy=team to read one team’s margin.
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.
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.
Grouping for GET /reports/profitability rows. Accepted but ignored by every other endpoint sharing this query shape.
Grouping for GET /reports/profitability rows. Accepted but ignored by every other endpoint sharing this query shape.
Responses
Section titled “Responses”Profitability rows grouped by the requested dimension, with the truncation flag.
object
Revenue, cost, profit, and margin for one group in the filtered period.
object
Roster members with at least one day in the window, on or after their hire date, with no cost set; those days count as zero in cost. Populated for team rows only.
object
Identifier of the client, order, member, or team the row is grouped by.
Whether the report saw every entry the filters select.
object
True when the fetch hit the 500,000-entry cap and the rows beside it are incomplete.
Minutes excluded from cost because their member had no resolvable cost.
Example generated
{ "data": [ { "cost": 1, "costIncompleteMembers": [ { "id": "example", "name": "example" } ], "id": "example", "marginPercent": 1, "name": "example", "profit": 1, "revenue": 1, "totalMinutes": 1 } ], "meta": { "truncated": true, "uncostedMinutes": 1 }}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" }}Missing the reports.costs permission.
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