Manage tickets, respond to customers, and track support activity.
Imports 2026 tickets from Zendesk. After the first import, only new or changed tickets are synced. Laptop/browser off: use an external cron (e.g. cron-job.org) every 20 seconds → GET https://your-domain.com/api/zendesk/cron-sync with header Authorization: Bearer YOUR_CRON_SECRET (same as env CRON_SECRET; also set CRON_SYNC_BASE_URL if needed). Browser open (this page loaded): every 20s this page calls /api/zendesk/sync: search upserts new/changed ticket rows into Supabase; batch fetches thread messages from Zendesk and saves the comments JSON to the same table—then the list reloads from the DB silently (no full-page loading). Set env NEXT_PUBLIC_ZENDESK_CLIENT_DB_ONLY=1 if you only want DB reads here (e.g. cron already syncs Zendesk). This keeps writing to the database every 20s even if this tab is in the background (another tab focused)—unless you set NEXT_PUBLIC_ZENDESK_PAUSE_SYNC_WHEN_TAB_HIDDEN=1. Sync tickets (2026) runs the same incremental sync plus order-ID RPC, then updates the list immediately (silent merge, like the 20s timer).
0 filtered · 0 loaded · 0 total