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

# Get events (mobile)

> Retrieves all calendar events for a specific assistant, verifying that the mobile user (identified by token) is connected to that assistant.



## OpenAPI

````yaml api-reference/openapi-calendar.json post /get-events-mobile
openapi: 3.0.0
info:
  title: Calendar API
  description: >-
    API for managing calendar events for the Catalina Project. Includes examples
    for all endpoints.
  version: 1.0.1
  contact:
    name: Markus Urban
servers:
  - url: /
security: []
paths:
  /get-events-mobile:
    post:
      tags:
        - Mobile User
      summary: Fetch assistant's events for a connected mobile user
      description: >-
        Retrieves all calendar events for a specific assistant, verifying that
        the mobile user (identified by token) is connected to that assistant.
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                token:
                  type: string
                  description: JWT token of the mobile user.
                  example: eyJh...
                assistant_id:
                  type: string
                  description: The ID of the assistant whose events are being requested.
                  example: assistant-abc-789
              required:
                - token
                - assistant_id
      responses:
        '200':
          description: A list of events or an error if not connected.
          content:
            application/json:
              schema:
                oneOf:
                  - type: array
                    items:
                      $ref: '#/components/schemas/Event'
                  - $ref: '#/components/schemas/NotConnectedError'
              examples:
                success:
                  summary: Successful retrieval of events
                  value:
                    - title: Quarterly Review
                      start: '2025-07-20T11:00:00Z'
                      color: '#ffc107'
                      allDay: false
                      alarm: true
                notConnected:
                  summary: User is not connected to the assistant
                  value:
                    status: error
                    type: not_connected
components:
  schemas:
    Event:
      type: object
      properties:
        title:
          type: string
          example: Team Meeting
        start:
          type: string
          format: date-time
          example: '2025-07-25T14:00:00Z'
        color:
          type: string
          example: '#007bff'
        allDay:
          type: boolean
          example: false
        alarm:
          type: boolean
          example: true
      required:
        - title
        - start
        - color
        - allDay
        - alarm
    NotConnectedError:
      type: object
      properties:
        status:
          type: string
          example: error
        type:
          type: string
          example: not_connected

````