> ## Documentation Index
> Fetch the complete documentation index at: https://docs.member.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Hub Event Calendar Subscription

> The signed-in member's private calendar subscription link for this hub.

Returns the feed address plus ready-made links that add it to Google
Calendar, Outlook and Apple Calendar. The link is created the first time it
is requested and is the same on every later call. It is private to the
member: anyone who holds it can read their event calendar, and it stops
working when their membership ends. Returns 404 for anyone who is not a
current member, or when Events is not available to them.



## OpenAPI

````yaml /openapi/mio-openapi.json get /api/v1/hubs/{hub_id}/events/calendar-subscription
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/hubs/{hub_id}/events/calendar-subscription:
    get:
      tags:
        - hub-events
      summary: Hub Event Calendar Subscription
      description: >-
        The signed-in member's private calendar subscription link for this hub.


        Returns the feed address plus ready-made links that add it to Google

        Calendar, Outlook and Apple Calendar. The link is created the first time
        it

        is requested and is the same on every later call. It is private to the

        member: anyone who holds it can read their event calendar, and it stops

        working when their membership ends. Returns 404 for anyone who is not a

        current member, or when Events is not available to them.
      operationId: >-
        hub_events.get_hub_events_get_hubs_by_hub_id_events_calendar_subscription
      parameters:
        - in: path
          name: hub_id
          required: true
          schema:
            title: Hub Id
            type: string
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/CalendarSubscriptionResponse'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    CalendarSubscriptionResponse:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/CalendarSubscriptionResource'
      required:
        - data
      title: CalendarSubscriptionResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    CalendarSubscriptionResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/CalendarSubscriptionAttributes'
        id:
          description: The hub id.
          title: Id
          type: string
        type:
          const: hub_event_calendar_subscriptions
          default: hub_event_calendar_subscriptions
          title: Type
          type: string
      required:
        - id
        - attributes
      title: CalendarSubscriptionResource
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    CalendarSubscriptionAttributes:
      additionalProperties: false
      properties:
        feed_url:
          description: >-
            Private calendar feed address. Anyone holding it can read the
            member's event calendar, so it is only ever returned to that member.
          title: Feed Url
          type: string
        google_url:
          description: Opens Google Calendar on its add-by-link step for this feed.
          title: Google Url
          type: string
        outlook_url:
          description: Opens Outlook on its add-from-web step for this feed.
          title: Outlook Url
          type: string
        webcal_url:
          description: >-
            The same feed with a webcal scheme, for Apple Calendar and other
            apps.
          title: Webcal Url
          type: string
      required:
        - feed_url
        - webcal_url
        - google_url
        - outlook_url
      title: CalendarSubscriptionAttributes
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.