Integrations
iCal Feeds
Subscribe to a personal calendar feed of approved leave requests
Overview
Each user gets a personal iCal feed URL that contains their approved leave requests. Subscribe to it from Google Calendar, Apple Calendar, or Outlook to see absences alongside your regular schedule.
The feed updates automatically — when a new leave request is approved, it appears in your calendar without any action.
Admin setup
Before users can generate feed URLs, an admin must set the ICAL_SECRET environment variable. This secret is used to generate secure, per-user URLs and must be at least 32 characters long.
Add to app/.env.local:
ICAL_SECRET=a-long-random-string
Generate a random value with:
openssl rand -hex 16
Warning: Changing
ICAL_SECRETinvalidates all existing feed URLs. Every user will need to re-copy their URL and update their calendar subscriptions.
Get your subscription URL
- Open Profile Settings in the Account section of the sidebar.
- On the Connected Services card, find Calendar Subscription with your personal iCal feed URL.
- Click Copy URL to copy it to your clipboard.
You can also click Subscribe on the Calendar page to copy the same URL. To choose what appears in your feed, click Customize what's in this feed.
The URL looks like:
https://your-domain.com/api/calendar/{userId}/{secret}.ics
Your personal iCal feed URL on the Connected Services card
Subscribe in Google Calendar
- Open Google Calendar.
- On the left sidebar, click the + next to "Other calendars".
- Select From URL.
- Paste the iCal feed URL.
- Click Add calendar.
Google Calendar syncs external feeds roughly every 12–24 hours. New leave requests may take a while to appear.
Tip: Google Calendar's sync interval is not configurable. If you need faster updates, use Apple Calendar or Outlook, which tend to refresh more frequently.
Subscribe in Apple Calendar
- Open Calendar on macOS.
- Go to File → New Calendar Subscription…
- Paste the iCal feed URL and click Subscribe.
- Set the auto-refresh interval (e.g. every hour) and click OK.
On iOS: go to Settings → Calendar → Accounts → Add Account → Other → Add Subscribed Calendar and paste the URL.
Subscribe in Outlook
- Open Outlook on the web.
- Click Add calendar in the sidebar.
- Select Subscribe from web.
- Paste the iCal feed URL, give it a name, and click Import.
Regenerate your URL
If you suspect your feed URL has been shared or compromised, you can regenerate it:
- Open Profile Settings → Connected Services.
- Under Calendar Subscription, click Regenerate and confirm with Regenerate URL.
- Copy the new URL and update your calendar subscriptions.
The old URL stops working immediately.
Warning: After regenerating, you must update the URL in every calendar app where you subscribed. The old URL will return an error.