> ## Documentation Index
> Fetch the complete documentation index at: https://omniflow-vpn.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Post v1panelsupporttickets reply

> Requires support.write and an Idempotency-Key, which becomes the message's dedupe key; a repeated key answers 200 with an empty message. The reply is written here and pushed by the bot's support loop. A merged ticket is refused with 409.



## OpenAPI

````yaml https://raw.githubusercontent.com/kewldan/omniflow/main/api/openapi.yaml post /v1/panel/support/tickets/{ticketID}/reply
openapi: 3.0.3
info:
  title: Omniflow API
  version: 1.0.0
  description: >-
    Customer, commerce, payment, wallet, fulfillment, and operations API for
    Omniflow.
servers: []
security: []
paths:
  /v1/panel/support/tickets/{ticketID}/reply:
    post:
      tags:
        - panel
      description: >-
        Requires support.write and an Idempotency-Key, which becomes the
        message's dedupe key; a repeated key answers 200 with an empty message.
        The reply is written here and pushed by the bot's support loop. A merged
        ticket is refused with 409.
      operationId: replyToPanelSupportTicket
      parameters:
        - $ref: '#/components/parameters/PanelTicketID'
        - $ref: '#/components/parameters/CSRFToken'
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - body
              properties:
                body:
                  type: string
                  minLength: 1
                  maxLength: 4000
                cannedResponseId:
                  type: string
                  format: uuid
      responses:
        '200':
          description: Message
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PanelSupportMessage'
        '403':
          $ref: '#/components/responses/Problem'
        '404':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
components:
  parameters:
    PanelTicketID:
      in: path
      name: ticketID
      required: true
      schema:
        type: string
        format: uuid
    CSRFToken:
      in: header
      name: X-CSRF-Token
      required: true
      description: >-
        Echoes the token from the current session. Required on every unsafe
        method.
      schema:
        type: string
    IdempotencyKey:
      in: header
      name: Idempotency-Key
      required: true
      schema:
        type: string
        minLength: 8
        maxLength: 128
  schemas:
    PanelSupportMessage:
      type: object
      required:
        - id
        - sender
        - body
        - delivered
        - createdAt
        - attachments
      properties:
        id:
          type: integer
          format: int64
        sender:
          type: string
          enum:
            - customer
            - operator
            - system
        body:
          type: string
        authorName:
          type: string
        delivered:
          type: boolean
          description: Telegram accepted the push.
        delivery:
          type: string
          enum:
            - queued
            - retrying
            - delivered
            - undeliverable
            - failed
          description: >-
            The push outcome for an operator or system message, absent on a
            customer message. `undeliverable` means the customer blocked the
            bot, deleted their account, or has no Telegram identity; they read
            the message in the web panel.
        deliveryReason:
          type: string
          description: >-
            The classified code behind an undeliverable, failed, or retrying
            push.
        createdAt:
          type: string
          format: date-time
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/PanelSupportAttachment'
    PanelSupportAttachment:
      type: object
      required:
        - id
        - messageId
        - kind
        - fileName
        - mediaType
        - sizeBytes
        - origin
        - downloadable
        - createdAt
      properties:
        id:
          type: string
          format: uuid
        messageId:
          type: integer
          format: int64
        kind:
          type: string
          enum:
            - photo
            - document
        fileName:
          type: string
        mediaType:
          type: string
        sizeBytes:
          type: integer
          format: int64
        origin:
          type: string
          enum:
            - web
            - telegram
          description: >-
            `web` for a file this installation holds; `telegram` for a reference
            to a file in the customer's chat.
        downloadable:
          type: boolean
        createdAt:
          type: string
          format: date-time
    Problem:
      type: object
      required:
        - type
        - title
        - status
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        request_id:
          type: string
  responses:
    Problem:
      description: Request failed
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'

````

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