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

# Send an audio

> Allows a mobile app user to send an audio message to a specific assistant. A push notification is sent to the assistant. The sender's token is passed in the body.



## OpenAPI

````yaml api-reference/openapi.json post /send-audio
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:
  /send-audio:
    post:
      tags:
        - Media
      summary: Send an audio message to an assistant
      description: >-
        Allows a mobile app user to send an audio message to a specific
        assistant. A push notification is sent to the assistant. The sender's
        token is passed in the body.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendMediaRequest'
      responses:
        '200':
          description: Audio message sent successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '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:
    SendMediaRequest:
      type: object
      required:
        - token
        - assistant_id
        - file_path
      properties:
        token:
          type: string
          description: JWT Access Token of the sender (mobile app user).
          example: eyJ...
        assistant_id:
          type: integer
          description: ID of the assistant user to whom the media is sent.
          example: 101
        file_path:
          type: string
          description: Path or URL to the image/audio file.
          example: http://example.com/media/image1.jpg
    SuccessResponse:
      type: object
      properties:
        status:
          type: string
          example: success
        message:
          type: string
          example: Operation completed successfully
    ErrorResponse:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
          example: Database connection failed

````