Skip to content

Hours worked

Calculates the hours the user is expected to work over a date range. Optionally restrict to specific templates. Hours are clamped to the range edges, split-shift gaps are excluded, and all-day templates are ignored.

GET
/v1/reports/hours-worked
curl --request GET \
--url 'https://api.shiftsync.app/v1/reports/hours-worked?startDate=2026-04-15T12%3A00%3A00Z&endDate=2026-04-15T12%3A00%3A00Z' \
--header 'Authorization: Bearer <token>'
startDate
required
string format: date-time
endDate
required
string format: date-time
templateId
string

Hours worked in the range

Media typeapplication/json
object
item
required
object
totalHours
required
number
shiftCount
required
integer
>= -9007199254740991 <= 9007199254740991
Example
{
"item": {
"totalHours": 0,
"shiftCount": 0
}
}