> ## 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 v1accountsupporttickets messages

> Appends a message and answers the whole conversation. A message on a resolved ticket reopens it, which takes an open slot and is refused with 409 `too_many_open_tickets` when the customer has none; a closed or merged ticket answers 409 `ticket_closed`.



## OpenAPI

````yaml https://raw.githubusercontent.com/kewldan/omniflow/main/api/openapi.yaml post /v1/account/support/tickets/{ticketID}/messages
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/account/support/tickets/{ticketID}/messages:
    post:
      tags:
        - account
      description: >-
        Appends a message and answers the whole conversation. A message on a
        resolved ticket reopens it, which takes an open slot and is refused with
        409 `too_many_open_tickets` when the customer has none; a closed or
        merged ticket answers 409 `ticket_closed`.
      operationId: replyToAccountSupportTicket
      parameters:
        - $ref: '#/components/parameters/AccountTicketID'
        - $ref: '#/components/parameters/CSRFToken'
        - $ref: '#/components/parameters/IdempotencyKeyOptional'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - message
              properties:
                message:
                  type: string
                  minLength: 1
      responses:
        '200':
          description: Sent
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountConversation'
        '404':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
        '429':
          $ref: '#/components/responses/Problem'
components:
  parameters:
    AccountTicketID:
      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
    IdempotencyKeyOptional:
      in: header
      name: Idempotency-Key
      required: false
      description: >-
        Optional here. Supplying one makes a repeated submission resolve to the
        record already created instead of a second one.
      schema:
        type: string
        minLength: 8
        maxLength: 128
  schemas:
    AccountConversation:
      type: object
      required:
        - ticket
        - messages
      properties:
        ticket:
          $ref: '#/components/schemas/AccountTicket'
        messages:
          type: array
          items:
            type: object
            required:
              - id
              - author
              - body
              - unread
              - createdAt
              - attachments
            properties:
              id:
                type: integer
                format: int64
              author:
                type: string
                enum:
                  - customer
                  - operator
                  - system
              body:
                type: string
              unread:
                type: boolean
              createdAt:
                type: string
                format: date-time
              attachments:
                type: array
                items:
                  $ref: '#/components/schemas/AccountAttachment'
    AccountTicket:
      type: object
      required:
        - id
        - subject
        - status
        - priority
        - open
        - canReply
        - unreadCount
        - messageCount
        - createdAt
        - updatedAt
        - lastMessageAt
      properties:
        id:
          type: string
          format: uuid
        subject:
          type: string
        status:
          type: string
          enum:
            - open
            - pending
            - resolved
            - closed
            - merged
        priority:
          type: string
          enum:
            - low
            - normal
            - high
            - urgent
        open:
          type: boolean
          description: Counts against the open-conversation quota.
        canReply:
          type: boolean
        unreadCount:
          type: integer
        messageCount:
          type: integer
        mergedIntoTicketId:
          type: string
          format: uuid
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        lastMessageAt:
          type: string
          format: date-time
    AccountAttachment:
      type: object
      required:
        - id
        - kind
        - fileName
        - mediaType
        - sizeBytes
        - downloadable
        - createdAt
      properties:
        id:
          type: string
          format: uuid
        messageId:
          type: integer
          format: int64
          description: Present on the upload response; the message the file was hung on.
        kind:
          type: string
          enum:
            - photo
            - document
        fileName:
          type: string
        mediaType:
          type: string
        sizeBytes:
          type: integer
          format: int64
        downloadable:
          type: boolean
          description: False for a file that lives in Telegram rather than here.
        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.