> ## 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

> Retrieves all calendar events for an assistant, identified by a JWT token.



## OpenAPI

````yaml api-reference/openapi-calendar.json post /get-events
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:
    post:
      tags:
        - Assistant
      summary: Fetch assistant's events
      description: >-
        Retrieves all calendar events for an assistant, identified by a JWT
        token.
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                token:
                  type: string
                  description: JWT token of the assistant.
                  example: eyJh...
              required:
                - token
      responses:
        '200':
          description: A list of events.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Event'
              example:
                - title: Project Deadline
                  start: '2025-08-01T17:00:00Z'
                  color: '#dc3545'
                  allDay: false
                  alarm: true
                - title: Catalina Project Sync
                  start: '2025-08-05T10:00:00Z'
                  color: '#007bff'
                  allDay: false
                  alarm: true
        '400':
          description: Invalid request or missing token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                status: invalid
                message: Token missing
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
    Error:
      type: object
      properties:
        status:
          type: string
          example: invalid
        message:
          type: string
          example: Invalid or expired token

````