SuprSync
Developer Portal
Sign In

Hours Worked

GET /external/v1/hours

Returns daily aggregated hours worked across all staff for a given date range.

Query Parameters

ParameterTypeRequiredDescription
fromstringYesStart date (ISO 8601 format, e.g. 2026-01-01)
tostringYesEnd date (ISO 8601 format, e.g. 2026-01-31)

Response

Returns an array of objects, one per day in the range.

[
  {
    "date": "2026-01-01",
    "hours": 48.5
  },
  {
    "date": "2026-01-02",
    "hours": 52.0
  }
]

Response Fields

FieldTypeDescription
datestringDate in YYYY-MM-DD format
hoursnumberTotal hours worked across all staff that day

Example

curl -X GET "https://api.suprsync.com/external/v1/hours?from=2026-01-01&to=2026-01-31" \
  -H "x-api-key: api_your_client_id" \
  -H "x-api-secret: sec_your_client_secret"

Notes

  • Hours are calculated from confirmed shifts with clock-in and clock-out times.
  • Days with no recorded hours return 0.
  • The calculation uses the minimum of actual clocked time and scheduled slot duration.