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

> Retrieves contacts associated with a specific assistant, accessible by a connected mobile app user. The mobile app user's token and the assistant's ID are passed in the body.



## OpenAPI

````yaml api-reference/openapi.json post /get-contacts-mobile
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-contacts-mobile:
    post:
      tags:
        - Contacts
      summary: Get contacts for a specific assistant (from mobile app)
      description: >-
        Retrieves contacts associated with a specific assistant, accessible by a
        connected mobile app user. The mobile app user's token and the
        assistant's ID are passed in the body.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetContactsMobileRequest'
      responses:
        '200':
          description: List of contacts for the specified assistant.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ContactResponse'
        '401':
          description: Token not found, invalid, or expired.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: User not connected to the specified assistant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Database or server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    GetContactsMobileRequest:
      type: object
      required:
        - token
        - assistant_id
      properties:
        token:
          type: string
          description: JWT Access Token of the mobile app user.
          example: eyJ...
        assistant_id:
          type: integer
          description: ID of the assistant whose contacts are being requested.
          example: 101
    ContactResponse:
      type: object
      properties:
        contact_id:
          type: integer
          example: 1
        contact_name:
          type: string
          example: Emergency Contact
        phone_number:
          type: string
          example: '+34600112233'
        image:
          type: string
          nullable: true
          example: http://example.com/contact_image.jpg
    ErrorResponse:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
          example: Database connection failed

````