Notifications
BailaYa sends automated notifications to students via email and optionally via WhatsApp.
Email
Email is sent through Resend with an SMTP fallback. Notifications are sent for:
- Booking confirmation (class, event, private lesson)
- Class cancellation
- Package purchase confirmation
- Password reset and account verification
WhatsApp
WhatsApp notifications use the Meta Cloud API. To enable:
- Set up a WhatsApp Business account and get a phone number ID and access token
- Go to Settings → Notifications → WhatsApp and enter your credentials
- Enable the WhatsApp toggle
When enabled, booking confirmations and reminders are sent via WhatsApp in addition to email.
Development
Set WHATSAPP_USE_MOCK=true in your .env to skip real WhatsApp messages during development and testing.
Notification preferences
Each studio can configure which event types trigger notifications and through which channels. Go to Settings → Notifications to adjust.