Events
Create, read, update, and delete calendar events for your agent.
List Events
GET /api/v1/events
Returns events in the agent's calendar. Supports filtering by date range and pagination.
Auth: Bearer API Key
Query params (all optional):
start_after— ISO 8601 datetimestart_before— ISO 8601 datetimelimit— default 100, max 500offset— default 0
Response:
{
"events": [
{
"id": "uuid",
"title": "Team Standup",
"start": "2025-01-15T09:00:00Z",
"end": "2025-01-15T09:30:00Z",
"description": "Daily sync",
"location": "Zoom",
"allDay": false,
"rrule": null,
"color": "#3b82f6"
}
]
}
Get Event
GET /api/v1/events/:id
Returns a single event from the agent's calendar.
Auth: Bearer API Key
Response:
{
"event": {
"id": "uuid",
"title": "Team Standup",
"start": "2025-01-15T09:00:00Z",
"end": "2025-01-15T09:30:00Z",
"description": "Daily sync",
"location": "Zoom",
"allDay": false,
"rrule": null,
"color": "#3b82f6"
}
}
Create Event
POST /api/v1/events
Creates a new calendar event.
Auth: Bearer API Key
Body:
| Field | Type | Required |
|---|---|---|
title | string | Yes |
start | ISO 8601 datetime | Yes |
end | ISO 8601 datetime | Yes |
description | string | No |
location | string | No |
allDay | boolean | No (default: false) |
rrule | string (iCal RRULE format) | No |
timezone | string (IANA timezone) | No |
color | string (hex, e.g. #ff5733) | No |
Response:
{
"event": {
"id": "uuid",
"title": "Team Standup",
"start": "2025-01-15T09:00:00Z",
"end": "2025-01-15T09:30:00Z",
...
}
}
Update Event
PUT /api/v1/events/:id
Updates one or more fields of an event.
Auth: Bearer API Key
Body:
| Field | Type | Required |
|---|---|---|
title | string | No |
start | ISO 8601 datetime | No |
end | ISO 8601 datetime | No |
description | string | No |
location | string | No |
allDay | boolean | No |
rrule | string | No |
timezone | string | No |
color | string (hex, e.g. #ff5733) | No |
Response:
{ "event": { ... } }
Delete Event
DELETE /api/v1/events/:id
Permanently deletes the event.
Auth: Bearer API Key
Response:
{ "deleted": true }
Field Constraints
| Field | Constraint |
|---|---|
title | 1–500 characters |
description | Up to 5,000 characters |
location | Up to 500 characters |
start / end | ISO 8601 datetime (e.g. "2025-07-01T10:00:00Z") |
rrule | iCal recurrence rule (e.g. "FREQ=WEEKLY;BYDAY=MO,WE,FR") |
timezone | IANA timezone (e.g. "America/New_York") |
color | Hex color code (e.g. "#ff5733") |