Skip to content

Google: Returns the calendars on the user's calendar list

Google calendarCalendarList.calendarCalendarListList: arguments, response, policy and SDK examples.

← Calendar calendar list operations · Get started

Operation google.calendar_calendarlist_list

Provider route: GET /calendar/v3/users/me/calendarList. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/google with npm, or alter-sdk-google with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { GoogleIntegration } from "@alter-ai/google";
async function execute(input: Parameters<GoogleIntegration["calendarCalendarList"]["calendarCalendarListList"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new GoogleIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.calendarCalendarList.calendarCalendarListList(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_google import GoogleIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = GoogleIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.calendar_calendar_list.calendar_calendar_list_list(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryModelOptionalExpand Watch for changes to Calendar List resources — request body — query

Referenced models: Watch for changes to Calendar List resources — request body — query

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Returns the calendars on the user’s calendar list — response body

Referenced models: Returns the calendars on the user’s calendar list — response body

Returns the calendars on the user's calendar list — response body
FieldTypePresenceDescription and constraints
$objectRoot
etagstringOptionalETag of the collection.
itemsarrayOptionalCalendars that are present on the user's calendar list.
items[]ModelEach itemExpand Returns a calendar from the user's calendar list — response body
kindstringOptionalType of the collection ("calendar#calendarList").
Default: calendar#calendarList
nextPageTokenstringOptionalToken used to access the next page of this result. Omitted if no further results are available, in which case nextSyncToken is provided.
nextSyncTokenstringOptionalToken used at a later point in time to retrieve only the entries that have changed since this result was returned. Omitted if further results are available, in which case nextPageToken is provided.

Referenced models: Returns a calendar from the user's calendar list — response body

Watch for changes to Calendar List resources — request body — query
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
fieldsstringOptionalSelector specifying which fields to include in a partial response.
prettyPrintbooleanOptionalReturns response with indentations and line breaks.
Default: true
quotaUserstringOptionalAn opaque string that represents a user for quota purposes. Must not exceed 40 characters.
userIpstringOptionalDeprecated. Please use quotaUser instead.
maxResultsintegerOptionalMaximum number of entries returned on one result page. By default the value is 100 entries. The page size can never be larger than 250 entries. Optional.
Format: int32
Minimum: 1
minAccessRolestringOptionalThe minimum access role for the user in the returned entries. Optional. The default is no restriction.
One of: freeBusyReader, owner, reader, writer, writerWithoutPrivateAccess
pageTokenstringOptionalToken specifying which result page to return. Optional.
showDeletedbooleanOptionalWhether to include deleted calendar list entries in the result. Optional. The default is False.
showHiddenbooleanOptionalWhether to show hidden entries. Optional. The default is False.
showOwnOrganizationOnlybooleanOptionalWhether to show only entries for calendars from the organization. This parameter is only applicable to Google Workspace users. Optional. The default is False.
syncTokenstringOptionalToken obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since then. If only read-only fields such as calendar properties or ACLs have changed, the entry won't be returned. All entries deleted and hidden since the previous list request will always be in the result set and it is not allowed to set showDeleted neither showHidden to False.
To ensure client state consistency minAccessRole and showOwnOrganizationOnly query parameters cannot be specified together with nextSyncToken.
If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken.
Learn more about incremental synchronization.
Optional. The default is to return all entries.
Returns a calendar from the user's calendar list — response body
FieldTypePresenceDescription and constraints
$objectRoot
accessRolestringOptionalThe effective access role that the authenticated user has on the calendar. Read-only. Possible values are:
- "freeBusyReader" - Provides read access to free/busy information.
- "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
- "writerWithoutPrivateAccess" - Provides read and write access to the calendar. Private events will appear to users with writerWithoutPrivateAccess access, but event details will be hidden.
- "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
- "owner" - Provides manager access to the calendar. This role has all of the permissions of the writer role with the additional ability to see and modify access levels of other users.
Important: the owner role is different from the calendar's data owner. A calendar has a single data owner, but can have multiple users with owner role.
autoAcceptInvitationsbooleanOptionalWhether this calendar automatically accepts invitations. Only valid for resource calendars. Read-only.
backgroundColorstringOptionalThe main color of the calendar in the hexadecimal format "#0088aa". This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional.
colorIdstringOptionalThe color of the calendar. This is an ID referring to an entry in the calendar section of the colors definition (see the colors endpoint). This property is superseded by the backgroundColor and foregroundColor properties and can be ignored when using these properties. Optional.
conferencePropertiesModelOptionalExpand Returns metadata for a calendar — response body — conference Properties
Conferencing properties for this calendar, for example what types of conferences are allowed.
dataOwnerstringOptionalThe email of the owner of the calendar. Set only for secondary calendars. Read-only.
defaultRemindersarrayOptionalThe default reminders that the authenticated user has for this calendar.
defaultReminders[]ModelEach itemExpand Returns events on the specified calendar — response body — default Reminders item
deletedbooleanOptionalWhether this calendar list entry has been deleted from the calendar list. Read-only. Optional. The default is False.
Default: false
descriptionstringOptionalDescription of the calendar. Optional. Read-only.
etagstringOptionalETag of the resource.
foregroundColorstringOptionalThe foreground color of the calendar in the hexadecimal format "#ffffff". This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional.
hiddenbooleanOptionalWhether the calendar has been hidden from the list. Optional. The attribute is only returned when the calendar is hidden, in which case the value is true.
Default: false
idstringOptionalIdentifier of the calendar.
kindstringOptionalType of the resource ("calendar#calendarListEntry").
Default: calendar#calendarListEntry
locationstringOptionalGeographic location of the calendar as free-form text. Optional. Read-only.
notificationSettingsobjectOptionalThe notifications that the authenticated user is receiving for this calendar.
notificationSettings.notificationsarrayOptionalThe list of notifications set for this calendar.
notificationSettings.notifications[]ModelEach itemExpand Returns a calendar from the user's calendar list — response body — notification Settings notifications item
primarybooleanOptionalWhether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.
Default: false
selectedbooleanOptionalWhether the calendar content shows up in the calendar UI. Optional. The default is False.
Default: false
summarystringOptionalTitle of the calendar. Read-only.
summaryOverridestringOptionalThe summary that the authenticated user has set for this calendar. Optional.
timeZonestringOptionalThe time zone of the calendar. Optional. Read-only.

Referenced models: Returns a calendar from the user's calendar list — response body — notification Settings notifications item, Returns metadata for a calendar — response body — conference Properties, Returns events on the specified calendar — response body — default Reminders item

Returns a calendar from the user's calendar list — response body — notification Settings notifications item
FieldTypePresenceDescription and constraints
$objectRoot
methodstringOptionalThe method used to deliver the notification. The possible value is:
- "email" - Notifications are sent via email.
Required when adding a notification.
typestringOptionalThe type of notification. Possible values are:
- "eventCreation" - Notification sent when a new event is put on the calendar.
- "eventChange" - Notification sent when an event is changed.
- "eventCancellation" - Notification sent when an event is cancelled.
- "eventResponse" - Notification sent when an attendee responds to the event invitation.
- "agenda" - An agenda with the events of the day (sent out in the morning).
Required when adding a notification.
Returns metadata for a calendar — response body — conference Properties
FieldTypePresenceDescription and constraints
$objectRoot
allowedConferenceSolutionTypesarrayOptionalThe types of conference solutions that are supported for this calendar.
The possible values are:
- "eventHangout"
- "eventNamedHangout"
- "hangoutsMeet" Optional.
allowedConferenceSolutionTypes[]stringEach item
Returns events on the specified calendar — response body — default Reminders item
FieldTypePresenceDescription and constraints
$objectRoot
methodstringOptionalThe method used by this reminder. Possible values are:
- "email" - Reminders are sent via email.
- "popup" - Reminders are sent via a UI popup.
Required when adding a reminder.
minutesJSONOptional
minutes (anyOf 1)integerAlternativeNumber of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
Required when adding a reminder.
Format: int32
minutes (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

SDK function policy ID: google.calendar_calendarlist_list. Catalog operation: calendar.calendarList.list. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.calendarlist", "https://www.googleapis.com/auth/calendar.calendarlist.readonly", "https://www.googleapis.com/auth/calendar.readonly"]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.