API ReferenceChat
POST /chat/messages/{id}/reactions
Adicionar/remover reação
POST
/chat/messages/{id}/reactionsAuth: accessTokenToggle por (message_id, user_id, emoji): se já existe → DELETE; se não → INSERT.
Request
| Campo | Tipo | Requerido | Descrição |
|---|---|---|---|
| emoji | string | sim | |
| add | boolean | sim |
Response
200
Sem corpo na resposta.
Erros
Sem respostas de erro documentadas.
Exemplos
curl -X POST 'http://localhost:3003/chat/messages/{id}/reactions' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer SEU_ACCESS_TOKEN' \
-d '{}'await fetch('http://localhost:3003/chat/messages/{id}/reactions', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: 'Bearer ' + accessToken,
},
body: JSON.stringify({}),
})