Skip to content

iCal Subscriptions

Import events from external calendars (Google Calendar, Outlook, etc.) into Chronary calendars. Imported events are read-only and block availability.

POST /v1/agents/:agent_id/ical-subscriptions
FieldTypeRequiredDescription
calendar_idstringYesTarget calendar to import events into
urlstringYesHTTPS URL of the .ics feed
labelstringNoHuman-readable label (1–255 characters)
Terminal window
curl -X POST https://api.chronary.ai/v1/agents/agt_a1b2c3d4/ical-subscriptions \
-H "Authorization: Bearer chr_sk_test_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": "Team Google Calendar"
}'
{
"id": "isub_a1b2c3",
"agent_id": "agt_a1b2c3d4",
"calendar_id": "cal_x1y2z3",
"url": "https://calendar.google.com/calendar/ical/user%40gmail.com/basic.ics",
"label": "Team Google Calendar",
"status": "active",
"last_synced_at": null,
"created_at": "2026-04-04T12:00:00Z"
}
StatusTypeCause
402quota_exceededSubscription limit reached
404not_foundAgent or calendar not found
422validation_errorURL not HTTPS or invalid format

GET /v1/agents/:agent_id/ical-subscriptions
ParameterTypeDefaultDescription
statusstringFilter by active, error, or paused
limitinteger501–200
offsetinteger0Pagination offset
Terminal window
curl "https://api.chronary.ai/v1/agents/agt_a1b2c3d4/ical-subscriptions?status=active" \
-H "Authorization: Bearer chr_sk_test_your_key_here"

GET /v1/ical-subscriptions/:id
StatusTypeCause
404not_foundSubscription not found

PATCH /v1/ical-subscriptions/:id
FieldTypeDescription
labelstring1–255 characters
urlstringMust be HTTPS

At least one field must be provided.

StatusTypeCause
404not_foundSubscription not found
422validation_errorInvalid URL format

POST /v1/ical-subscriptions/:id/sync

Forces an immediate sync of the external feed. Returns 202 Accepted — the sync runs asynchronously.

Terminal window
curl -X POST https://api.chronary.ai/v1/ical-subscriptions/isub_a1b2c3/sync \
-H "Authorization: Bearer chr_sk_test_your_key_here"
{ "status": "syncing" }
StatusTypeCause
404not_foundSubscription not found

DELETE /v1/ical-subscriptions/:id

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

StatusTypeCause
404not_foundSubscription not found