---
title: "Send Archived Chat Message"
method: POST
path: "/workspaces/{workspace_id}/chat-archive/{chat_id}/messages"
tags: ["chat-archive"]
---

# Send Archived Chat Message

`POST /workspaces/{workspace_id}/chat-archive/{chat_id}/messages`

## Request

- Base URL: `https://api.useauxos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.useauxos.com/workspaces/{workspace_id}/chat-archive/{chat_id}/messages`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/useauxos/apis/auxos/docs/workspaces/:workspace_id/chat-archive/:chat_id/messages/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `chat_id` string, uuid, required
- `workspace_id` string, uuid, required

## Request body

- SendMessageRequest
  - `message` SendChatUserMessage, required
    - `id` string, uuid, nullable
    - `text` string
    - `attachments` ChatImageAttachment[]
      - `bucket` string, required
      - `path` string, required
      - `title` string, nullable
  - `population_id` string, uuid, nullable
  - `persona_id` string, uuid, nullable
  - `title` string, nullable
  - `chat_name` string, nullable
  - `demographic_filter` object, nullable
  - `stream` boolean

## Response `200`

Successful Response

- SendMessageResponse
  - `status` 'completed', required
  - `chat_id` string, uuid, required
  - `message` ArchivedChatMessage, required
    - `id` string, uuid, required
    - `role` 'user' | 'assistant', required
    - `metadata` ArchivedChatMessageMetadata, required
      - `chatId` string, required
      - `custom` ArchivedChatMessageCustom
        - `demographicFilter` object, required
    - `parts` union[]
      - union
        - TextPart
          - `type` 'text'
          - `text` string, required
        - FilePart
          - `type` 'file'
          - `url` string, required
          - `mediaType` string, required
          - `filename` string, nullable
        - ProgressToolPart
          - `type` 'dynamic-tool'
          - `toolName` string, required
          - `toolCallId` string, required
          - `title` string, required
          - `providerExecuted` true
          - `state` 'output-available'
          - `input` object
          - `output` ProgressToolOutput, required
            - `status` 'done' | 'skipped' | 'error', required
            - `summary` object, nullable
        - ResponseClustersPart
          - `type` 'data-responseClusters'
          - `data` PopulationClusters, required
            - `question` string
            - `headline` string
            - `total` integer
            - `codes` ResponseClusterCode[]
              - …
  - `answer` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/useauxos/apis/auxos.md) - [All operations](https://skmtc.dev/useauxos/apis/auxos/llms.txt) - [OpenAPI document](https://skmtc.dev/useauxos/apis/auxos/revisions/2f853c0b59f4?raw)
