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

# Add event

> Adds a single new event to the assistant's calendar. The assistant is identified by the provided JWT token.



## OpenAPI

````yaml api-reference/openapi-calendar.json post /add-event
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:
  /add-event:
    post:
      tags:
        - Assistant
      summary: Add a new event for an assistant
      description: >-
        Adds a single new event to the assistant's calendar. The assistant is
        identified by the provided JWT token.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddEventAssistantPayload'
            example:
              token: eyJh...
              title: New Client Onboarding
              start: '2025-07-30T09:30:00Z'
              color: '#28a745'
              allDay: false
      responses:
        '200':
          description: Status of the event addition.
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/Success'
                  - $ref: '#/components/schemas/Error'
              examples:
                success:
                  summary: Event added
                  value:
                    status: success
                    message: Event added successfully
                error:
                  summary: Failed to add event
                  value:
                    status: error
                    message: Database connection failed
components:
  schemas:
    AddEventAssistantPayload:
      type: object
      properties:
        token:
          type: string
          example: eyJh...
        title:
          type: string
          example: Performance Review
        start:
          type: string
          format: date-time
          example: '2025-08-04T13:00:00Z'
        color:
          type: string
          example: '#ffc107'
        allDay:
          type: boolean
          example: false
      required:
        - token
        - title
        - start
        - color
        - allDay
    Success:
      type: object
      properties:
        status:
          type: string
          example: success
        message:
          type: string
          example: Event added successfully
    Error:
      type: object
      properties:
        status:
          type: string
          example: invalid
        message:
          type: string
          example: Invalid or expired token

````