Chat
Add an emoji reaction to a message.
Add an emoji reaction to a message. The request enforces thread membership and content visibility for the authenticated caller.
POST
/
api
/
v1
/
chat
/
threads
/
{threadId}
/
messages
/
{messageId}
/
reactions
Add an emoji reaction to a message.
curl --request POST \
--url https://api.revoengine.com/api/v1/chat/threads/{threadId}/messages/{messageId}/reactions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"emoji": "👍"
}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({emoji: '👍'})
};
fetch('https://api.revoengine.com/api/v1/chat/threads/{threadId}/messages/{messageId}/reactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/chat/threads/{threadId}/messages/{messageId}/reactions"
payload = { "emoji": "👍" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
Bearer JWT token or API Key (sk-*).
Body
application/json
Single emoji reaction. Text aliases and custom labels are not accepted.
Maximum string length:
32Example:
"👍"
Response
200
OK.
⌘I
Add an emoji reaction to a message.
curl --request POST \
--url https://api.revoengine.com/api/v1/chat/threads/{threadId}/messages/{messageId}/reactions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"emoji": "👍"
}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({emoji: '👍'})
};
fetch('https://api.revoengine.com/api/v1/chat/threads/{threadId}/messages/{messageId}/reactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/chat/threads/{threadId}/messages/{messageId}/reactions"
payload = { "emoji": "👍" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
