chat
chat

Send Message

Saves a message to the database and broadcasts it via WebSocket.

post/chat/send

Headers

authorizationstring nullable

Request body

messagestring required
from_user_idstring required
to_user_idstring required
recipient_idstring nullable
message_typestring nullable
{"stackTrail":"components:schemas:SendMessageRequest:properties:metadata:anyOf","oasType":"schema","type":"unknown","title":"Metadata","nullable":true}
conversation_idstring nullable
user_contextobject nullable
reply_to_message_idstring nullable
is_auto_greetingboolean nullable

Response

Successful Response

idstring uuid required
conversation_idstring uuid required
sender_idstring uuid required
contentstring required
timestampstring date-time required
detected_languagestring nullable
from_user_idstring nullable
to_user_idstring nullable
messagestring nullable
typestring nullable
voice_note_idstring nullable
durationinteger nullable
transcriptionstring nullable
voice_note_dataobject nullable
message_typestring nullable
message_metadataobject nullable
reply_to_message_idstring nullable
edited_atstring date-time nullable
reactionsobject nullable
reply_to_previewobject nullable
ai_replyobject nullable
{"stackTrail":"components:schemas:MessageResponse:properties:metadata:anyOf","oasType":"schema","type":"unknown","title":"Metadata","nullable":true}

Changes

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