---
title: "Send message"
method: POST
path: "/chat/threads/{threadId}/messages"
tags: ["chat"]
---

# Send message

`POST /chat/threads/{threadId}/messages`

## Request

- Base URL: `https://www.dench.com/api/v1`
- URL: `https://www.dench.com/api/v1/chat/threads/{threadId}/messages`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Send a message to an existing chat thread.

## Path parameters

- `threadId` string, required

## Request body

- object
  - `prompt` string, required: The message to append.
  - `model` string
  - `yolo` boolean

## Response `200`

Successful response

- object
  - `threadId` string, required
  - `runId` string, required
  - `workflowRunId` string, nullable, required
  - `threadUrl` string, required: Web URL of the thread.
  - `streamUrl` string, required: SSE stream URL for the live response.
  - `yolo` boolean, required

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid authentication
- `404`: Operation or resource not found
- `500`: Server error

---

[API](https://skmtc.dev/dench/apis/dench-api.md) - [All operations](https://skmtc.dev/dench/apis/dench-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dench/apis/dench-api/revisions/4a145b38f19c?raw)
