Aggregate time-entry metrics
const url = 'https://app.buildworkpro.com/api/v1/time-entries/summary';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.buildworkpro.com/api/v1/time-entries/summary \ --header 'Authorization: Bearer <token>'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.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “ Query Parameters ”First work day to include (YYYY-MM-DD, inclusive). A datetime is read as the day it names.
First work day to include (YYYY-MM-DD, inclusive). A datetime is read as the day it names.
Last work day to include (YYYY-MM-DD, inclusive). A datetime is read as the day it names.
Last work day to include (YYYY-MM-DD, inclusive). A datetime is read as the day it names.
Responses
Section titled “ Responses ”Summary
object
object
object
object
object
object
Server-generated request identifier
object
Opaque cursor for the next page; null when no more results
Whether more pages are available after this one
Items in this page
Example generated
{ "data": { "totals": { "entry_count": 1, "hours_total": "example", "cost_total": "example" }, "by_user": [ { "userId": 1, "firstName": "example", "lastName": "example", "hours_total": "example", "cost_total": "example" } ], "by_project": [ { "projectId": 1, "projectName": "example", "hours_total": "example", "cost_total": "example" } ] }, "meta": { "request_id": "example", "pagination": { "cursor": "example", "has_more": true, "count": 1 } }}Error
object
URL identifying the problem type
Short human-readable summary
HTTP status code
Human-readable explanation
Server-generated request identifier
Validation error array (422 only)
object
Field path that failed validation
Validation error code
Human-readable validation message
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "request_id": "example", "errors": [ { "field": "example", "code": "example", "message": "example" } ]}