---
updatedAt: 2026-04-15T11:43:58.000Z
agentTools:
  projectIndex: https://developers.happeo.com/llms.txt
---

# Continue a discussion with a new message

Sends a new user message to continue the conversation. Returns an NDJSON stream with AI response chunks and final entry data.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Chat API",
    "version": "1.0",
    "description": "Chat API for managing discussions, entries, tool tasks, and AI conversations with streaming responses."
  },
  "tags": [
    {
      "name": "Chat",
      "description": "Chat system endpoints for managing discussions, entries, and AI conversations"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-universe-auth"
      }
    },
    "schemas": {
      "ContinueDiscussionDTO": {
        "type": "object",
        "required": [
          "message"
        ],
        "properties": {
          "message": {
            "type": "string",
            "description": "The user message to continue the discussion",
            "example": "Can you help me understand this document?"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Optional metadata as key-value pairs",
            "example": {
              "pageName": "This is an awesome page",
              "pageDescription": "These will be injected to the prompt as variables"
            }
          },
          "attachments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DiscussionEntryAttachmentDTO"
            },
            "description": "Optional attachments associated with the message"
          },
          "context": {
            "$ref": "#/components/schemas/DiscussionContextDTO"
          }
        }
      },
      "DiscussionContextDTO": {
        "type": "object",
        "properties": {
          "location": {
            "type": "string",
            "description": "The location context for the discussion (defaults to \"happeo\")",
            "example": "happeo"
          },
          "locationId": {
            "type": "string",
            "description": "Optional identifier for the location",
            "example": "12345"
          }
        }
      },
      "DiscussionEntryAttachmentDTO": {
        "type": "object",
        "required": [
          "id",
          "title",
          "mimeType"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the attachment",
            "example": "attachment-123"
          },
          "title": {
            "type": "string",
            "description": "Display title of the attachment",
            "example": "Project Requirements.pdf"
          },
          "mimeType": {
            "type": "string",
            "enum": [
              "application/pdf",
              "audio/mpeg",
              "audio/mp3",
              "audio/wav",
              "image/png",
              "image/jpeg",
              "image/webp",
              "text/plain",
              "video/mov",
              "video/mpeg",
              "video/mp4",
              "video/mpg",
              "video/avi",
              "video/wmv",
              "video/mpegps",
              "video/flv"
            ],
            "description": "MIME type of the attachment, must be one of the supported types",
            "example": "application/pdf"
          },
          "data": {
            "type": "string",
            "description": "Base64 encoded content of the attachment (will not be stored, only used for processing)",
            "example": "base64-encoded-content"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": true,
            "description": "Optional metadata as key-value pairs",
            "example": {
              "fileSize": "1024",
              "originalName": "document.pdf"
            }
          }
        }
      }
    }
  },
  "paths": {
    "/chats/{discussionId}/entries": {
      "post": {
        "summary": "Continue a discussion with a new message",
        "description": "Sends a new user message to continue the conversation. Returns an NDJSON stream with AI response chunks and final entry data.",
        "tags": [
          "Chat"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "discussionId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the discussion"
          },
          {
            "in": "header",
            "name": "x-universe-auth",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "JWT authentication token"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContinueDiscussionDTO"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Discussion continued with streaming AI response",
            "content": {
              "application/x-ndjson": {
                "schema": {
                  "type": "string",
                  "description": "NDJSON stream with AI response chunks and final entry data"
                }
              }
            }
          },
          "400": {
            "description": "Bad request - invalid message or context"
          },
          "401": {
            "description": "Unauthorized - invalid or missing authentication"
          },
          "404": {
            "description": "Discussion not found"
          },
          "500": {
            "description": "Internal server error"
          }
        }
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ]
}
```