Back to Docs

Reference

Edge Function Catalog

All 26+ Supabase Edge Functions: what they do, how they're triggered, and their auth requirements.

Last updated March 19, 2026

Edge Function Catalog

All edge functions run on Deno and are deployed via npx supabase functions deploy <name> --no-verify-jwt.

User-Triggered Functions

Function Trigger Auth Description
ai-chat POST Clerk JWT AI Barista chat (Gemini)
broadcast-promo POST Clerk JWT Send merchant promo to followers
coffee-scan POST Clerk JWT OCR + AI coffee bag analysis
merchant-onboard POST Service role Create merchant profile
places-proxy POST Clerk JWT Google Places API proxy
send-review-reply POST Service role Email review reply to user
moderate-photo POST Service role Gemini photo moderation
merchant-campaign POST Service role Send push campaign to customers
booking-reminder Cron Service role Daily booking reminder push

Cron Functions (pg_cron)

Function Schedule Description
morning-coffee-notification Daily 11:00 UTC Personalized morning coffee push
weekly-checkin-summary Monday 09:00 UTC Weekly activity summary email
brunch-weekend-notification Saturday 09:00 UTC Weekend brunch suggestions
reengagement-notification Tuesday 10:00 UTC Re-engage inactive users
streak-at-risk-notification Daily 20:00 UTC Streak maintenance reminders
coffee-news-agent Sunday 20:00 UTC AI-curated coffee news digest
booking-reminder Daily 10:00 UTC Tomorrow's booking confirmations

Email Functions

Function Description
send-merchant-welcome Welcome email after onboarding
send-waitlist-blast Batch waitlist notification
merchant-trial-reminder Trial expiration warning

All functions use the shared _shared/cors.ts for CORS and _shared/auth.ts for authentication.