Skip to content

iCal Subscriptions

iCal subscriptions let you import events from external calendars (Google Calendar, Outlook, etc.) into Chronary. This means your agents’ availability queries can account for events from human calendars, so agents can avoid scheduling over them.

  1. You provide a public or authenticated .ics feed URL from an external calendar
  2. Chronary periodically syncs events from that feed into a target calendar
  3. Imported events appear alongside native events and block availability
  4. Imported events are read-only — they can’t be edited or deleted via the API
Terminal window
curl -X POST https://api.chronary.ai/v1/agents/agt_a1b2c3d4/ical-subscriptions \
-H "Authorization: Bearer chr_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"calendar_id": "cal_x1y2z3",
"url": "https://calendar.google.com/calendar/ical/user%40gmail.com/basic.ics",
"label": "Alex'\''s Google Calendar"
}'
FieldTypeRequiredDescription
calendar_idstringYesTarget calendar to import events into
urlstringYesHTTPS URL of the .ics feed
labelstringNoHuman-readable label (1–255 characters)
Terminal window
curl "https://api.chronary.ai/v1/agents/agt_a1b2c3d4/ical-subscriptions?status=active" \
-H "Authorization: Bearer chr_sk_your_key_here"

Filter by status: active, error, or paused.

Terminal window
curl https://api.chronary.ai/v1/ical-subscriptions/ics_a1b2c3 \
-H "Authorization: Bearer chr_sk_your_key_here"

Change the label or URL:

Terminal window
curl -X PATCH https://api.chronary.ai/v1/ical-subscriptions/ics_a1b2c3 \
-H "Authorization: Bearer chr_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{ "label": "Alex'\''s Work Calendar" }'

Force an immediate sync instead of waiting for the next scheduled cycle:

Terminal window
curl -X POST https://api.chronary.ai/v1/ical-subscriptions/ics_a1b2c3/sync \
-H "Authorization: Bearer chr_sk_your_key_here"

Returns 202 Accepted — the sync runs asynchronously.

Terminal window
curl -X DELETE https://api.chronary.ai/v1/ical-subscriptions/ics_a1b2c3 \
-H "Authorization: Bearer chr_sk_your_key_here"

Returns 204 No Content. Previously imported events remain in the calendar.

StatusMeaning
activeSyncing normally
errorLast sync failed (URL unreachable, invalid iCal, etc.)
pausedManually paused

Google Calendar: Settings > Calendar > “Secret address in iCal format”

Outlook/Office 365: Calendar settings > Shared calendars > Publish a calendar > ICS link

Apple iCloud: Calendar sharing > Public Calendar > copy the URL

Events imported via iCal subscriptions:

  • Have source: "external_ical" in the event data
  • Are read-only — update/delete returns 403 Forbidden
  • Block availability just like native events
  • Are updated on each sync cycle (changed events are updated, deleted events are removed)

Times in the feed are converted to UTC using the zone the feed declares:

  • A TZID on a time (for example DTSTART;TZID=America/New_York:20261120T090000) is honoured. Both standard zone names (America/New_York) and Windows zone names (Pacific Standard Time) are recognised, including across daylight-saving changes.
  • A time with no TZID and no trailing Z (a “floating” time) is read in the feed’s X-WR-TIMEZONE when the feed sets one, else in the subscribing calendar’s timezone (see below), else as UTC.
  • A zone name the feed defines only in its own VTIMEZONE block (for example Outlook’s “Customized Time Zone”) is matched to the standard zone with the same offsets.
  • A TZID zone name that isn’t recognised is read as UTC. An X-WR-TIMEZONE that isn’t recognised counts as no zone (see below).
  • An all-day event (DTSTART;VALUE=DATE) blocks that day in the feed’s time zone, from local midnight to local midnight, so an all-day out-of-office in Sydney blocks the Sydney day. The zone is the date’s own TZID, else the feed’s X-WR-TIMEZONE, else the feed’s VTIMEZONE when it has exactly one (Outlook feeds), else the subscribing calendar’s timezone, else UTC. A Chronary calendar’s own feed is the exception: its all-day events are whole UTC days, so they are imported as the same UTC days.
  • An all-day event in a zone other than UTC is imported as a timed busy block (allDay: false) from local midnight to local midnight. allDay: true always means whole UTC days, so the event never shows on the wrong date. An all-day event read in UTC is imported with allDay: true, as before.

Each event’s own DTSTART and DTEND (or DURATION) are read.

Some feeds name no zone at all: no X-WR-TIMEZONE, no single VTIMEZONE and no TZID (for example, some CalDAV exports, or an Outlook feed with only all-day events). Their all-day dates and floating times are read in the timezone of the Chronary calendar the feed is subscribed into. A calendar in UTC (the default) reads them as UTC, as before. An X-WR-TIMEZONE or single VTIMEZONE that isn’t recognised counts as no zone here.

That zone is the subscriber’s, not necessarily the feed owner’s. If you subscribe to a colleague’s feed from a calendar in another zone, set the subscribing calendar’s timezone to the feed owner’s zone, or ask the publisher to add X-WR-TIMEZONE. Changing a calendar’s timezone (PATCH /v1/calendars/{id}) re-reads its feeds on their next sync (within 15 minutes, or right away with a manual sync). Chronary’s own feeds are recognised and keep whole UTC days for their all-day events, so they are not affected.

A recurring event (RRULE, RDATE) is imported as one busy block per occurrence, from 30 days back to at least 180 days ahead. The window moves forward every week. Cancelled occurrences (EXDATE) are left out, and a moved occurrence (RECURRENCE-ID) is imported at its new time. A repeat pattern Chronary can’t expand (for example, hourly) imports its first occurrence only.

Events marked free (TRANSP:TRANSPARENT, or Outlook’s “Show as: Free”) and cancelled events (STATUS:CANCELLED) don’t block time, so they aren’t imported. Tentative events are imported as busy.