---
title: "Append a message to a chat"
method: PUT
path: "/v1/chats/{chatId}"
tags: ["Chats"]
---

# Append a message to a chat

`PUT /v1/chats/{chatId}`

## Request

- Base URL: `https://docs.grepr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.grepr.ai/v1/chats/{chatId}`
- Auth: one of:
  - API key in header `GREPR-API-KEY`
  - OpenID Connect (`https://grepr-prod.us.auth0.com/.well-known/openid-configuration`)

Signals the chat's workflow with a new user message. Returns 202 immediately.

## Path parameters

- `chatId` string, required

## Request body

- AppendMessageRequest
  - `text` string, required

## Response `202`

Message accepted

## Other responses

- `401`: Unauthorized
- `404`: Chat not found
- `409`: Chat is no longer running

---

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