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

> Retrieves a list of phone numbers and basic info of mobile app users connected to the authenticated assistant device. The assistant's token is passed in the body.



## OpenAPI

````yaml api-reference/openapi.json post /get-connected-users
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-users:
    post:
      tags:
        - Assistant Management
      summary: Get mobile app users connected to an assistant
      description: >-
        Retrieves a list of phone numbers and basic info of mobile app users
        connected to the authenticated assistant device. The assistant's token
        is passed in the body.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserToken'
      responses:
        '200':
          description: List of connected mobile app users.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    contact_user_id:
                      type: integer
                      example: 201
                    contact_name:
                      type: string
                      example: Mobile App User
                    phone_number:
                      type: string
                      example: '+34699887766'
                    image:
                      type: string
                      nullable: true
                      example: http://example.com/app_user_image.jpg
        '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...
    ErrorResponse:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
          example: Database connection failed

````