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

# Connected assistants

> Retrieves a list of all assistants connected to the authenticated mobile app user. The user's token is passed in the body.



## OpenAPI

````yaml api-reference/openapi.json post /get-connected-assistants
openapi: 3.0.0
info:
  title: Cati Main Server API
  version: 1.0.0
  description: >-
    API for managing Cati assistant users, app users, contacts, media,
    notifications and preferences.
servers:
  - url: /
security: []
paths:
  /get-connected-assistants:
    post:
      tags:
        - Assistant Management
      summary: Get assistants connected to a mobile app user
      description: >-
        Retrieves a list of all assistants connected to the authenticated mobile
        app user. The user's token is passed in the body.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserToken'
      responses:
        '200':
          description: List of connected assistants.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetConnectedAssistantsResponse'
        '401':
          description: Invalid or expired token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Database or server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    UserToken:
      type: object
      properties:
        token:
          type: string
          description: JWT Access Token for authentication.
          example: eyJ...
    GetConnectedAssistantsResponse:
      allOf:
        - $ref: '#/components/schemas/SuccessResponse'
        - type: object
          properties:
            assistants:
              type: array
              items:
                $ref: '#/components/schemas/ConnectedAssistant'
    ErrorResponse:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
          example: Database connection failed
    SuccessResponse:
      type: object
      properties:
        status:
          type: string
          example: success
        message:
          type: string
          example: Operation completed successfully
    ConnectedAssistant:
      type: object
      properties:
        id:
          type: integer
          example: 101
        name:
          type: string
          example: Cati Owner
        image:
          type: string
          nullable: true
          example: http://example.com/owner_image.jpg
        phone:
          type: string
          example: '+34612345678'

````