DashboardSupportWelcome

👤 USER DOCS

Getting Started

Daily Operations

Shift Workspace & TasksPre-Shift SetupLine-Up CardsShift ReportsForms

Staff & Locations

Staff SchedulingManaging Locations

Oversight

Manager ReportsAnalyticsPre-Shift & Compliance

Incidents & Feedback

Incident ReportingAnonymous FeedbackMessages & Announcements

AI & Settings

AI ChatgearApp Settings

Administration

Dashboard & OnboardingAdmin

⚙️ DEVELOPER DOCS

Getting Started

Getting StartedDevelopmentDeployment Guide

Architecture

Architecture OverviewData FlowArchitecture Decision Records

Core Domain

Core DomainDatabase ReferenceLocations DomainAuth & RBACScheduling DomainReports DomainIncidents DomainNotifications DomainAudit Log & OptimizationDesign Audit Findings

Frontend

Frontend ArchitectureFormsLoading SkeletonsComponentsPWA & NotificationsimageScreenshots

API Reference

API Reference

Endpoints

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

Contributing

ContributingcodeCode Examples

Security

Security & Compliance
Danvas IconDanvas
Danvas IconDanvas

Cron API

Internal endpoints for scheduled operational tasks

The Cron API consists of headless endpoints triggered by Vercel Cron on a scheduled basis. These endpoints handle background tasks such as compliance monitoring, report reminders, and data aggregation.

Security

Endpoints are protected by a shared secret passed in the Authorization: Bearer <CRON_SECRET> header. The keep-alive endpoint is public but performs no sensitive operations.

Related

Architecture Overview

Compliance Domain

API Overview

Webhooks API

Lifecycle event handlers for Clerk and Svix

Contributing

Guidelines for contributing to the Danvas platform

On this page

SecurityRelated
GET
/cron/report-reminder

Authorization

cronSecret
AuthorizationBearer <token>

In: header

Response Body

text/plain

curl -X GET "https://example.com/cron/report-reminder"
Empty
GET
/cron/aggregate-heroes

Authorization

cronSecret
AuthorizationBearer <token>

In: header

Response Body

text/plain

curl -X GET "https://example.com/cron/aggregate-heroes"
GET
/cron/check-compliance

Authorization

cronSecret
AuthorizationBearer <token>

In: header

Response Body

text/plain

curl -X GET "https://example.com/cron/check-compliance"
GET
/cron/labor-variance

Authorization

cronSecret
AuthorizationBearer <token>

In: header

Response Body

text/plain

curl -X GET "https://example.com/cron/labor-variance"
GET
/cron/keep-alive

Response Body

text/plain

curl -X GET "https://example.com/cron/keep-alive"
"OK — 3 reminders sent"
"OK — MVP messages created for: John Doe"
"OK — nudged 5 staff, 2 managers"
"OK — 2 variance alert(s) sent"
"OK"

CRON_SECRET environment variable

CRON_SECRET environment variable

CRON_SECRET environment variable

CRON_SECRET environment variable