The Send Reaction handler allows to send a reaction to an ongoing call. Reactions should be single emoji defined by its short name. Emojis can be send in rapid succession for a greater effect. The request must be done using POST
.
A list of available emojis for the reactions can be requested using a GET
request.
Returns a list of available emojis short names as well a their base64 image representation that can be used for other UIs.
The response JSON looks like:
[ { "shortName": ":smile:", "imageURL": "data:image/svg+xml;base64,..." }, { "shortName": ":thumbsup:", "imageURL": "data:image/svg+xml;base64,..." }, { "shortName": ":thumbsdown:", "imageURL": "data:image/svg+xml;base64,..." } ]
Sends a reaction, such as an emoji, to the ongoing call and returns the currently running calls of the selected channel.
{ "reaction": "<Reaction to send. Should be an emoji short name>" }
REQUEST Field | Value Type | Description |
---|---|---|
reaction | String | Reaction to send. Should be an emoji short name obtained from the GET request |
# Request # Use user:password for authorization POST /api/cowork/teams/3n1ytbwme7ngfyn9g9guwwurt/channels/3y8kdto0lnx3ig3mshwvrb9x7/calls/reaction HTTP/1.1 Accept: */* Authorization: Bearer VGhpcyBpcyBqdXN0IGEgZGVtbyBhY2Nlc3MgdG9rZW4u { "reaction": ":smile:" } # Response HTTP/1.1 200 OK