API ReferenceChat
POST /chat/conversations/{id}/messages
Enviar mensagem
POST
/chat/conversations/{id}/messagesAuth: accessTokenINSERT message + emit socket message:new. Suporta texto, attachments (já uploadados), reply, e callMetadata.
Request
| Campo | Tipo | Requerido | Descrição |
|---|---|---|---|
| content | string | não | |
| attachmentIds | Array of string (uuid) | não | |
| replyToId | string (uuid) | não | |
| callMetadata | object | não |
Response
200
Sem corpo na resposta.
Erros
Sem respostas de erro documentadas.
Exemplos
curl -X POST 'http://localhost:3003/chat/conversations/{id}/messages' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer SEU_ACCESS_TOKEN' \
-d '{}'await fetch('http://localhost:3003/chat/conversations/{id}/messages', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: 'Bearer ' + accessToken,
},
body: JSON.stringify({}),
})