---
title: "Aggregate time-entry metrics"
method: GET
path: "/time-entries/summary"
tags: ["TimeEntries"]
---

# Aggregate time-entry metrics

`GET /time-entries/summary`

## Request

- Base URL: `https://app.buildworkpro.com/api/v1`
- URL: `https://app.buildworkpro.com/api/v1/time-entries/summary`
- Auth: HTTP bearer

Returns entry_count, hours_total, cost_total, plus breakdowns by user and by project. Date filters apply to the work date (time_entries.date), NOT createdAt.

## Query parameters

- `dateFrom` string: First work day to include (YYYY-MM-DD, inclusive). A datetime is read as the day it names.
- `dateTo` string: Last work day to include (YYYY-MM-DD, inclusive). A datetime is read as the day it names.
- `userId` integer, nullable
- `projectId` integer, nullable

## Response `200`

Summary

- object
  - `data` object, required
    - `totals` object, required
      - `entry_count` integer, required
      - `hours_total` string, required
      - `cost_total` string, required
    - `by_user` object[], required
      - `userId` integer, required
      - `firstName` string, nullable, required
      - `lastName` string, nullable, required
      - `hours_total` string, required
      - `cost_total` string, required
    - `by_project` object[], required
      - `projectId` integer, required
      - `projectName` string, nullable, required
      - `hours_total` string, required
      - `cost_total` string, required
  - `meta` ResponseMeta, required
    - `request_id` string: Server-generated request identifier
    - `pagination` PaginationMeta
      - `cursor` string, nullable, required: Opaque cursor for the next page; null when no more results
      - `has_more` boolean, required: Whether more pages are available after this one
      - `count` integer, required: Items in this page

## Other responses

- `403`: Error

---

[API](https://skmtc.dev/buildworkpro/apis/buildworkpro-api.md) · [All operations](https://skmtc.dev/buildworkpro/apis/buildworkpro-api/llms.txt) · [OpenAPI document](https://skmtc.dev/buildworkpro/apis/buildworkpro-api/revisions/441cf40012f7?raw)
