Chats

Send a follow-up message

Sends the next message in an existing chat, continuing the conversation. Works like "Start a chat": use the wait parameter to receive the finished response directly, or poll the assistant message (or stream its events) after receiving HTTP 202. Only one response can be generating per chat at a time; sending while the assistant is busy returns HTTP 409.

post/api/public/organizations/{orgId}/chats/{chatId}/messages

Request

  • Base URL
    https://charts.basedash.com
  • Auth
    HTTP bearer

Path parameters

orgIdstring required

Organization ID

chatIdstring required

Chat ID

Query parameters

waitinteger

Maximum number of seconds (1-300) to hold the request open while the assistant responds. If the response finishes in time the completed message is returned; otherwise the request returns HTTP 202 with the in-progress message. Omit to return immediately.

Headers

Idempotency-Keystring

A unique key (up to 255 characters) that makes retries safe: repeating a request with the same key and body within 30 days returns the original result instead of creating a duplicate. Reusing a key with a different body returns HTTP 409; repeating one whose chat was since deleted returns HTTP 404.

Request body

messagestring required

The follow-up message to send to the AI agent. Maximum 10,000 characters.

Response

The assistant finished responding

Changes

No recorded changes to this operation across all 1 revision of this API.