> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gleap.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Voice reply (dictate or smart)



## OpenAPI

````yaml https://api.gleap.io/api-docs.json post /tickets/{ticketId}/voice-reply
openapi: 3.0.0
info:
  title: gleap-server
  version: 14.0.0
  contact: {}
servers:
  - url: https://api.gleap.io/v3
security: []
paths:
  /tickets/{ticketId}/voice-reply:
    post:
      tags:
        - Ticket
      summary: Voice reply (dictate or smart)
      operationId: VoiceReply
      parameters:
        - in: path
          name: ticketId
          required: true
          schema:
            type: string
        - in: header
          name: project
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              properties:
                audioUrl:
                  type: string
                  description: Public URL of the uploaded audio clip (from POST /uploads).
                mode:
                  type: string
                  enum:
                    - dictate
                    - smart
                  description: >-
                    `dictate` returns the transcript; `smart` returns a drafted
                    reply.
              required:
                - audioUrl
                - mode
              type: object
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                properties:
                  reply:
                    type: string
                  transcript:
                    type: string
                type: object
      security:
        - jwt: []
components:
  securitySchemes:
    jwt:
      type: http
      scheme: bearer
      bearerFormat: JWT

````