Skip to main content

Schedule Insights

Returns per-day staffing totals and shift counts for a given week. Use this to get a quick overview of coverage levels.

Endpointโ€‹

GET /v1/staff/schedule/insights

Authenticationโ€‹

Requires an API key with the staff:read scope.

Query Parametersโ€‹

ParameterTypeDefaultDescription
week_startstringCurrent week MondayWeek to analyse (YYYY-MM-DD, must be a Monday)

Responseโ€‹

Success (200 OK)โ€‹

{
"data": {
"week_start": "2026-03-30",
"days": [
{
"date": "2026-03-30",
"shift_count": 4,
"total_hours": 32,
"staff_ids": [2, 3, 5, 7]
},
{
"date": "2026-03-31",
"shift_count": 3,
"total_hours": 24,
"staff_ids": [2, 5, 7]
}
],
"totals": {
"shift_count": 22,
"total_hours": 176
}
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2026-04-01T09:00:00+00:00"
}
}

Errorsโ€‹

StatusCodeDescription
401authentication_requiredNo API key provided
401invalid_api_keyInvalid API key
403insufficient_scopeAPI key lacks staff:read scope
422validation_errorInvalid week_start format

Example Requestโ€‹

curl -X GET "https://app.equipdash.com/api/v1/staff/schedule/insights?week_start=2026-03-30" \
-H "Authorization: Bearer eqd_live_abc123xyz789..."