Schedule Shifts API
Imported schedule data from external systems
Overview
The Schedule Shifts API allows for the synchronization of shift assignments from external systems (like 7-Shifts) into Danvas. This data is used to populate the visual schedule builder and generate compliance rosters.
Endpoint
GET /api/schedule/{location_slug}
Authentication
Requires an ANALYTICS_API_KEY via the Authorization: Bearer header.
Query Parameters
| Name | Type | Description |
|---|---|---|
location_slug | string | Location slug in the path |
start_date | date | Start date for the range, defaults to yesterday |
end_date | date | End date for the range, defaults to start_date + 6 days |
employee_key | string | Optional employee filter |
department | string | Optional department filter: FOH, BOH, or Other |
daypart | string | Optional daypart filter: Lunch, Dinner, or LateNight |
include_draft | boolean | Include draft shifts, defaults to false |
limit | integer | Maximum shifts per page, defaults to 100 |
offset | integer | Pagination offset, defaults to 0 |
Response