---
title: "Send a message in a chat"
method: POST
path: "/chat/{chat_id}/messages"
tags: ["chat"]
---

# Send a message in a chat

`POST /chat/{chat_id}/messages`

Send a message to an agent within an existing chat session.

## Path parameters

- `chat_id` string, uuid, required

## Request body

- object
  - `message` string, required — The message to send to the agent.

## Response `200`

200

- ChatSendChatMessageResponse200
  - `status` string — Whether the request was successful.
  - `response` ChatMessageResponse — Response from sending a message in a chat.
    - `agent_message` string, required — The response message from the agent.
    - `current_state` string, required — The current state of the agent.
    - `timestamp` string, date-time, required — ISO 8601 timestamp of when the message was sent.
    - `turn_number` integer, required — The turn number in the conversation.

## Other responses

- `400` — 400

---

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