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

# Add Turn Comment To Agent Conversation Ticket

> Append a turn-level comment to a ticket. Requires viewer access to the ticket's agent.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/convai/triage-tickets/{agentqa_ticket_id}/turn-comments
openapi: 3.1.0
info:
  title: Threetone API Documentation
  description: >-
    This is the documentation for the Threetone API. You can use this API to use
    our service programmatically with API keys sent in the x-api-key header. You
    can create and manage API keys in the dashboard at
    https://threetone.in/app/developers/api-keys.
  version: '1.0'
servers:
  - url: https://api.threetone.in
    description: Production
security: []
paths:
  /v1/convai/triage-tickets/{agentqa_ticket_id}/turn-comments:
    post:
      summary: Add Turn Comment To Agent Conversation Ticket
      description: >-
        Append a turn-level comment to a ticket. Requires viewer access to the
        ticket's agent.
      operationId: add_turn_comment_route
      parameters:
        - name: agentqa_ticket_id
          in: path
          required: true
          schema:
            type: string
            title: Agentqa Ticket Id
        - name: x-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Your API key for programmatic access. Send it in the x-api-key
              header; you can create and manage keys from the Developers page.
            title: X-Api-Key
          description: >-
            Your API key for programmatic access. Send it in the x-api-key
            header; you can create and manage keys from the Developers page.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddTurnCommentRequestModel'
              description: Turn-level comment to append.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentConversationTicketResponseModel'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AddTurnCommentRequestModel:
      properties:
        turn_index:
          type: integer
          minimum: 0
          title: Turn Index
          description: Zero-based index of the transcript turn this comment refers to.
        comment:
          type: string
          maxLength: 10000
          minLength: 1
          title: Comment
          description: What went wrong at this turn.
      type: object
      required:
        - turn_index
        - comment
      title: AddTurnCommentRequestModel
    AgentConversationTicketResponseModel:
      properties:
        agentqa_ticket_id:
          type: string
          title: Agentqa Ticket Id
        workspace_id:
          type: string
          title: Workspace Id
        owner_user_id:
          type: string
          title: Owner User Id
        agent_id:
          type: string
          title: Agent Id
        needs_clustering:
          type: boolean
          title: Needs Clustering
        issue_type:
          anyOf:
            - $ref: '#/components/schemas/AgentConversationTicketIssueType'
            - type: 'null'
        labels:
          items:
            type: string
          type: array
          title: Labels
        conversation_ids:
          items:
            type: string
          type: array
          title: Conversation Ids
        first_seen_unix_secs:
          anyOf:
            - type: integer
            - type: 'null'
          title: First Seen Unix Secs
        last_seen_unix_secs:
          anyOf:
            - type: integer
            - type: 'null'
          title: Last Seen Unix Secs
        qa_comment:
          anyOf:
            - type: string
            - type: 'null'
          title: Qa Comment
        ticket_comments:
          items:
            $ref: '#/components/schemas/TicketCommentResponseModel'
          type: array
          title: Ticket Comments
        turn_comments:
          items:
            $ref: '#/components/schemas/TurnCommentResponseModel'
          type: array
          title: Turn Comments
        status:
          $ref: '#/components/schemas/AgentConversationTicketStatus'
        source:
          $ref: '#/components/schemas/AgentConversationTicketSource'
        assignee_user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Assignee User Id
        created_at_unix_secs:
          type: integer
          title: Created At Unix Secs
        updated_at_unix_secs:
          type: integer
          title: Updated At Unix Secs
      type: object
      required:
        - agentqa_ticket_id
        - workspace_id
        - owner_user_id
        - agent_id
        - needs_clustering
        - issue_type
        - labels
        - conversation_ids
        - first_seen_unix_secs
        - last_seen_unix_secs
        - qa_comment
        - ticket_comments
        - turn_comments
        - status
        - source
        - assignee_user_id
        - created_at_unix_secs
        - updated_at_unix_secs
      title: AgentConversationTicketResponseModel
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AgentConversationTicketIssueType:
      type: string
      enum:
        - knowledge_gap
        - incorrect_information
        - documentation_gap
        - product_feedback
        - platform_bug
        - tool_issue
        - missing_tool
        - unnecessary_escalation
        - wrong_action
      title: AgentConversationTicketIssueType
    TicketCommentResponseModel:
      properties:
        comment:
          type: string
          title: Comment
        created_at_unix_secs:
          type: integer
          title: Created At Unix Secs
        owner_user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Owner User Id
      type: object
      required:
        - comment
        - created_at_unix_secs
        - owner_user_id
      title: TicketCommentResponseModel
    TurnCommentResponseModel:
      properties:
        turn_index:
          type: integer
          title: Turn Index
        comment:
          type: string
          title: Comment
        created_at_unix_secs:
          type: integer
          title: Created At Unix Secs
        owner_user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Owner User Id
      type: object
      required:
        - turn_index
        - comment
        - created_at_unix_secs
        - owner_user_id
      title: TurnCommentResponseModel
    AgentConversationTicketStatus:
      type: string
      enum:
        - open
        - in_progress
        - resolved
        - merged
      title: AgentConversationTicketStatus
    AgentConversationTicketSource:
      type: string
      enum:
        - qa
        - agent
        - manual
      title: AgentConversationTicketSource
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````