Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelistoverlay
DELETE/calendar/v3/users/me/calendarList/{calendarId}Remove a calendar from my list · Delete calendarList#
Ask an LLM
“How do I remove a calendar from my calendar list?”
“Can I delete a calendar from my list by its ID?”
Tell an agentdestructive · confirm first
Delete calendar {calendarId} from my calendar list.
Remove calendar {calendarId} from my list.
PUT/calendar/v3/users/me/calendarList/{calendarId}Update a calendar in my list · Update calendarList#
Ask an LLM
“How do I change the color of a calendar in my list?”
“Can I make a calendar show up in the UI by updating it?”
Tell an agent
Update calendar {calendarId} in my list with color {colorId}.
Set selected to {selected} on calendar {calendarId}.
GET/calendar/v3/users/me/calendarList/{calendarId}Get a calendar from my list · Get calendarList#
Ask an LLM
“How do I look up one calendar by its ID in my list?”
“What access role do I have on a calendar in my list?”
Tell an agent
Get calendar {calendarId} from my calendar list.
Show the access role I have on calendar {calendarId}.
PATCH/calendar/v3/users/me/calendarList/{calendarId}Partially update a calendar in my list · Patch calendarList#
Ask an LLM
“Can I change just the description of a calendar in my list without resending the rest?”
“Is there a partial update for a calendar list entry?”
Tell an agent
Patch calendar {calendarId} in my list with description {description}.
Partially update calendar {calendarId} in my list to show {summaryOverride}.
POST/calendar/v3/users/me/calendarListAdd an existing calendar to my list · Insert calendarList#
Ask an LLM
“How do I add a calendar I already have access to into my calendar list?”
“Can I insert an existing calendar into my list by its ID?”
Tell an agent
Insert calendar {id} into my calendar list.
Add existing calendar {id} to my list with summary {summary}.
GET/calendar/v3/users/me/calendarListList calendars on my list · List calendarList#
Ask an LLM
“Which calendars are on my calendar list?”
“Can I list only calendars I have at least editor access to?”
Tell an agent
List all calendars on my calendar list.
Show calendars on my list with access role at least {minAccessRole}.
POST/calendar/v3/users/me/calendarList/watchWatch my calendar list for changes · Watch calendarList#
Ask an LLM
“How do I get notified when calendars are added or removed from my list?”
“Can I watch my calendar list for changes and receive sync tokens?”
Tell an agent
Watch my calendar list for changes and notify me at {address}.
Start watching my calendar list with sync token {syncToken}.
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.1.0
info:
title: Calendar API CalendarList API
version: v3
description: Generated from Google's published Discovery document for Calendar API (calendar v3, revision 20261109). 7 operation(s).
contact:
name: Google
url: https://developers.google.com/
termsOfService: https://developers.google.com/terms
externalDocs:
url: https://developers.google.com/workspace/calendar/firstapp
servers:
- url: https://www.googleapis.com
paths:
/calendar/v3/users/me/calendarList/{calendarId}:
delete:
operationId: calendar.calendarList.delete
summary: Delete calendarList
description: Removes a calendar from the user's calendar list.
parameters:
- name: calendarId
in: path
required: true
description: Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access
the primary calendar of the currently logged in user, use the "primary" keyword.
schema:
type: string
responses:
'200':
description: Successful response
4XX:
content: &id001
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id001
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/calendar
- https://www.googleapis.com/auth/calendar.app.created
- https://www.googleapis.com/auth/calendar.calendarlist
- apiKey: []
tags:
- CalendarList
put:
operationId: calendar.calendarList.update
summary: Update calendarList
description: Updates an existing calendar on the user's calendar list.
parameters:
- name: calendarId
in: path
required: true
description: Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access
the primary calendar of the currently logged in user, use the "primary" keyword.
schema:
type: string
- name: colorRgbFormat
in: query
required: false
description: Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If
this feature is used, the index-based colorId field will be set to the best matching option automatically. Optional.
The default is False.
schema:
type: boolean
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CalendarListEntry'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/CalendarListEntry'
4XX:
content: &id002
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id002
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/calendar
- https://www.googleapis.com/auth/calendar.app.created
- https://www.googleapis.com/auth/calendar.calendarlist
- apiKey: []
tags:
- CalendarList
get:
operationId: calendar.calendarList.get
summary: Get calendarList
description: Returns a calendar from the user's calendar list.
parameters:
- name: calendarId
in: path
required: true
description: Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access
the primary calendar of the currently logged in user, use the "primary" keyword.
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/CalendarListEntry'
4XX:
content: &id003
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id003
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/calendar
- https://www.googleapis.com/auth/calendar.app.created
- https://www.googleapis.com/auth/calendar.calendarlist
- https://www.googleapis.com/auth/calendar.calendarlist.readonly
- https://www.googleapis.com/auth/calendar.readonly
- apiKey: []
tags:
- CalendarList
patch:
operationId: calendar.calendarList.patch
summary: Patch calendarList
description: Updates an existing calendar on the user's calendar list. This method supports patch semantics.
parameters:
- name: calendarId
in: path
required: true
description: Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access
the primary calendar of the currently logged in user, use the "primary" keyword.
schema:
type: string
- name: colorRgbFormat
in: query
required: false
description: Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If
this feature is used, the index-based colorId field will be set to the best matching option automatically. Optional.
The default is False.
schema:
type: boolean
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CalendarListEntry'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/CalendarListEntry'
4XX:
content: &id004
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id004
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/calendar
- https://www.googleapis.com/auth/calendar.app.created
- https://www.googleapis.com/auth/calendar.calendarlist
- apiKey: []
tags:
- CalendarList
/calendar/v3/users/me/calendarList:
post:
operationId: calendar.calendarList.insert
summary: Insert calendarList
description: Inserts an existing calendar into the user's calendar list.
parameters:
- name: colorRgbFormat
in: query
required: false
description: Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If
this feature is used, the index-based colorId field will be set to the best matching option automatically. Optional.
The default is False.
schema:
type: boolean
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CalendarListEntry'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/CalendarListEntry'
4XX:
content: &id005
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id005
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/calendar
- https://www.googleapis.com/auth/calendar.calendarlist
- apiKey: []
tags:
- CalendarList
get:
operationId: calendar.calendarList.list
summary: List calendarList
description: Returns the calendars on the user's calendar list.
parameters:
- name: maxResults
in: query
required: false
description: Maximum 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.
schema:
format: int32
minimum: 1
type: integer
- name: minAccessRole
in: query
required: false
description: The minimum access role for the user in the returned entries. Optional. The default is no restriction.
schema:
type: string
enum:
- freeBusyReader
- owner
- reader
- writer
- writerWithoutPrivateAccess
- name: pageToken
in: query
required: false
description: Token specifying which result page to return. Optional.
schema:
type: string
- name: showDeleted
in: query
required: false
description: Whether to include deleted calendar list entries in the result. Optional. The default is False.
schema:
type: boolean
- name: showHidden
in: query
required: false
description: Whether to show hidden entries. Optional. The default is False.
schema:
type: boolean
- name: showOwnOrganizationOnly
in: query
required: false
description: Whether to show only entries for calendars from the organization. This parameter is only applicable to
Google Workspace users. Optional. The default is False.
schema:
type: boolean
- name: syncToken
in: query
required: false
description: 'Token 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.'
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/CalendarList'
4XX:
content: &id006
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id006
description: Error response (google.rpc.Status)
security:
- oauth2:
- 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
- apiKey: []
tags:
- CalendarList
/calendar/v3/users/me/calendarList/watch:
post:
operationId: calendar.calendarList.watch
summary: Watch calendarList
description: Watch for changes to CalendarList resources.
parameters:
- name: maxResults
in: query
required: false
description: Maximum 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.
schema:
type: integer
minimum: 1
format: int32
- name: minAccessRole
in: query
required: false
description: The minimum access role for the user in the returned entries. Optional. The default is no restriction.
schema:
type: string
enum:
- freeBusyReader
- owner
- reader
- writer
- writerWithoutPrivateAccess
- name: pageToken
in: query
required: false
description: Token specifying which result page to return. Optional.
schema:
type: string
- name: showDeleted
in: query
required: false
description: Whether to include deleted calendar list entries in the result. Optional. The default is False.
schema:
type: boolean
- name: showHidden
in: query
required: false
description: Whether to show hidden entries. Optional. The default is False.
schema:
type: boolean
- name: showOwnOrganizationOnly
in: query
required: false
description: Whether to show only entries for calendars from the organization. This parameter is only applicable to
Google Workspace users. Optional. The default is False.
schema:
type: boolean
- name: syncToken
in: query
required: false
description: 'Token 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.'
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Channel'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Channel'
4XX:
content: &id007
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id007
description: Error response (google.rpc.Status)
security:
- oauth2:
- 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
- apiKey: []
tags:
- CalendarList
components:
securitySchemes:
apiKey:
type: apiKey
in: query
name: key
description: API key; accepted by methods that do not need user data.
oauth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://accounts.google.com/o/oauth2/auth
tokenUrl: https://oauth2.googleapis.com/token
scopes:
https://www.googleapis.com/auth/calendar.acls: See and change the sharing permissions of Google calendars you
own
https://www.googleapis.com/auth/calendar: See, edit, share, and permanently delete all the calendars you can access
using Google Calendar
https://www.googleapis.com/auth/calendar.app.created: Make secondary Google calendars, and see, create, change,
and delete events on them
https://www.googleapis.com/auth/calendar.calendarlist: See, add, and remove Google calendars you’re subscribed
to
https://www.googleapis.com/auth/calendar.settings: View and edit your Calendar settings
https://www.googleapis.com/auth/calendar.freebusy: View your availability in your calendars
https://www.googleapis.com/auth/calendar.events.owned: See, create, change, and delete events on Google calendars
you own
https://www.googleapis.com/auth/calendar.events.owned.readonly: See the events on Google calendars you own
https://www.googleapis.com/auth/calendar.events: View and edit events on all your calendars
https://www.googleapis.com/auth/calendar.calendars.readonly: See the title, description, default time zone, and
other properties of Google calendars you have access to
https://www.googleapis.com/auth/calendar.calendarlist.readonly: See the list of Google calendars you’re subscribed
to
https://www.googleapis.com/auth/calendar.acls.readonly: See the sharing permissions of Google calendars you own
https://www.googleapis.com/auth/calendar.calendars: See and change the properties of Google calendars you have
access to, and create secondary calendars
https://www.googleapis.com/auth/calendar.events.public.readonly: See the events on public calendars
https://www.googleapis.com/auth/calendar.events.freebusy: See the availability on Google calendars you have access
to
https://www.googleapis.com/auth/calendar.events.readonly: View events on all your calendars
https://www.googleapis.com/auth/calendar.readonly: See and download any calendar you can access using your Google
Calendar
https://www.googleapis.com/auth/calendar.settings.readonly: View your Calendar settings
schemas:
CalendarList:
type: object
properties:
items:
items:
$ref: '#/components/schemas/CalendarListEntry'
type: array
description: Calendars that are present on the user's calendar list.
etag:
description: ETag of the collection.
type: string
kind:
description: Type of the collection ("calendar#calendarList").
default: calendar#calendarList
type: string
nextSyncToken:
description: Token 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.
type: string
nextPageToken:
description: Token used to access the next page of this result. Omitted if no further results are available, in
which case nextSyncToken is provided.
type: string
CalendarListEntry:
properties:
dataOwner:
type: string
description: The email of the owner of the calendar. Set only for secondary calendars. Read-only.
timeZone:
description: The time zone of the calendar. Optional. Read-only.
type: string
location:
description: Geographic location of the calendar as free-form text. Optional. Read-only.
type: string
etag:
description: ETag of the resource.
type: string
backgroundColor:
type: string
description: The 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.
kind:
description: Type of the resource ("calendar#calendarListEntry").
type: string
default: calendar#calendarListEntry
autoAcceptInvitations:
description: Whether this calendar automatically accepts invitations. Only valid for resource calendars. Read-only.
type: boolean
selected:
type: boolean
default: 'false'
description: Whether the calendar content shows up in the calendar UI. Optional. The default is False.
accessRole:
description: "The effective access role that the authenticated user has on the calendar. Read-only. Possible values\
\ are: \n- \"freeBusyReader\" - Provides read access to free/busy information. \n- \"reader\" - Provides read\
\ access to the calendar. Private events will appear to users with reader access, but event details will be hidden.\
\ \n- \"writerWithoutPrivateAccess\" - Provides read and write access to the calendar. Private events will appear\
\ to users with writerWithoutPrivateAccess access, but event details will be hidden. \n- \"writer\" - Provides\
\ read and write access to the calendar. Private events will appear to users with writer access, and event details\
\ will be visible. \n- \"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.\nImportant: 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."
type: string
summary:
type: string
description: Title of the calendar. Read-only.
conferenceProperties:
$ref: '#/components/schemas/ConferenceProperties'
description: Conferencing properties for this calendar, for example what types of conferences are allowed.
foregroundColor:
type: string
description: The 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.
description:
type: string
description: Description of the calendar. Optional. Read-only.
defaultReminders:
type: array
description: The default reminders that the authenticated user has for this calendar.
items:
$ref: '#/components/schemas/EventReminder'
colorId:
type: string
description: The 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.
id:
type: string
description: Identifier of the calendar.
hidden:
type: boolean
description: Whether 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'
summaryOverride:
description: The summary that the authenticated user has set for this calendar. Optional.
type: string
primary:
description: Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default
is False.
type: boolean
default: 'false'
notificationSettings:
description: The notifications that the authenticated user is receiving for this calendar.
properties:
notifications:
type: array
description: The list of notifications set for this calendar.
items:
$ref: '#/components/schemas/CalendarNotification'
type: object
deleted:
default: 'false'
description: Whether this calendar list entry has been deleted from the calendar list. Read-only. Optional. The
default is False.
type: boolean
type: object
CalendarNotification:
properties:
method:
type: string
description: "The method used to deliver the notification. The possible value is: \n- \"email\" - Notifications\
\ are sent via email. \nRequired when adding a notification."
type:
description: "The type of notification. Possible values are: \n- \"eventCreation\" - Notification sent when a new\
\ event is put on the calendar. \n- \"eventChange\" - Notification sent when an event is changed. \n- \"eventCancellation\"\
\ - Notification sent when an event is cancelled. \n- \"eventResponse\" - Notification sent when an attendee responds\
\ to the event invitation. \n- \"agenda\" - An agenda with the events of the day (sent out in the morning). \n\
Required when adding a notification."
type: string
type: object
Channel:
properties:
resourceUri:
description: A version-specific identifier for the watched resource.
type: string
params:
description: Additional parameters controlling delivery channel behavior. Optional.
additionalProperties:
type: string
description: Declares a new parameter by name.
type: object
kind:
type: string
description: Identifies this as a notification channel used to watch for changes to a resource, which is "api#channel".
default: api#channel
type:
type: string
description: The type of delivery mechanism used for this channel. Valid values are "web_hook" (or "webhook"). Both
values refer to a channel where Http requests are used to deliver messages.
expiration:
type: string
format: int64
description: Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
token:
description: An arbitrary string delivered to the target address with each notification delivered over this channel.
Optional.
type: string
resourceId:
type: string
description: An opaque ID that identifies the resource being watched on this channel. Stable across different API
versions.
address:
description: The address where notifications are delivered for this channel.
type: string
id:
description: A UUID or similar unique string that identifies this channel.
type: string
payload:
type: boolean
description: A Boolean value to indicate whether payload is wanted. Optional.
type: object
ConferenceProperties:
type: object
properties:
allowedConferenceSolutionTypes:
items:
type: string
type: array
description: "The types of conference solutions that are supported for this calendar.\nThe possible values are:\
\ \n- \"eventHangout\" \n- \"eventNamedHangout\" \n- \"hangoutsMeet\" Optional."
EventReminder:
properties:
method:
description: "The method used by this reminder. Possible values are: \n- \"email\" - Reminders are sent via email.\
\ \n- \"popup\" - Reminders are sent via a UI popup. \nRequired when adding a reminder."
type: string
minutes:
type: integer
description: 'Number 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
type: object
GoogleRpcError:
type: object
description: The error envelope every Google API returns.
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
status:
type: string
details:
type: array
items:
type: object
x-provenance:
method: harvested
publisher: Google
source: https://calendar-json.googleapis.com/$discovery/rest?version=v3
note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261109)