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

# Reply To Thread

> Post a reply in a conversation on behalf of an AI or a person outside AGO.

The customer sees the reply with the author's name and whether it is an AI. It does not start an
AGO answer. With `internal`, it is a note for your team: neither the customer nor AGO's AI sees it.
Returns 201, or 200 with the reply already posted when `external_id` was sent before.



## OpenAPI

````yaml /openapi-v1.json post /api/v1/conversations/{thread_id}/messages
openapi: 3.1.0
info:
  title: AGO Public API
  version: 1.0.0
  description: Programmatic access to your AGO workspace.
servers:
  - url: https://{tenant_id}.api.useago.com
    description: AGO Public API v1
    variables:
      tenant_id:
        default: your-tenant-id
        description: Your AGO tenant identifier
security: []
paths:
  /api/v1/conversations/{thread_id}/messages:
    post:
      tags:
        - Conversations
      summary: Reply To Thread
      description: >-
        Post a reply in a conversation on behalf of an AI or a person outside
        AGO.


        The customer sees the reply with the author's name and whether it is an
        AI. It does not start an

        AGO answer. With `internal`, it is a note for your team: neither the
        customer nor AGO's AI sees it.

        Returns 201, or 200 with the reply already posted when `external_id` was
        sent before.
      operationId: v1_reply_to_conversation
      parameters:
        - in: path
          name: thread_id
          schema:
            format: uuid
            title: Thread Id
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConversationReplyIn'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageOut'
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageOut'
      security:
        - ScopedAPIKeyAuth: []
components:
  schemas:
    ConversationReplyIn:
      additionalProperties: false
      properties:
        content:
          maxLength: 100000
          minLength: 1
          title: Content
          type: string
        author:
          $ref: '#/components/schemas/ReplyAuthorIn'
        external_id:
          anyOf:
            - maxLength: 255
              minLength: 1
              type: string
            - type: 'null'
          description: >-
            Your id for this reply: sending it again returns the reply already
            posted.
          title: External Id
        internal:
          default: false
          description: >-
            True for an internal note: your team sees it in the conversation,
            the customer and AGO's AI never do.
          title: Internal
          type: boolean
      required:
        - content
        - author
      title: ConversationReplyIn
      type: object
    MessageOut:
      properties:
        object:
          default: message
          title: Object
          type: string
        id:
          title: Id
          type: string
        thread_id:
          title: Thread Id
          type: string
        content:
          default: ''
          title: Content
          type: string
        role:
          anyOf:
            - type: string
            - type: 'null'
          title: Role
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        sources:
          default: []
          items:
            $ref: '#/components/schemas/MessageSourceOut'
          title: Sources
          type: array
        external_agent:
          anyOf:
            - $ref: '#/components/schemas/ExternalAgentOut'
            - type: 'null'
        internal:
          default: false
          description: 'An internal note: only your team sees it.'
          title: Internal
          type: boolean
      required:
        - id
        - thread_id
      title: MessageOut
      type: object
    ReplyAuthorIn:
      additionalProperties: false
      properties:
        type:
          enum:
            - ai
            - human
          title: Type
          type: string
        source:
          description: >-
            Your system's name, e.g. acme-helpdesk; agent ids are unique within
            it.
          pattern: ^[a-z0-9][a-z0-9._-]{0,99}$
          title: Source
          type: string
        id:
          description: The agent's id in your system.
          maxLength: 255
          minLength: 1
          title: Id
          type: string
        name:
          description: Shown to the customer above the reply.
          maxLength: 255
          minLength: 1
          title: Name
          type: string
      required:
        - type
        - source
        - id
        - name
      title: ReplyAuthorIn
      type: object
    MessageSourceOut:
      properties:
        object:
          default: message_source
          title: Object
          type: string
        document_id:
          title: Document Id
          type: string
        page_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Page Id
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        position:
          title: Position
          type: integer
      required:
        - document_id
        - position
      title: MessageSourceOut
      type: object
    ExternalAgentOut:
      properties:
        name:
          title: Name
          type: string
        type:
          enum:
            - ai
            - human
          title: Type
          type: string
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        source:
          anyOf:
            - type: string
            - type: 'null'
          title: Source
        external_id:
          anyOf:
            - type: string
            - type: 'null'
          title: External Id
      required:
        - name
        - type
      title: ExternalAgentOut
      type: object
  securitySchemes:
    ScopedAPIKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

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