TeamSync API v1

Workforce scheduling API

REST API for shifts, staff, organizations, punch approvals, reservations, and more. The web app runs on a separate frontend — use this host for programmatic access and health checks.

Base path
/api/v1
Health
GET /health
Status
Operational

Endpoints

All routes below are prefixed with /api/v1. Authentication uses session cookies from the web app.

Auth

/api/v1/auth/*

Sessions, login, organizations, password reset (better-auth)

Shifts

/api/v1/shifts

Shift CRUD, requests, punch-in/out, approvals

Users

/api/v1/users

Staff listing, create, update, org membership

Organizations

/api/v1/organizations

List, create, and switch active organization

Schedule templates

/api/v1/schedule-templates

Reusable week/day schedule templates

Reservations

/api/v1/reservation-events

Customer reservation events

Buying list

/api/v1/buyingList

Shared shopping / buying items

Notifications

/api/v1/notifications

Web push subscriptions and sends

AI

/api/v1/ai

Schedule assistant chat and tools

Calendar

/api/v1/calendar

iCal feed for user shifts (subscription URL)

Billing

/api/v1/billing

Workspace plan, Polar checkout, webhook at /api/v1/billing/polar/webhook

Lead

/api/v1/lead

Landing page lead capture (POST)

Not the main app. Staff should sign in at https://app.teamsync.cc. Browser clients normally call /api/v1 on the frontend domain; requests are proxied here internally.