Skip to navigation

Send a chat message

View as Markdown

Sends a user message to the agent. The reply streams over the stream endpoint. A conversation owned by another user returns 404. A conversation at its message limit returns 409 with code message_limit_reached; start a new one.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

idstringRequired
Deployment ID
conversationIdstringRequired
Conversation ID

Request

This endpoint expects an object.
attachmentslist of objectsOptional
Ready files the caller owns, at most 16. File bytes are never inlined.
contentstringOptional
The user's message text. Send content, attachments, or both.

Response

OK
message_idstringOptional
timestampdatetimeOptional

Errors

400
Bad Request Error
404
Not Found Error
409
Conflict Error
413
Content Too Large Error