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

> Retrieves all contacts associated with the authenticated assistant device, including connected mobile app users. The assistant's token is passed in the body.



## OpenAPI

````yaml api-reference/openapi.json post /get-contacts
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:
    post:
      tags:
        - Contacts
      summary: Get contacts for an assistant device
      description: >-
        Retrieves all contacts associated with the authenticated assistant
        device, including connected mobile app users. 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 contacts.
          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'
        '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...
    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

````