Danvas
Danvas
DashboardSupportWelcome

👤 USER DOCS

User Guides

Getting Started

Getting StartedDashboard & OnboardingApp Settings

Tutorials

Tutorial: Setting Up Shift Tasks & ClosersTutorial: Managing Incidents in the InboxTutorial: Tracking Compliance & Sync StatusTutorial: Operational Workflows with the AI AssistantTutorial: Building & Deploying Custom Checklists

Daily Operations (Staff)

Shift Workspace & TasksService Day SetupDaily Line-UpStaff Service Day ReportsForms

Communication & Chat

Messages & AnnouncementsUnified Operations InboxAI Assistant

Manager & Admin Guides

Daily Line-Up SetupStaff SchedulingManaging LocationsNPS and Guest FeedbackCouponsContacts and Guest HistoryManager CloseoutsDaily Line-Up & ComplianceAnalyticsIncident ReportingWhistleblower Concerns & FeedbackAdmin Tools

⚙️ DEVELOPER DOCS

Getting Started

Getting StartedDevelopmentDeployment Guide

Architecture

Architecture OverviewExplanation: AI Integration & Tenant SecurityExplanation: Dynamic Forms Engine DesignExplanation: Compliance Ledger DesignExplanation: Live Sync & Data FreshnessData FlowArchitecture Decision Records

Core Domain

Core DomainDatabase ReferenceLocations DomainAuth & RBACScheduling DomainReports DomainIncidents DomainUnified Operations InboxLive Sync Data FreshnessToast Sync PipelineNotifications DomainCoupons and Guest NPSAudit Log & Compliance ArchitectureDesign Audit FindingsAI Chat IntegrationAnalytics & Tips Integration

Frontend

Frontend ArchitectureFormsLoading SkeletonsComponentsPWA & Offline ShellScreenshots

API Reference

API Reference

Endpoints

POS Sales APIOptimization Data APISchedule Shifts APIEmployee Export APIReports APIIncidents APIAI Chat APIPush Notifications APIWebhooks APICron API

Contributing

ContributingCode Examples

Security

Security & Compliance

Release Notes

What's New

Schedule Shifts API

Imported schedule data from external systems

Deprecated upstream. This endpoint described the legacy analytics_api HTTP surface. Production schedule data is written by the sync-schedule-from-7shifts Vercel cron via @repo/sevenshifts into management_shifts. See Scheduling and ADR-0058.

Overview

This compatibility reference describes a legacy read-only schedule-shift view. It does not synchronize data, write schedules, create lineup assignments, or seed compliance rosters. Production writes come from the sync-schedule-from-7shifts Vercel cron; imported shifts are consumed as a read model by scheduling surfaces.

Endpoint

GET /api/schedule/{location_slug}

Authentication

Legacy: Required an ANALYTICS_API_KEY via the Authorization: Bearer header on the decommissioned analytics_api service. Production uses @repo/sevenshifts + Vercel cron.

Query Parameters

NameTypeDescription
location_slugstringLocation slug in the path
start_datedateStart date for the range, defaults to yesterday
end_datedateEnd date for the range, defaults to start_date + 6 days
employee_keystringOptional employee filter
departmentstringOptional department filter: FOH, BOH, or Other
daypartstringOptional daypart filter: Lunch, Dinner, or LateNight
include_draftbooleanInclude draft shifts, defaults to false
limitintegerMaximum shifts per page, defaults to 100
offsetintegerPagination offset, defaults to 0

Response

{
  "location_slug": "cobbsmchenry",
  "location_name": "D.C. Cobb's McHenry",
  "start_date": "2026-05-18",
  "end_date": "2026-05-24",
  "shifts": [
    {
      "shift_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "business_date": "2026-05-18",
      "employee_name": "Jane Doe",
      "employee_key": "abc123def456",
      "role": "Server",
      "department": "FOH",
      "daypart": "Dinner",
      "start_at": "2026-05-18T16:00:00-05:00",
      "end_at": "2026-05-18T23:00:00-05:00",
      "hours_worked": "7.0",
      "hourly_wage": "12.50",
      "is_draft": false
    }
  ],
  "total_count": 1,
  "limit": 100,
  "offset": 0,
  "generated_at": "2026-05-17T06:15:00Z"
}

Related

Staff Scheduling Guide

Scheduling Domain

API Overview

Optimization Data API

Labor optimization metrics and goals for schedule planning

Employee Export API

Employee data for import and bulk operations

On this page

OverviewEndpointAuthenticationQuery ParametersResponseRelated