Calendar API

The Calendar API lives under <code>/apis/v1/calendar</code>. Calendar, event and scheduling data is scoped to the authenticated user’s tenant.

01

Before you start

Paths below are given in full, or relative to /apis/v1/calendar where a table says so. Every request needs a Ration bearer token (see Authentication):

Authorization: Bearer <ration_access_token>
Content-Type: application/json

Ration also supports CalDAV for compatible calendar clients. This page covers only the public /apis/v1 REST API.

02

List calendars

GET /apis/v1/calendar returns a paginated result with the calendar records and cursor metadata.

Query parameterTypeRequiredDescription
limitIntegerNoPage size. Defaults to 50.
cursorStringNoCursor returned by a previous page.

03

Create a calendar

POST /apis/v1/calendar. Send calendar attributes at the top level. The response is { "calendar": { ... } }.

{ "name": "Product", "color": "#006699" }

04

Update a calendar

PUT /apis/v1/calendar/:calendar_id. Send attributes directly or nested under calendar. The response is { "calendar": { ... } }, read back after the update, so you can use it to refresh your view.

{ "calendar": { "name": "Product delivery", "color": "#006699" } }

05

Delete a calendar

DELETE /apis/v1/calendar/:calendar_id returns 204 No Content.

Body or query fieldTypeRequiredDescription
move_to_calendar_idStringNoCalendar to move existing events to before deletion.

06

List events or expanded instances

GET /apis/v1/calendar/:calendar_id/events

Query parameterTypeRequiredDescription
start, endISO 8601 date-timeNoEvent window. Missing bounds default to the Unix epoch through five years ahead.
limitIntegerNoPage size. Defaults to 50.
cursorStringNoEvent list cursor.

GET /apis/v1/calendar/:calendar_id/instances expands recurring events into occurrences. Both start and end are required ISO 8601 date-times. It also accepts limit and cursor.

07

Create or update an event

POST /apis/v1/calendar/:calendar_id/events creates an event and PUT /apis/v1/calendar/:calendar_id/events/:event_id updates one. Put event attributes under event:

  • The event model supports standard calendar fields: title/summary, date and time, description, location, attendees, recurrence, alarms and scheduling metadata.
  • Responses are { "event": { ... } }.
  • GET /apis/v1/calendar/:calendar_id/events/:event_id returns the same envelope. DELETE on that path returns 204 No Content.
{
  "event": {
    "summary": "Design review",
    "dtstart": "2026-08-10T09:00:00+01:00",
    "dtend": "2026-08-10T10:00:00+01:00",
    "description": "Review the proposed experience.",
    "location": "Video meeting",
    "attendees": [{ "email": "sam@example.com", "name": "Sam" }]
  }
}

08

Batch event changes

POST /apis/v1/calendar/:calendar_id/events/batch. The create, update and delete arrays can also go directly at the top level.

{
  "operations": {
    "create": [{ "summary": "Kickoff", "dtstart": "…", "dtend": "…" }],
    "update": [{ "event_id": "event-id", "summary": "Updated kickoff" }],
    "delete": ["event-id"]
  }
}
Response fieldTypeDescription
created, updated, deletedArrayOne result per requested operation.
*.statusStringok or error.
*.event, *.event_idObject or StringThe created or updated event, or the affected event ID.
*.errorStringError detail for a single failed operation.

09

RSVP and propose a time

PUT /apis/v1/calendar/:calendar_id/events/:event_id/rsvp generates and sends a scheduling reply, and returns { "status": "ok", "schedule_statuses": [...] }.

{ "response": "accepted" }

POST /apis/v1/calendar/:calendar_id/events/:event_id/proposals takes the proposal fields for an alternative meeting time and returns { "status": "proposal_sent", "schedule_statuses": [...] }.

10

Incremental sync

POST /apis/v1/calendar/:calendar_id/sync returns the changes since the token you send. An invalid token returns an error that includes valid_sync_token when Ration can supply a usable replacement.

{ "sync_token": "token-from-a-prior-sync" }

11

iTIP scheduling messages

Paths in this table are relative to /apis/v1/calendar. Send a complete iCalendar (.ics) payload in ics. The outbox sends it to recipients; the inbox validates it and applies it to the calendar.

MethodPathRequired bodyResponse
POST/:calendar_id/scheduling/outboxics{ "status": "sent", "schedule_statuses": [...] }
POST/:calendar_id/scheduling/inboxics{ "status": "processed" }
GET/:calendar_id/scheduling/messagesNonePaginated scheduling-message result.
GET/:calendar_id/scheduling/messages/:message_idNone{ "message": { ... } }

12

Free/busy lookup

POST /apis/v1/calendar/scheduling/free_busy

  • dtstart and dtend are accepted as aliases for start_date and end_date.
  • The response returns merged busy windows for the caller and each resolved attendee.
  • Addresses outside your tenant may come back unresolved, because Ration can’t inspect their calendars.
{
  "start_date": "2026-08-10T09:00:00+01:00",
  "end_date": "2026-08-10T18:00:00+01:00",
  "attendees": ["sam@example.com", { "email": "lee@example.com" }]
}

13

Time polls

Paths in this table are relative to /apis/v1/calendar.

MethodPathRequestResponse
POST/pollstitle, calendar_id, attendees and at least two options (dtstart, dtend); optional draft.Created poll (201).
GET/polls/:idNone.Poll, tally and my_vote.
POST/polls/:id/voteoption_ids array.Updated poll and my_vote.
POST/polls/:id/finalizeNone.{ "poll": {...}, "event": {...} }.

Only the organiser can finalise a poll. A poll needs at least two options and can’t be finalised without a winning vote.

14

Holidays and subscriptions

Paths in this table are relative to /apis/v1/calendar.

MethodPathDescription
GET/holidaysHoliday catalogue and lookup data.
GET/holidays/effective?year=2026Effective countries and holidays for the caller.
GET/holiday-subscriptionsTenant default, caller additions, effective countries and can_manage.
PUT/holiday-subscriptionsSet the caller’s countries array (or a comma-separated string).
PUT/holiday-subscriptions/tenantTenant administrators set countries, custom_days and speedy_meetings.

The tenant update needs the organisation-management permission. Without it, it returns 403 { "error": "forbidden" }.

15

Errors

StatusMeaning
401Missing or invalid bearer authentication.
403Tenant context is required, or the caller lacks calendar or tenant permission.
404Calendar, event, poll or scheduling message not found.
400Invalid date range, invalid ICS payload, incomplete poll or another invalid request.
422The calendar or event operation can’t be applied.
Next guideContacts API →

Last reviewed 27 November 2026.

Still stuck?

Chat with our support team. Tell us what you were doing and what you saw, and a person will pick it up. You can also email support@ration.works.

Buying or moving to Ration?

For plans, migration or an on-premise deployment, talk to our sales team.