Google Calendar Calendars API

The Calendars API from Google Calendar — 6 operation(s) for calendars.

GitHub OpenAPI

Operations 7

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 Evangelist overlay

POST /calendar/v3/calendars/{calendarId}/transferOwnership Transfer ownership of a secondary calendar · Transfer ownership calendars #
Ask an LLM
“How do I hand over a secondary calendar to another user in my Workspace?”
“Can I transfer a calendar I own to someone else?”
Tell an agent
Transfer ownership of calendar {calendarId} to {newDataOwner}.
Hand over secondary calendar {calendarId} to {newDataOwner} using admin access.
GET /calendar/v3/calendars/{calendarId} Get a calendar's metadata · Get calendars #
Ask an LLM
“What title, time zone and description does a calendar have?”
“Can I look up one calendar's metadata by its ID?”
Tell an agent
Show metadata for calendar {calendarId}.
Get the title and time zone of calendar {calendarId}.
DELETE /calendar/v3/calendars/{calendarId} Delete a secondary calendar · Delete calendars #
Ask an LLM
“How do I delete a secondary calendar?”
“Can I remove a calendar I no longer use?”
Tell an agent destructive · confirm first
Delete calendar {calendarId}.
Remove secondary calendar {calendarId}.
PUT /calendar/v3/calendars/{calendarId} Replace a calendar's metadata · Update calendars #
Ask an LLM
“How do I change a calendar's time zone or description?”
“Can I overwrite a calendar's metadata in full?”
Tell an agent
Set calendar {calendarId} time zone to {timeZone}.
Replace the description of calendar {calendarId} with {description}.
PATCH /calendar/v3/calendars/{calendarId} Change selected fields of a calendar · Patch calendars #
Ask an LLM
“Can I change just a calendar's title without resending the rest of its metadata?”
“How do I update only a calendar's location?”
Tell an agent
Change the title of calendar {calendarId} to {summary}.
Set the location of calendar {calendarId} to {location}.
POST /calendar/v3/calendars Create a secondary calendar · Insert calendars #
Ask an LLM
“How do I create a new secondary calendar?”
“Who becomes the data owner of a calendar I create?”
Tell an agent
Create a secondary calendar titled {summary}.
Create calendar {summary} in time zone {timeZone}.
POST /calendar/v3/calendars/{calendarId}/clear Clear all events from a primary calendar · Clear calendars #
Ask an LLM
“How do I wipe every event off my primary calendar?”
“Can I clear a user's primary calendar without deleting it?”
Tell an agent destructive · confirm first
Clear all events from primary calendar {calendarId}.
Empty the primary calendar {calendarId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-calendar:google-calendar-calendars-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-calendar-calendars-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Calendar API Calendars 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/calendars/{calendarId}/transferOwnership:
    post:
      operationId: calendar.calendars.transferOwnership
      summary: Transfer ownership calendars
      description: "Transfers a secondary calendar between users within a Google Workspace organization. Requires user authentication\
        \ with Manage Calendars administrator privilege, and one of the following authorization scopes: \n- https://www.googleapis.com/auth/calendar\
        \ \n- https://www.googleapis.com/auth/calendar.calendars In the request, set useAdminAccess to true. The secondary\
        \ calendar must be active to be transferred. Transferring disabled or deleted calendars isn't supported."
      parameters:
      - name: calendarId
        in: path
        required: true
        description: Calendar identifier. To retrieve calendar IDs, call the calendarList.list method.
        schema:
          type: string
      - name: newDataOwner
        in: query
        required: true
        description: The email address of a user who will become the data owner of the calendar.
        schema:
          type: string
      - name: useAdminAccess
        in: query
        required: true
        description: When true, the method runs using the user's Google Workspace administrator privileges. The calling user
          must be a Google Workspace administrator with the Manage Calendars privilege. This method currently only supports
          admin access, thus only true is accepted for this field.
        schema:
          type: boolean
      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.calendars
      - apiKey: []
      tags:
      - Calendars
  /calendar/v3/calendars/{calendarId}:
    get:
      operationId: calendar.calendars.get
      summary: Get calendars
      description: Returns metadata for a calendar.
      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/Calendar'
        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.calendars
        - https://www.googleapis.com/auth/calendar.calendars.readonly
        - https://www.googleapis.com/auth/calendar.readonly
      - apiKey: []
      tags:
      - Calendars
    delete:
      operationId: calendar.calendars.delete
      summary: Delete calendars
      description: Deletes a secondary calendar. Use calendars.clear for clearing all events on primary calendars.
      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: &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.calendars
      - apiKey: []
      tags:
      - Calendars
    put:
      operationId: calendar.calendars.update
      summary: Update calendars
      description: Updates metadata for a calendar.
      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
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Calendar'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Calendar'
        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.calendars
      - apiKey: []
      tags:
      - Calendars
    patch:
      operationId: calendar.calendars.patch
      summary: Patch calendars
      description: Updates metadata for a calendar. 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
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Calendar'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Calendar'
        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.app.created
        - https://www.googleapis.com/auth/calendar.calendars
      - apiKey: []
      tags:
      - Calendars
  /calendar/v3/calendars:
    post:
      operationId: calendar.calendars.insert
      summary: Insert calendars
      description: 'Creates a secondary calendar.

        The authenticated user for the request is made the data owner of the new calendar.


        Note: We recommend to authenticate as the intended data owner of the calendar. You can use domain-wide delegation
        of authority to allow applications to act on behalf of a specific user. Don''t use a service account for authentication.
        If you use a service account for authentication, the service account is the data owner, which can lead to unexpected
        behavior. For example, if a service account is the data owner, data ownership cannot be transferred.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Calendar'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Calendar'
        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.app.created
        - https://www.googleapis.com/auth/calendar.calendars
      - apiKey: []
      tags:
      - Calendars
  /calendar/v3/calendars/{calendarId}/clear:
    post:
      operationId: calendar.calendars.clear
      summary: Clear calendars
      description: Clears a primary calendar. This operation deletes all events associated with the primary calendar of an
        account.
      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: &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.calendars
      - apiKey: []
      tags:
      - Calendars
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:
    Calendar:
      type: object
      properties:
        labelProperties:
          $ref: '#/components/schemas/LabelProperties'
          description: Label properties defined on this calendar. If specified, overwrites the existing label properties.
            If not specified, the label properties remain unchanged.
        autoAcceptInvitations:
          description: Whether this calendar automatically accepts invitations. Only valid for resource calendars.
          type: boolean
        summary:
          description: Title of the calendar.
          type: string
        id:
          description: Identifier of the calendar. To retrieve IDs call the calendarList.list() method.
          type: string
        location:
          type: string
          description: Geographic location of the calendar as free-form text. Optional.
        timeZone:
          type: string
          description: The time zone of the calendar. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".)
            Optional.
        kind:
          type: string
          description: Type of the resource ("calendar#calendar").
          default: calendar#calendar
        dataOwner:
          description: The email of the owner of the calendar. Set only for secondary calendars. Read-only.
          type: string
        conferenceProperties:
          $ref: '#/components/schemas/ConferenceProperties'
          description: Conferencing properties for this calendar, for example what types of conferences are allowed.
        workingHours:
          description: Represents the information about the user's working hours. Only available for primary calendars of
            Google Workspace users. To update the working hours, the entire working hours object must be passed. If not specified
            (or passed as null or an empty object), the existing working hours remain unchanged. To disable working hours
            or clear the schedule, set workingHoursEnabled to false (and omit availableTimes or pass an empty list).
          type: object
          properties:
            workingHoursEnabled:
              description: Whether the working hours are enabled for this calendar. Cannot be set to true when availableTimes
                is empty.
              type: boolean
            availableTimes:
              type: array
              items:
                type: object
                properties:
                  periodEnd:
                    description: Period end, in minutes from the start of the day, exclusive. Required.
                    type: integer
                    format: int32
                  dayOfWeek:
                    type: string
                    description: "Day of the week. Required. Possible values are:  \n- \"monday\"\n- \"tuesday\"\n- \"wednesday\"\
                      \n- \"thursday\"\n- \"friday\"\n- \"saturday\"\n- \"sunday\""
                  periodStart:
                    format: int32
                    description: Period start, in minutes from the start of the day, inclusive. Required.
                    type: integer
              description: Working hours. Each availability period represents the user's working hours block during one day.
        description:
          description: Description of the calendar. Optional.
          type: string
        etag:
          description: ETag of the resource.
          type: string
    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."
    EventLabel:
      type: object
      properties:
        name:
          type: string
          description: 'Name of the label. Optional.

            If provided this must have at most 50 characters.'
        id:
          type: string
          description: 'The ID of the label. Optional when inserting a new label. If not provided, a unique ID will be generated.
            Required when updating a label.

            If provided, the ID must be unique within the calendar and follow UUID format.'
        backgroundColor:
          type: string
          description: Background color of the label in hexadecimal format, such as "#039be5". Events with this label are
            displayed in this color. Required.
    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
    LabelProperties:
      properties:
        eventLabels:
          type: array
          description: 'Event labels defined on this calendar. If this is present when updating the calendar, it will replace
            the existing event labels.

            Extend the list to add a new event label, and remove entities from the list to delete a label from calendar.

            Each calendar can have a maximum of 200 labels.'
          items:
            $ref: '#/components/schemas/EventLabel'
      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)