Events
Events are the individual entries on a calendar — meetings, appointments, tasks, or any time-boxed item your agent needs to track.
What you’ll accomplish
Section titled “What you’ll accomplish”By the end of this guide you will be able to create events on a calendar, list and filter them, query across an agent’s calendars, update event details, and delete events.
Prerequisites
Section titled “Prerequisites”- A Chronary account with an API key
- At least one agent and calendar created (see the quickstart)
Create an event
Section titled “Create an event”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": "Product demo with Globex Industries", "start_time": "2026-04-10T15:00:00Z", "end_time": "2026-04-10T16:00:00Z", "description": "Walk through the new dashboard features and pricing tiers", "status": "confirmed", "metadata": { "deal_id": "deal_9823", "attendees": ["maria@globex.com", "james@globex.com"] } }'chronary events create \ --calendar cal_x1y2z3 \ --title "Product demo with Globex Industries" \ --start "2026-04-10T15:00:00Z" \ --end "2026-04-10T16:00:00Z" \ --description "Walk through the new dashboard features and pricing tiers" \ --status confirmed \ --metadata '{"deal_id": "deal_9823", "attendees": ["maria@globex.com", "james@globex.com"]}'# Created event evt_m1n2o3 (Product demo with Globex Industries)const response = await fetch( 'https://api.chronary.ai/v1/calendars/cal_x1y2z3/events', { method: 'POST', headers: { 'Authorization': 'Bearer chr_sk_your_key_here', 'Content-Type': 'application/json', }, body: JSON.stringify({ title: 'Product demo with Globex Industries', start_time: '2026-04-10T15:00:00Z', end_time: '2026-04-10T16:00:00Z', description: 'Walk through the new dashboard features and pricing tiers', status: 'confirmed', metadata: { deal_id: 'deal_9823', attendees: ['maria@globex.com', 'james@globex.com'], }, }), });const event = await response.json();console.log(event.id); // "evt_m1n2o3"from chronary import Chronary
client = Chronary()
event = client.events.create( calendar_id="cal_x1y2z3", title="Product demo with Globex Industries", start_time="2026-04-10T15:00:00Z", end_time="2026-04-10T16:00:00Z", description="Walk through the new dashboard features and pricing tiers", status="confirmed", metadata={ "deal_id": "deal_9823", "attendees": ["maria@globex.com", "james@globex.com"], },)print(event.id) # "evt_m1n2o3"You can also create all-day events by setting all_day: true. Send midnight on the first day as start_time and midnight after the last day as end_time (the end is exclusive). This two-day offsite covers 15 and 16 April:
{ "title": "Company offsite", "start_time": "2026-04-15T00:00:00Z", "end_time": "2026-04-17T00:00:00Z", "all_day": true}All-day events are stored as whole days:
- The first day is the date you wrote.
start_timebecomes midnight UTC of the date in the value, read in its own offset, so2026-04-15T00:00:00+09:00is still 15 April. - The end covers its last day.
end_timebecomes midnight UTC after the last day it touches: its own date when it is exactly midnight, otherwise the next day. So an end of2026-04-16T23:59:59Zalso means “through 16 April”. An event is at least one day long. - Responses and feeds use that form. The event comes back as
2026-04-15T00:00:00.000Z→2026-04-17T00:00:00.000Z, and iCal feeds and linked Google or Outlook calendars show the same dates. - Setting
all_day: trueon a timed event widens it to the day or days it covers. - Moving one bound of an all-day event snaps only that bound; the other stays as it is.
- Moving an all-day event with a non-UTC offset: also send
all_day: truein the PATCH, so the date you wrote is kept. Without it, the date comes from the UTC instant. - Availability treats an all-day event as busy for those whole UTC days. An all-day event on 15 April blocks 15 April 00:00 to 16 April 00:00 UTC, which is 09:00 to 09:00 in Tokyo. To block a local day, create a timed event from local midnight to local midnight instead. All-day events from subscribed iCal feeds and connected Google or Outlook calendars are different: they block the person’s local day.
List events on a calendar
Section titled “List events on a calendar”Retrieve events for a specific calendar with optional filters.
curl "https://api.chronary.ai/v1/calendars/cal_x1y2z3/events?start_after=2026-04-07T00:00:00Z&start_before=2026-04-14T00:00:00Z&status=confirmed&limit=20" \ -H "Authorization: Bearer chr_sk_your_key_here"chronary events list \ --calendar cal_x1y2z3 \ --start-after "2026-04-07T00:00:00Z" \ --start-before "2026-04-14T00:00:00Z" \ --status confirmed \ --limit 20const params = new URLSearchParams({ start_after: '2026-04-07T00:00:00Z', start_before: '2026-04-14T00:00:00Z', status: 'confirmed', limit: '20',});const response = await fetch( `https://api.chronary.ai/v1/calendars/cal_x1y2z3/events?${params}`, { headers: { 'Authorization': 'Bearer chr_sk_your_key_here' } });const { data, total, limit, offset } = await response.json();console.log(`Showing ${data.length} of ${total} events`);events = client.events.list( calendar_id="cal_x1y2z3", start_after="2026-04-07T00:00:00Z", start_before="2026-04-14T00:00:00Z", status="confirmed", limit=20,)for event in events: print(event.title)Filter parameters:
| Parameter | Type | Description |
|---|---|---|
start_after | ISO 8601 | Only events starting after this time |
start_before | ISO 8601 | Only events starting before this time |
status | string | Filter by status: confirmed, tentative, cancelled |
source | string | Filter by source: internal, external_ical |
limit | integer | Results per page (default: 50, max: 200) |
offset | integer | Number of results to skip for pagination |
expand | boolean | Expand recurring series into individual occurrences (requires both start_after and start_before, window up to 366 days) — see Recurring events |
List events across an agent’s calendars
Section titled “List events across an agent’s calendars”Query all events across every calendar owned by an agent. This is useful when an agent has multiple calendars and you need a unified view.
curl "https://api.chronary.ai/v1/agents/agt_a1b2c3d4/events?start_after=2026-04-07T00:00:00Z&limit=50" \ -H "Authorization: Bearer chr_sk_your_key_here"const params = new URLSearchParams({ start_after: '2026-04-07T00:00:00Z', limit: '50',});const response = await fetch( `https://api.chronary.ai/v1/agents/agt_a1b2c3d4/events?${params}`, { headers: { 'Authorization': 'Bearer chr_sk_your_key_here' } });const { data } = await response.json();// Events from all of this agent's calendars# Events from all of this agent's calendarsfor event in client.agents.events.list( "agt_a1b2c3d4", start_after="2026-04-07T00:00:00Z",): print(f"{event.title} ({event.calendar_id})")Get a single event
Section titled “Get a single event”curl https://api.chronary.ai/v1/calendars/cal_x1y2z3/events/evt_m1n2o3 \ -H "Authorization: Bearer chr_sk_your_key_here"const response = await fetch( 'https://api.chronary.ai/v1/calendars/cal_x1y2z3/events/evt_m1n2o3', { headers: { 'Authorization': 'Bearer chr_sk_your_key_here' } });const event = await response.json();event = client.events.get("cal_x1y2z3", "evt_m1n2o3")Update an event
Section titled “Update an event”Only the fields you include in the request body are updated. Omitted fields remain unchanged.
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 '{ "title": "Product demo with Globex Industries (rescheduled)", "start_time": "2026-04-11T15:00:00Z", "end_time": "2026-04-11T16:00:00Z" }'const response = await fetch( 'https://api.chronary.ai/v1/calendars/cal_x1y2z3/events/evt_m1n2o3', { method: 'PATCH', headers: { 'Authorization': 'Bearer chr_sk_your_key_here', 'Content-Type': 'application/json', }, body: JSON.stringify({ title: 'Product demo with Globex Industries (rescheduled)', start_time: '2026-04-11T15:00:00Z', end_time: '2026-04-11T16:00:00Z', }), });const updated = await response.json();updated = client.events.update( "cal_x1y2z3", "evt_m1n2o3", title="Product demo with Globex Industries (rescheduled)", start_time="2026-04-11T15:00:00Z", end_time="2026-04-11T16:00:00Z",)Delete an event
Section titled “Delete an event”curl -X DELETE https://api.chronary.ai/v1/calendars/cal_x1y2z3/events/evt_m1n2o3 \ -H "Authorization: Bearer chr_sk_your_key_here"await fetch( 'https://api.chronary.ai/v1/calendars/cal_x1y2z3/events/evt_m1n2o3', { method: 'DELETE', headers: { 'Authorization': 'Bearer chr_sk_your_key_here' }, });// Returns 204 No Content on successclient.events.delete("cal_x1y2z3", "evt_m1n2o3")# Returns None on successRecurring events
Section titled “Recurring events”Add a recurrence_rule (an RFC 5545 RRULE subset, without the RRULE: prefix) to make an event repeat. A series is stored as a single event and counts once toward your monthly events quota.
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": "Weekly pipeline review", "start_time": "2026-04-13T09:00:00Z", "end_time": "2026-04-13T09:30:00Z", "recurrence_rule": "FREQ=WEEKLY;BYDAY=MO;COUNT=12" }'const response = await fetch( 'https://api.chronary.ai/v1/calendars/cal_x1y2z3/events', { method: 'POST', headers: { 'Authorization': 'Bearer chr_sk_your_key_here', 'Content-Type': 'application/json', }, body: JSON.stringify({ title: 'Weekly pipeline review', start_time: '2026-04-13T09:00:00Z', end_time: '2026-04-13T09:30:00Z', recurrence_rule: 'FREQ=WEEKLY;BYDAY=MO;COUNT=12', }), });const series = await response.json();console.log(series.recurrenceRule); // "FREQ=WEEKLY;BYDAY=MO;COUNT=12"Common rules:
| Goal | Rule |
|---|---|
| Every day for two weeks | FREQ=DAILY;COUNT=14 |
| Mon/Wed/Fri standups until June | FREQ=WEEKLY;BYDAY=MO,WE,FR;UNTIL=20260630 |
| Every other week | FREQ=WEEKLY;INTERVAL=2;COUNT=10 |
| Second Tuesday of each month | FREQ=MONTHLY;BYDAY=2TU;COUNT=6 |
| Last day of each month | FREQ=MONTHLY;BYMONTHDAY=-1;COUNT=12 |
Three things to keep in mind:
start_timeis the first occurrence and must match the rule (aBYDAY=MOrule needs a Mondaystart_time).- Set
timezonefor anything a human attends. Without it the series repeats in UTC, so “every Monday 09:00 UTC” drifts by an hour of local time when daylight saving changes. See Repeat in a local time zone. - Plan limits — Free allows 1 active series and every rule must be bounded (
COUNTorUNTIL) ending within 90 days of the series start; Developer allows 50 series and Pro allows 250, both with unbounded rules.
Repeat in a local time zone
Section titled “Repeat in a local time zone”Pass an IANA timezone with the rule and the series repeats on local wall time in that zone. A weekly class at 16:00 in Los Angeles stays at 16:00 local all year, in winter (UTC−8) and in summer (UTC−7):
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": "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" }'const response = await fetch( 'https://api.chronary.ai/v1/calendars/cal_x1y2z3/events', { method: 'POST', headers: { 'Authorization': 'Bearer chr_sk_your_key_here', 'Content-Type': 'application/json', }, body: JSON.stringify({ 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', }), });const series = await response.json();console.log(series.timezone); // "America/Los_Angeles"series = client.events.create( calendar_id="cal_x1y2z3", 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",)start_time is still stored and returned in UTC; timezone tells Chronary which local clock the pattern follows. BYDAY, BYMONTHDAY, the check that start_time matches the rule, and a date-only UNTIL are all read in that zone. The event’s timezone is its own: it does not follow later changes to the calendar’s time zone. Omit it (or set null) for a UTC series.
Daylight-saving edge cases are handled the same way every time:
- Times that don’t exist (the spring-forward gap, e.g. 02:30 on the night clocks jump from 02:00 to 03:00) move forward by the length of the gap, to 03:30. The expanded instance is flagged
dstAdjusted: "gap". - Times that happen twice (the fall-back hour) use the first of the two.
- Duration is elapsed time. A 90-minute event lasts 90 minutes, even across a clock change.
- A date-only
UNTIL(UNTIL=20270601) includes the whole of that local day. - All-day events ignore the zone. They repeat on calendar dates.
Expanded instances show the local time they were generated for, so you don’t have to convert UTC yourself. After the March clock change, the same class is at 23:00 UTC but still 16:00 local:
{ "id": "evt_m1n2o3", "startTime": "2027-03-16T23:00:00Z", "endTime": "2027-03-17T00:30:00Z", "timezone": "America/Los_Angeles", "recurringEventId": "evt_m1n2o3", "originalStartTime": "2027-03-16T23:00:00Z", "startLocal": "2027-03-16T16:00:00", "utcOffset": "-07:00", "dstAdjusted": null}iCal feeds write a zoned series with TZID and a matching VTIMEZONE, so phone and desktop calendar apps show it at the same local time across daylight-saving changes.
See individual occurrences
Section titled “See individual occurrences”Listing returns the series as one event by default. Pass expand=true with a time window to get per-occurrence instances:
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"Instances share the master’s id and carry recurringEventId and originalStartTime so you can tell them apart. Availability queries automatically treat every occurrence as busy.
Cancel or modify one occurrence
Section titled “Cancel or modify one occurrence”Cancel a single occurrence by passing its start time to DELETE — the rest of the series is untouched:
curl -X DELETE "https://api.chronary.ai/v1/calendars/cal_x1y2z3/events/evt_m1n2o3?occurrence_start=2026-04-20T09:00:00Z" \ -H "Authorization: Bearer chr_sk_your_key_here"# 200 OK — returns the updated series masterA bare DELETE (no occurrence_start) cancels the whole series. To reschedule one occurrence, cancel it and create a standalone event at the new time.
PATCH always edits the full series — changing times, the rule, the time zone, or setting recurrence_rule: null (which converts it back to a one-off) applies to every occurrence.
Cancelled occurrences survive a series edit. When you change start_time, recurrence_rule or timezone, each cancelled occurrence moves to the new series’ occurrence on the same local date, so cancelling “the class on December 1” stays cancelled when the class moves from 16:00 to 17:00. A cancelled date that has no occurrence in the new series (for example after moving the class from Tuesday to Wednesday) can’t be carried over: it is removed and listed in the response’s droppedExdates. Ask your user which new date they meant and cancel it again with DELETE ?occurrence_start=. Setting recurrence_rule: null clears every cancellation, and changing only end_time leaves them as they are.
Move a UTC series to local time
Section titled “Move a UTC series to local time”A series created before you set timezone repeats in UTC. To move it to local time, send timezone and the rule re-expressed in local terms in one PATCH. They are checked together, so the series is never left half-converted.
For example, a Tuesday 16:00 Los Angeles class was stored in UTC as Wednesday 00:00 (BYDAY=WE, start_time 2026-11-18T00:00:00Z). In UTC terms it is a Wednesday class, which is why it would drift to 17:00 local in March. Its local weekday is Tuesday:
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" }'start_time stays 2026-11-18T00:00:00Z, which is Tuesday 16:00 in Los Angeles, so it matches the new rule. From March onward the occurrences start at 23:00 UTC, still 16:00 local. Cancelled Tuesday classes keep their local dates, and the response’s droppedExdates is []. Sending only timezone would fail with 400: a Wednesday BYDAY with a Tuesday local start doesn’t match.
See the Events API reference for the complete rule grammar and error codes.
External events are read-only
Section titled “External events are read-only”Pagination
Section titled “Pagination”All list endpoints return paginated results:
{ "data": [ ... ], "total": 142, "limit": 50, "offset": 0}To fetch the next page, increment offset by limit:
GET /v1/calendars/cal_x1y2z3/events?limit=50&offset=50The maximum limit is 200. The default is 50.
Common errors
Section titled “Common errors”| Status | Code | Cause |
|---|---|---|
400 | validation_error | start_time or end_time is not an ISO 8601 date-time with Z or a UTC offset (param names the field) |
400 | validation_error | end_time is not after start_time |
403 | forbidden | Attempted to edit/delete an event with source: "external_ical" (“External events are read-only”) |
404 | not_found | The calendar ID does not exist (“Calendar not found”) |
404 | not_found | The event ID does not exist on this calendar (“Event not found”) |
409 | agent_inactive | The calendar belongs to a decommissioned agent and is read-only |
429 | quota_exceeded | Monthly event limit reached (metric: "events") |
What’s next?
Section titled “What’s next?”- Availability guide — find free time slots based on existing events
- Webhooks guide — get notified when events are created, updated, or deleted
- iCal feeds guide — let humans see agent events in their own calendar apps