Events API
Events are time-bound entries within a calendar. They support statuses, metadata, and trigger webhooks on changes.
Create an event
Section titled “Create an event”POST /v1/calendars/:cal_id/eventsRequest body
Section titled “Request body”| Field | Type | Required | Default | Description |
|---|---|---|---|---|
title | string | Yes | — | 1–500 characters |
start_time | string | Yes | — | ISO 8601 (RFC 3339) datetime with Z or a numeric offset (2026-04-07T07:00:00-07:00); stored and returned in UTC |
end_time | string | Yes | — | ISO 8601 datetime (must be after start_time) |
description | string | No | — | Free-text description (max 10,000 characters) |
all_day | boolean | No | false | All-day event, stored as whole days: start_time becomes midnight UTC of the date written in it, end_time midnight UTC after the last day it touches (exclusive), at least one day. Availability treats it as busy for those whole UTC days. See Create an event. |
status | string | No | confirmed | confirmed, tentative, cancelled, or hold |
metadata | object | No | — | Key-value pairs, max 16KB JSON |
reminders | integer[] | null | No | inherit | Minutes before start_time to fire an event.reminder webhook (e.g. [10, 1440] = 10 min and 1 day before). Max 5 entries, each 1–40320 (28 days). null inherits the calendar’s default_reminders; [] means no reminders. See Reminders. |
recurrence_rule | string | No | — | RFC 5545 RRULE subset (without the RRULE: prefix) that makes this event a recurring series, e.g. FREQ=WEEKLY;BYDAY=MO,WE;COUNT=12. Not allowed with status=hold. See Recurring events. |
timezone | string | No | UTC | IANA time zone the series repeats in, e.g. America/Los_Angeles. The rule follows local wall time in this zone across daylight-saving changes. See Time zones. |
hold_expires_at | string | Conditional | — | Required when status=hold. ISO 8601 datetime 30s–15min in the future. |
hold_priority | integer | No | 0 | Only valid with status=hold. 0–100. Higher-priority holds pre-empt lower. |
Example
Section titled “Example”curl -X POST https://api.chronary.ai/v1/calendars/cal_x1y2z3/events \ -H "Authorization: Bearer chr_sk_your_key_here" \ -H "Content-Type: application/json" \ -d '{ "title": "Strategy sync with Acme Corp", "start_time": "2026-04-07T14:00:00Z", "end_time": "2026-04-07T14:30:00Z", "description": "Quarterly strategy alignment", "metadata": { "deal_id": "deal_789" } }'from chronary import Chronary
client = Chronary()
event = client.events.create( calendar_id="cal_x1y2z3", title="Strategy sync with Acme Corp", start_time="2026-04-07T14:00:00Z", end_time="2026-04-07T14:30:00Z", description="Quarterly strategy alignment", metadata={"deal_id": "deal_789"},)Response 201 Created
Section titled “Response 201 Created”{ "id": "evt_m1n2o3", "calendarId": "cal_x1y2z3", "orgId": "org_a1b2c3", "title": "Strategy sync with Acme Corp", "description": "Quarterly strategy alignment", "startTime": "2026-04-07T14:00:00Z", "endTime": "2026-04-07T14:30:00Z", "allDay": false, "status": "confirmed", "source": "internal", "metadata": { "deal_id": "deal_789" }, "reminders": null, "holdExpiresAt": null, "holdPriority": 0, "recurrenceRule": null, "recurrenceExdates": [], "timezone": null, "deletedAt": null, "createdAt": "2026-04-04T12:00:00Z", "updatedAt": "2026-04-04T12:00:00Z"}reminders is null when the event inherits its calendar’s default_reminders.
Triggers an event.created webhook.
Errors
Section titled “Errors”| Status | Type | Cause |
|---|---|---|
400 | validation_error | Invalid recurrence_rule (unsupported key, COUNT and UNTIL together, start_time doesn’t match the rule pattern, …) or an unknown timezone |
403 | plan_required | Free-plan recurrence_rule is unbounded or ends more than 90 days after the series start (feature: "unbounded_recurrence"), or status: "hold" on a plan without temporal holds (feature: "temporal_hold") |
404 | not_found | Calendar not found |
409 | agent_inactive | The calendar belongs to a decommissioned agent and is read-only |
409 | conflict | status: "hold" overlaps an existing hold with equal or higher priority |
409 | conflict (code: event_conflict) | The calendar refuses overlapping events and this time overlaps an active event, listed in conflicting_event_ids |
409 | conflict (code: recurring_on_protected_calendar) | recurrence_rule on a calendar that refuses overlapping events |
429 | quota_exceeded | Active recurring-series limit for your plan reached (metric: "recurring_events") |
429 | quota_exceeded | Monthly event limit reached (metric: "events") |
List events
Section titled “List events”GET /v1/calendars/:cal_id/eventsQuery parameters
Section titled “Query parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
start_after | datetime | — | Events starting after this time |
start_before | datetime | — | Events starting before this time |
status | string | — | confirmed, tentative, cancelled, or hold |
source | string | — | internal or external_ical |
limit | integer | 50 | 1–200 |
offset | integer | 0 | Pagination offset, at most 10,000 |
expand | boolean | false | Expand recurring series into per-occurrence instances. Requires both start_after and start_before (window at most 366 days). See Expanding occurrences. |
Example
Section titled “Example”curl "https://api.chronary.ai/v1/calendars/cal_x1y2z3/events?start_after=2026-04-01T00:00:00Z&start_before=2026-04-30T23:59:59Z&status=confirmed" \ -H "Authorization: Bearer chr_sk_your_key_here"for event in client.events.list( calendar_id="cal_x1y2z3", start_after="2026-04-01T00:00:00Z", start_before="2026-04-30T23:59:59Z", status="confirmed",): print(event.title)Response 200 OK
Section titled “Response 200 OK”{ "data": [ ... ], "total": 15, "limit": 50, "offset": 0}With expand=true, total is the number of items in the requested window (masters expanded into instances) rather than the number of stored events.
Errors
Section titled “Errors”| Status | Type | Cause |
|---|---|---|
400 | validation_error | expand=true without both time bounds, or a window wider than 366 days |
404 | not_found | Calendar not found |
List events across calendars
Section titled “List events across calendars”Returns events across all of the organization’s calendars, ordered by start time.
GET /v1/eventsQuery parameters
Section titled “Query parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
calendar_id | string | — | Only this calendar. Repeat the parameter for several (at most 50). Unknown or deleted IDs match nothing |
agent_id | string | — | Only this agent’s calendars |
start_after | datetime | — | Events starting at or after this time |
start_before | datetime | — | Events starting at or before this time |
status | string | — | confirmed, tentative, cancelled, or hold |
source | string | — | internal or external_ical |
q | string | — | Case-insensitive title search. Requires both start_after and start_before, at most 31 days apart. q and each title are compared in a normal form (invisible characters removed, Unicode NFC, whitespace runs collapsed), so spacing differences don’t hide a match |
expand | boolean | false | Expand recurring series within the window, as on the calendar list |
cursor | string | — | The next_cursor from the previous page. Cannot be combined with a non-zero offset |
limit | integer | 50 | 1–100 |
offset | integer | 0 | Pagination offset, at most 10,000 |
An Agent key sees only its own agent’s calendars, and gets 403 when it names another agent or one of its calendars.
Example
Section titled “Example”curl "https://api.chronary.ai/v1/events?calendar_id=cal_x1y2z3&calendar_id=cal_a9b8c7&start_after=2026-04-01T00:00:00Z&start_before=2026-04-30T23:59:59Z&q=standup" \ -H "Authorization: Bearer chr_sk_your_key_here"for event in client.events.list_all( calendar_id=["cal_x1y2z3", "cal_a9b8c7"], start_after="2026-04-01T00:00:00Z", start_before="2026-04-30T23:59:59Z", q="standup",): print(event.title)for await (const event of client.events.listAll({ calendar_id: ['cal_x1y2z3', 'cal_a9b8c7'], start_after: '2026-04-01T00:00:00Z', start_before: '2026-04-30T23:59:59Z', q: 'standup',})) { console.log(event.title);}Response 200 OK
Section titled “Response 200 OK”{ "data": [ ... ], "total": 42, "limit": 50, "offset": 0, "next_cursor": "WyIyMDI2LTA0LTAyVDEwOjAwOjAwLjAwMFoiLCJldnRfMSJd"}total always counts every match. next_cursor is null on the last page.
Errors
Section titled “Errors”| Status | Type | Cause |
|---|---|---|
400 | validation_error | q without both time bounds or with a window wider than 31 days, limit above 100, a calendar_id not starting with cal_, or cursor with a non-zero offset |
400 | validation_error | Invalid cursor, or more than 2,000 events in the window for a title search (narrow the range) |
403 | forbidden | An Agent key named another agent or a calendar it does not own |
List events by agent
Section titled “List events by agent”Returns events across all calendars owned by an agent.
GET /v1/agents/:agent_id/eventsSame query parameters as calendar-scoped listing. Returns 404 not_found when the agent doesn’t exist or belongs to another organization; an agent with no events returns an empty list.
Example
Section titled “Example”curl "https://api.chronary.ai/v1/agents/agt_a1b2c3d4/events?start_after=2026-04-07T00:00:00Z" \ -H "Authorization: Bearer chr_sk_your_key_here"for event in client.agents.events.list( "agt_a1b2c3d4", start_after="2026-04-07T00:00:00Z",): print(f"{event.title} ({event.calendar_id})")Get an event
Section titled “Get an event”GET /v1/calendars/:cal_id/events/:idErrors
Section titled “Errors”| Status | Type | Cause |
|---|---|---|
404 | not_found | Event not found |
Update an event
Section titled “Update an event”PATCH /v1/calendars/:cal_id/events/:idRequest body
Section titled “Request body”| Field | Type | Description |
|---|---|---|
title | string | 1–500 characters |
description | string | null | Max 10,000 characters. Set to null to clear |
start_time | datetime | ISO 8601 |
end_time | datetime | ISO 8601 |
all_day | boolean | All-day event, stored as whole days. true on a timed event widens it to the day or days it covers. Sending only one of start_time / end_time snaps just that bound. To move an all-day event with a non-UTC offset, send all_day: true with the new times so the written date is kept. |
status | string | confirmed, tentative, or cancelled |
metadata | object | Replaces existing metadata |
reminders | integer[] | null | Replaces the event’s reminders. null reverts to inheriting the calendar’s default_reminders; [] disables reminders. See Reminders. |
recurrence_rule | string | null | Sets or changes the series rule — a full-series edit. null converts the series back to a one-off event and clears its cancelled occurrences. See Editing a series. |
timezone | string | null | Sets or changes the IANA time zone the series repeats in; null returns it to UTC. Checked together with recurrence_rule and start_time from the same request. See Move a UTC series to local time. |
At least one field must be provided. Triggers an event.updated webhook. PATCH /v1/events/:id takes the same body without the calendar in the path.
When the request changes start_time, recurrence_rule or timezone of a recurring series, the response also carries droppedExdates: the cancelled occurrences that could not be carried over to the new series (often []). See Editing a series.
Errors
Section titled “Errors”| Status | Type | Cause |
|---|---|---|
400 | validation_error | Invalid recurrence_rule or timezone, or the merged start_time, rule and time zone don’t match |
403 | forbidden | External iCal events are read-only |
403 | plan_required | Free-plan recurrence_rule is unbounded or ends more than 90 days after the series start |
404 | not_found | Event or calendar not found |
409 | agent_inactive | The calendar belongs to a decommissioned agent and is read-only |
409 | conflict (code: event_conflict) | The calendar refuses overlapping events and the new time, or setting a cancelled event back to confirmed or tentative, would overlap an active event, listed in conflicting_event_ids |
409 | conflict (code: recurring_on_protected_calendar) | On a calendar that refuses overlapping events: adding or changing a recurrence_rule, or moving, re-timing (timezone) or reactivating a recurring series. Renaming a series, editing it without changing its time, and cancelling it are allowed |
429 | quota_exceeded | Adding a rule to an existing event would exceed the active recurring-series limit |
Delete an event
Section titled “Delete an event”DELETE /v1/calendars/:cal_id/events/:idReturns 204 No Content. Triggers an event.deleted webhook. On a recurring series, a bare DELETE cancels the whole series.
Query parameters
Section titled “Query parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
occurrence_start | datetime | — | Recurring series only: cancel just the occurrence starting at this ISO 8601 time. The rest of the series is unaffected. |
With occurrence_start, the response is 200 OK with the updated series master (the cancelled start is appended to recurrenceExdates) and an event.updated webhook fires instead of event.deleted. See Cancelling occurrences.
Errors
Section titled “Errors”| Status | Type | Cause |
|---|---|---|
400 | validation_error | occurrence_start is not an active occurrence of this series |
403 | forbidden | External iCal events are read-only |
404 | not_found | Event or calendar not found |
409 | conflict | occurrence_start provided but the event is not a recurring series |
409 | agent_inactive | The calendar belongs to a decommissioned agent and is read-only |
Reminders
Section titled “Reminders”Reminders are timed notifications fired ahead of an event’s start_time. Each entry is an integer number of minutes before start — e.g. [10, 1440] fires 10 minutes and 1 day before. An array may hold up to 5 entries, each between 1 and 40320 (28 days).
Resolution
Section titled “Resolution”Reminders resolve in precedence order:
- The event’s own
remindersfield, if set to an array. - The calendar’s
default_reminders, if the event’sremindersisnull. - The system default of
[10](10 minutes before) if neither is set.
A null value means “inherit from the level above”; an empty array [] means “explicitly no reminders” and stops resolution — it does not fall through to the default.
Delivery
Section titled “Delivery”Each resolved reminder fires an event.reminder webhook at start_time minus the offset. Reminders fire only for events with status: "confirmed" — tentative events, holds, and cancelled events do not fire reminders. Reminders are also emitted as VALARM components in the iCal feed so subscribed calendar apps display the alarm.
Recurring events
Section titled “Recurring events”Pass recurrence_rule when creating an event to turn it into a recurring series. One event row is the series — it counts once toward your monthly events quota no matter how many times it repeats, and once toward your plan’s active recurring-series cap.
Rule format
Section titled “Rule format”recurrence_rule is an RFC 5545 RRULE subset without the RRULE: prefix, e.g. FREQ=WEEKLY;BYDAY=MO,WE,FR;COUNT=12:
| Part | Values | Notes |
|---|---|---|
FREQ | DAILY, WEEKLY, MONTHLY, YEARLY | Required |
INTERVAL | 1–99 | Optional, default 1 (e.g. INTERVAL=2 with FREQ=WEEKLY = every other week) |
COUNT | 1–730 | Total number of occurrences. Mutually exclusive with UNTIL. |
UNTIL | YYYYMMDDTHHMMSSZ or YYYYMMDD | Last possible occurrence start (inclusive). A date-time is UTC; a date-only value includes the whole of that day in the series’ timezone. Mutually exclusive with COUNT. |
BYDAY | Weekly: list like MO,WE,FR · Monthly: single ordinal like 2TU or -1FR | Weekly and monthly only |
BYMONTHDAY | 1–28 or -1 (last day of the month) | Monthly only; mutually exclusive with BYDAY |
Rules the engine cannot expand are rejected with 400 validation_error. Two behaviors to know:
- Skipped, never clamped — occurrences that don’t exist in a month (day 29–31, Feb 29 on
YEARLY) are skipped, which is whyBYMONTHDAYstops at 28 (use-1for “last day”). start_timemust match the rule — the series master’sstart_timeis always the first occurrence, so aFREQ=WEEKLY;BYDAY=MOrule requires astart_timethat falls on a Monday.
recurrence_rule is not allowed on holds.
Time zones
Section titled “Time zones”By default a series repeats in UTC: “every Monday 09:00 UTC” is an hour off local time for half the year in most of North America and Europe. Set timezone (an IANA name such as America/Los_Angeles or Europe/Berlin) and the series repeats on local wall time in that zone instead:
{ "title": "Pottery class", "start_time": "2026-11-17T16:00:00-08:00", "end_time": "2026-11-17T17:30:00-08:00", "timezone": "America/Los_Angeles", "recurrence_rule": "FREQ=WEEKLY;BYDAY=TU"}Every occurrence starts at 16:00 Los Angeles time: 00:00Z the next day in winter, 23:00Z in summer. What the zone governs:
- The pattern.
BYDAY,BYMONTHDAYand the check thatstart_timematches the rule are evaluated on local dates and times. UNTIL. A date-onlyUNTILincludes the whole of that local day. A date-timeUNTILis an exact UTC instant.- Spring-forward gaps. A local time that doesn’t exist that day moves forward by the length of the gap (02:30 becomes 03:30 when clocks jump from 02:00 to 03:00), and the instance is flagged
dstAdjusted: "gap". - Fall-back folds. A local time that happens twice uses the first instance.
- Duration. Each occurrence lasts the master’s elapsed duration (
end_timeminusstart_time), even across a clock change. - All-day events ignore the zone and repeat on calendar dates.
start_time and end_time are still stored and returned in UTC. The event’s timezone is independent of its calendar’s: changing the calendar’s time zone later doesn’t move the series. timezone is returned on every event, null for UTC.
Plan limits
Section titled “Plan limits”| Plan | Active series | Rule bounds |
|---|---|---|
| Free | 1 | Must be bounded (COUNT or UNTIL) and end within 90 days of the series start |
| Developer | 50 | Unbounded rules allowed |
| Pro | 250 | Unbounded rules allowed |
| Custom | Custom | Custom |
Exceeding the active-series cap returns 429 quota_exceeded; an unbounded (or over-window) rule on the Free plan returns 403 plan_required with feature: "unbounded_recurrence". Deleting a series frees its slot. Your current count is reported by GET /v1/usage as recurring_events.
Expanding occurrences
Section titled “Expanding occurrences”List endpoints return the series master as a single event by default. To see individual occurrences, pass expand=true with both start_after and start_before (window at most 366 days):
curl "https://api.chronary.ai/v1/calendars/cal_x1y2z3/events?expand=true&start_after=2026-04-01T00:00:00Z&start_before=2026-04-30T23:59:59Z" \ -H "Authorization: Bearer chr_sk_your_key_here"Expanded instances share the master’s id and carry extra fields:
{ "id": "evt_m1n2o3", "title": "Weekly sync", "startTime": "2026-04-13T16:00:00Z", "endTime": "2026-04-13T16:30:00Z", "recurrenceRule": "FREQ=WEEKLY;BYDAY=MO;COUNT=12", "timezone": "America/Los_Angeles", "recurringEventId": "evt_m1n2o3", "originalStartTime": "2026-04-13T16:00:00Z", "startLocal": "2026-04-13T09:00:00", "utcOffset": "-07:00", "dstAdjusted": null}| Field | Description |
|---|---|
recurringEventId | The series master’s id |
originalStartTime | The occurrence start this instance was generated for — pass it to occurrence_start to cancel that occurrence |
startLocal | The start as local wall time in the series’ timezone (UTC when it has none), without an offset: YYYY-MM-DDTHH:mm:ss |
utcOffset | The UTC offset in effect at startLocal, e.g. -07:00 |
dstAdjusted | "gap" when the pattern’s local time didn’t exist that day (spring-forward) and was moved forward by the gap; otherwise null |
These fields appear only on expanded instances, never on the stored series.
Expansion also works on GET /v1/agents/:agent_id/events. Availability queries always account for recurring occurrences — each one blocks slots like a regular event.
Editing a series
Section titled “Editing a series”PATCH operates on the whole series: changing title, times, the rule or the time zone applies to every occurrence. Set recurrence_rule: null to convert the series back to a one-off event.
Cancelled occurrences are kept. When a PATCH changes start_time, recurrence_rule or timezone, each entry in recurrenceExdates moves to the new series’ occurrence on the same local date (in the series’ new time zone). Moving a 16:00 class to 17:00 keeps last week’s cancellation on its date. A cancelled date with no occurrence in the new series can’t be carried over: it is removed, and the response lists it in droppedExdates:
{ "id": "evt_m1n2o3", "recurrenceRule": "FREQ=WEEKLY;BYDAY=WE", "recurrenceExdates": [], "droppedExdates": ["2026-12-02T00:00:00.000Z"]}Moving a series to another weekday (BYDAY=TU to BYDAY=WE) drops its cancellations by design: a cancelled Tuesday says nothing about which Wednesday to skip. Ask your user, then cancel the right occurrence again with DELETE ?occurrence_start=.
droppedExdates is present only on PATCH responses that changed start_time, recurrence_rule or timezone of an existing series, and is often []. Changing only end_time keeps cancellations as they are. Setting recurrence_rule: null clears them.
Move a UTC series to local time
Section titled “Move a UTC series to local time”A series created without timezone repeats in UTC. To convert it, send timezone together with the rule re-expressed in local terms. timezone, recurrence_rule and start_time from one request are validated once, on the merged result, so the series is never half-converted.
A Tuesday 16:00 Los Angeles class stored in UTC is a Wednesday 00:00 series (start_time 2026-11-18T00:00:00Z, FREQ=WEEKLY;BYDAY=WE). Convert it with:
curl -X PATCH https://api.chronary.ai/v1/calendars/cal_x1y2z3/events/evt_m1n2o3 \ -H "Authorization: Bearer chr_sk_your_key_here" \ -H "Content-Type: application/json" \ -d '{ "timezone": "America/Los_Angeles", "recurrence_rule": "FREQ=WEEKLY;BYDAY=TU" }'2026-11-18T00:00:00Z is Tuesday 16:00 in Los Angeles, so the unchanged start_time matches the new rule. Each cancelled class stays on its local Tuesday (droppedExdates: []), and after the March clock change the class starts at 23:00Z, still 16:00 local. Sending timezone alone returns 400: a BYDAY=WE rule doesn’t match a start that is a Tuesday in Los Angeles.
Cancelling occurrences
Section titled “Cancelling occurrences”- One occurrence —
DELETE .../events/:id?occurrence_start=2026-04-13T09:00:00Zreturns200 OKwith the updated master; the series lives on and anevent.updatedwebhook fires. - Whole series — bare
DELETE .../events/:idreturns204 No Contentand firesevent.deleted.
To modify a single occurrence (different time or title for one week), cancel that occurrence and create a standalone event in its place:
# 1. Cancel the April 13 occurrencecurl -X DELETE "https://api.chronary.ai/v1/calendars/cal_x1y2z3/events/evt_m1n2o3?occurrence_start=2026-04-13T09:00:00Z" \ -H "Authorization: Bearer chr_sk_your_key_here"
# 2. Create a one-off replacementcurl -X POST https://api.chronary.ai/v1/calendars/cal_x1y2z3/events \ -H "Authorization: Bearer chr_sk_your_key_here" \ -H "Content-Type: application/json" \ -d '{ "title": "Weekly sync (moved)", "start_time": "2026-04-13T14:00:00Z", "end_time": "2026-04-13T14:30:00Z" }'Webhooks and feeds
Section titled “Webhooks and feeds”Creating, updating, and deleting a series fires the regular event.created / event.updated / event.deleted webhooks for the master. Cancelling a single occurrence (?occurrence_start=) fires event.updated.
Each occurrence also fires its own event.started, event.ended, and event.reminder lifecycle webhooks at the occurrence’s times. Those payloads carry occurrence_start (the ISO start of the occurrence), and their start_time / end_time are the occurrence’s own times while event_id remains the series master’s id. Occurrences cancelled via occurrence_start do not fire.
In the iCal feed, a series is emitted as a single VEVENT with RRULE (and EXDATE for cancelled occurrences) — calendar apps expand it client-side. A series with a timezone is written with TZID local times and a matching VTIMEZONE, so calendar apps keep it at the same local time across daylight-saving changes.
Temporal holds
Section titled “Temporal holds”Holds are tentative reservations that auto-release after a short TTL (max 15 minutes). Use them to eliminate race conditions when multiple agents compete for the same slot: place a hold first, decide second.
A hold behaves like a normal event for availability purposes — it blocks the slot against queries and other holds — but auto-expires if not confirmed.
Creating and confirming holds requires a Developer or Pro plan; on Free these return 403 plan_required. Releasing a hold works on every plan. Holds have no limit of their own: each hold is an event and counts against your monthly events limit.
Lifecycle
Section titled “Lifecycle”- Create a hold —
POST /v1/calendars/:cal_id/eventswithstatus: "hold"andhold_expires_at(30s–15min in the future). Firesevent.hold_created. - Confirm —
PUT /v1/events/:id/confirmpromotes it tostatus: "confirmed". Firesevent.hold_confirmed.event.started/event.endedlifecycle webhooks fire at the scheduled times. - Release —
PUT /v1/events/:id/releasemanually releases the hold. Firesevent.hold_released. - Auto-expire — if not confirmed or released by
hold_expires_at, the hold is cancelled andevent.hold_expiredfires.
Priority bumping
Section titled “Priority bumping”When creating a hold that overlaps an existing hold on the same calendar:
- Higher priority wins. If the new hold’s
hold_priorityis strictly greater than the existing one’s, the existing hold is cancelled (event.hold_expiredfires) and the new hold is created. - Equal or lower priority → 409
conflict. The new hold is rejected (“An overlapping hold with equal or higher priority already exists”).
A single create request with priority bumping therefore fires two webhooks in order: event.hold_expired (for the bumped hold), then event.hold_created (for the new one).
Confirm a hold
Section titled “Confirm a hold”PUT /v1/events/:id/confirmcurl -X PUT https://api.chronary.ai/v1/events/evt_m1n2o3/confirm \ -H "Authorization: Bearer chr_sk_your_key_here"event = client.events.confirm("evt_m1n2o3")Returns the confirmed event (200 OK). Fires event.hold_confirmed.
Errors
Section titled “Errors”| Status | Type | Cause |
|---|---|---|
403 | forbidden | External iCal events cannot be confirmed |
403 | plan_required | Your plan doesn’t include temporal holds (feature: "temporal_holds") |
404 | not_found | Event not found |
409 | conflict | Event is not a hold, or the hold has already expired (the message says which) |
409 | conflict (code: event_conflict) | The calendar refuses overlapping events and another active event overlaps the hold, listed in conflicting_event_ids |
409 | agent_inactive | The calendar belongs to a decommissioned agent and is read-only |
Release a hold
Section titled “Release a hold”PUT /v1/events/:id/releasecurl -X PUT https://api.chronary.ai/v1/events/evt_m1n2o3/release \ -H "Authorization: Bearer chr_sk_your_key_here"event = client.events.release("evt_m1n2o3")Returns the released (now cancelled) event (200 OK). Fires event.hold_released.
Errors
Section titled “Errors”| Status | Type | Cause |
|---|---|---|
403 | forbidden | External iCal events cannot be released |
404 | not_found | Event not found |
409 | conflict | Event is not a hold |
409 | agent_inactive | The calendar belongs to a decommissioned agent and is read-only |
Constraints
Section titled “Constraints”PATCHon a hold is rejected with400 validation_error— use/confirm,/release, or wait for TTL.PATCHcannot setstatus=holdon a non-hold event.hold_expires_atis write-once at create time.- Holds count against your
eventsquota (same as regular event creation).