> ## 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 (mobile)

> Adds a single new event to an assistant's calendar, initiated by a connected mobile user.



## OpenAPI

````yaml api-reference/openapi-calendar.json post /add-event-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:
  /add-event-mobile:
    post:
      tags:
        - Mobile User
      summary: Add a new event via mobile app
      description: >-
        Adds a single new event to an assistant's calendar, initiated by a
        connected mobile user.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddEventMobilePayload'
            example:
              token: eyJh...
              assistant_id: assistant-abc-789
              title: Dentist Appointment
              start: '2025-08-12T16:00:00Z'
              color: '#17a2b8'
              allDay: false
              alarm: true
      responses:
        '200':
          description: Status of the event addition or error if not connected.
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/Success'
                  - $ref: '#/components/schemas/Error'
                  - $ref: '#/components/schemas/NotConnectedError'
              examples:
                success:
                  summary: Event added by mobile user
                  value:
                    status: success
                    message: Event added successfully
                notConnected:
                  summary: User is not connected to the assistant
                  value:
                    status: error
                    type: not_connected
components:
  schemas:
    AddEventMobilePayload:
      type: object
      properties:
        token:
          type: string
          example: eyJh...
        assistant_id:
          type: string
          example: assistant-abc-789
        title:
          type: string
          example: Doctor's Appointment
        start:
          type: string
          format: date-time
          example: '2025-08-20T09:00:00Z'
        color:
          type: string
          example: '#17a2b8'
        allDay:
          type: boolean
          example: false
        alarm:
          type: boolean
          example: true
      required:
        - token
        - assistant_id
        - title
        - start
        - color
        - allDay
        - alarm
    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
    NotConnectedError:
      type: object
      properties:
        status:
          type: string
          example: error
        type:
          type: string
          example: not_connected

````