Skip to main content

Send messages to chat

POST 

/chats/:chat_id/messages

Sends up to 50 messages as user (the sender is upserted and added to the chat). If the chat id in the URL doesn't exist, pass chat.create: true to create the chat on the fly — the id is taken from the URL (chat.id in the body is ignored); without the flag a missing chat is a 404. For an existing chat chat.create is ignored, chat.title/chat.metadata update the chat, and participants are neither validated nor added (use POST /chats/{chat_id}/participants).

Request​

Responses​

Messages sent