---
title: "Save a message to a conversation"
method: POST
path: "/lami/conversation/workflow/{workflowId}"
tags: ["Lami Agent"]
deprecated: true
---

# Save a message to a conversation

`POST /lami/conversation/workflow/{workflowId}`

> **Deprecated.**

Saves a single message to a conversation.
        If conversationId is null, a new conversation is created.
        Returns the message ID for attachment uploads.

## Path parameters

- `workflowId` integer, required

## Request body

- SaveMessageRequest
  - `conversationId` integer
  - `message` Message, required
    - `role` string, required
    - `content` string, required
    - `createdAt` string, date-time
    - `attachments` AttachmentDto[], required
      - `id` integer, required
      - `fileName` string, required
      - `fileSize` integer, required
      - `contentType` string, required
      - `createdAt` string, date-time, required
      - `downloadUrl` string

## Response `200`

Message saved successfully

## Other responses

- `400` — Invalid message content
- `404` — Conversation or Workflow not found

---

[API](https://skmtc.net/laminar/apis/laminar-api.md) · [All operations](https://skmtc.net/laminar/apis/laminar-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/laminar/laminar-api/revisions/c4cc2ef4aab1/schema)
