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

# Send a quick reply to a conversation

> Sends one message built from the quick reply; the client does not re-upload its files.
`message` replaces the saved text for this send only, and `file_id` picks the attachment
when the quick reply has several (omitting it there is deprecated and sends them all as one
album). A retry carrying the same `quick_reply_send_id` (or the same album position)
returns the original `message_id` without sending again, and the usage counter is bumped
once per `quick_reply_send_id`.



## OpenAPI

````yaml /api-referansi/openapi.json post /v1/conversations/{id}/messages/quick-reply
openapi: 3.1.0
info:
  title: Flextell API
  version: 0.0.1
  description: >-
    Flextell REST API referansı. Kimlik doğrulama, scope ve istek kuralları için
    API sekmesindeki rehberlere bakın.
servers:
  - url: https://app.flextell.ai/api
    description: Üretim
security:
  - oauth2: []
  - bearer: []
paths:
  /v1/conversations/{id}/messages/quick-reply:
    post:
      tags:
        - Conversation
      summary: Send a quick reply to a conversation
      description: >-
        Sends one message built from the quick reply; the client does not
        re-upload its files.

        `message` replaces the saved text for this send only, and `file_id`
        picks the attachment

        when the quick reply has several (omitting it there is deprecated and
        sends them all as one

        album). A retry carrying the same `quick_reply_send_id` (or the same
        album position)

        returns the original `message_id` without sending again, and the usage
        counter is bumped

        once per `quick_reply_send_id`.
      operationId: conversation.sendQuickReply
      parameters:
        - name: id
          in: path
          required: true
          description: The conversation identifier
          schema:
            type: integer
        - name: X-Tenant
          in: header
          required: true
          description: >-
            Tenant identifier. Send the Tenant ID in the `X-Tenant` header to
            scope API requests to a specific tenant.
          schema:
            type: number
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConversationSendQuickReplyRequest'
      responses:
        '202':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: string
                  data:
                    type: object
                    properties:
                      status:
                        type: string
                        const: queued
                      message_id:
                        type: string
                      conversation_id:
                        type: string
                      quick_reply_id:
                        type: string
                    required:
                      - status
                      - message_id
                      - conversation_id
                      - quick_reply_id
                required:
                  - success
                  - data
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '403':
          $ref: '#/components/responses/AuthorizationException'
        '404':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error_code:
                    type: string
                    const: RESOURCE_NOT_FOUND
                  message:
                    type: string
                  errors:
                    type: 'null'
                  data:
                    type: 'null'
                required:
                  - success
                  - error_code
                  - message
                  - errors
                  - data
        '409':
          $ref: '#/components/responses/CustomerErasedException'
        '422':
          $ref: '#/components/responses/ValidationException'
        '428':
          description: >-
            Mandatory setup is incomplete. Finish the setup wizard first;
            `data.next_step` names the step to continue with.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    examples:
                      - false
                  error_code:
                    type: string
                    enum:
                      - SETUP_REQUIRED
                    examples:
                      - SETUP_REQUIRED
                  message:
                    type: string
                    examples:
                      - Complete the required setup steps to continue.
                  data:
                    type: object
                    properties:
                      next_step:
                        type:
                          - string
                          - 'null'
                        examples:
                          - clinic_info
                    required:
                      - next_step
                required:
                  - success
                  - error_code
                  - message
                  - data
components:
  schemas:
    ConversationSendQuickReplyRequest:
      type: object
      properties:
        quick_reply_id:
          type: integer
          description: The quick reply to send into the conversation.
        message:
          type:
            - string
            - 'null'
          description: >-
            Text to send instead of the quick reply's saved message; the saved
            quick reply is not changed. Omit it to send the saved message, or
            send an empty string to send the attachment without a caption.
          maxLength: 5000
        message_format:
          anyOf:
            - $ref: '#/components/schemas/MessageFormat'
              description: >-
                How `message` is written: `plain` (the default) or `markdown`.
                Ignored when `message` is omitted: the saved text is sent in its
                saved format.
            - type: 'null'
        file_id:
          type:
            - integer
            - 'null'
          description: >-
            The single attachment of the quick reply to send with this request;
            the other attachments are not sent. Omitting it for a quick reply
            with several attachments is deprecated (older mobile builds do
            this): every attachment is then sent as one album, the caption on
            the first.
        quick_reply_send_id:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            Client-generated UUID of this quick-reply selection, shared by every
            request that sends one of its attachments. A retry with the same
            value and `file_id` returns the original `message_id` instead of
            sending again, and the quick reply's usage is counted once per
            value.
        media_group_id:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            Client-generated UUID shared by the images sent together as one
            album.
        media_group_index:
          type:
            - integer
            - 'null'
          description: >-
            Zero-based position of this image in its album; messages are
            delivered in this order.
          minimum: 0
          maximum: 99
      required:
        - quick_reply_id
      title: ConversationSendQuickReplyRequest
    MessageFormat:
      type: string
      enum:
        - plain
        - markdown
      title: MessageFormat
  responses:
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    AuthorizationException:
      description: Authorization error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    CustomerErasedException:
      description: The patient record has been erased and is read-only
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                description: Always false for an error.
                examples:
                  - false
              error_code:
                type: string
                description: Machine-readable error code.
                examples:
                  - CUSTOMER_ERASED
              message:
                type: string
                description: Localized error message.
            required:
              - success
              - error_code
              - message
    ValidationException:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Errors overview.
              errors:
                type: object
                description: A detailed description of each field that failed validation.
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
              - message
              - errors
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://dev.flextell.ai/oauth/authorize
          tokenUrl: https://dev.flextell.ai/oauth/token
          scopes:
            '*': all
    bearer:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.