latestSwagger 2.02026-08-109034173.2 KB

edcd035d71f5

CalendarEvents

Retrieve multiple Calendar events.

Retrieve multiple Calendar events.

####ObjectID: 160#### This is the ID of the Object. It can be used in generic object calls, or in places that need the objectID param.

get/CalendarEvents

Query parameters

start_timeinteger required

The start time as a UNIX timestamp to use as a beginning bound. Pagination for this endpoint is handled via the start_time parameter. The API will return the next 50 events, in addition to all events on the first and last day of the range.

searchstring

A search string.

group_idinteger

The group ID to limit results by.

guestsearchstring

To search for events a particular guest is on, include a string in the format [object_type_id]_[object_id].

calendarEventOwnerinteger

The staff ID of the event owner to limit events by.

mode'events' | 'bullets' | 'subcollection' | 'recents' | 'submenu'

The collection mode.

Options include:

events: This is the default option. This mode's pagination is controlled by the start_time parameter, and will return 50 events per page, plus all of the other events on the first and last day of the page. Events spanning multiple days will be represented by an event on each day of the date range.

subcollection: This option mimics the subcollection in the Ontraport app. This mode's pagination is controlled by start_time and the relative_paginate parameter, and will return 25 events per page, plus all of the other events on the first and last day of the page. Events spanning multiple days will be represented by a single event record.

bullets: This mode's pagination is controlled by the start_time parameter, and will return for the entire relevant month the day numbers that have existing events. No other event data is returned for this option.

submenu: This option does not allow for pagination and will return a list of event IDs from the context of today, with all events up to one month in the past and six months in the future. No other filter applies to the submenu.

recents: Returns the ten most recently edited events.

relative_paginatestring

Used in conjunction with the start_time parameter in subcollection mode.

Response

Successfully retrieved events

codeinteger required
dataobject required
account_idinteger required