Remove a message reaction
import requests
url = "https://api.datagrid.com/v1/channels/{channel_id}/messages/{message_id}/reactions/{reaction}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datagrid.com/v1/channels/{channel_id}/messages/{message_id}/reactions/{reaction}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://api.datagrid.com/v1/channels/{channel_id}/messages/{message_id}/reactions/{reaction} \
--header 'Authorization: Bearer <token>'{
"object": "channel.message",
"id": "<string>",
"channel_id": "<string>",
"thread_id": "<string>",
"role": "user",
"agent_id": "<string>",
"content": [
{
"type": "text",
"text": "<string>"
}
],
"reply_count": 123,
"reactions": [
{
"reaction": "<string>",
"users": [
{
"user_id": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
]
}
],
"created_at": "2023-11-07T05:31:56Z",
"credits": {
"consumed": 123
},
"citations": [
{
"citation": "<string>",
"sources": [
{
"type": "image",
"source_name": "<string>",
"confirmations": [
"<string>"
],
"source_id": "<string>",
"source_uri": "<string>",
"external_url": "<string>",
"status": "<string>",
"status_color": "<string>",
"status_category": "open",
"fields": [
{
"label": "<string>",
"value": "<string>"
}
],
"item_type": "<string>",
"thumbnail_url": "<string>",
"page_number": 2
}
]
}
]
}Channels
Remove a message reaction
Removes the authenticated API user’s reaction from a channel or thread message. Callers cannot remove another user’s reaction; a delete only clears the caller’s own entry for that emoji. Removing a reaction that is not present is idempotent. The caller must be a channel member. Returns the updated message.
Accepts the same values as adding a reaction: a shortcode (:+1:) or the unicode character (👍), resolved to the same stored emoji.
DELETE
/
channels
/
{channel_id}
/
messages
/
{message_id}
/
reactions
/
{reaction}
Remove a message reaction
import requests
url = "https://api.datagrid.com/v1/channels/{channel_id}/messages/{message_id}/reactions/{reaction}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datagrid.com/v1/channels/{channel_id}/messages/{message_id}/reactions/{reaction}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://api.datagrid.com/v1/channels/{channel_id}/messages/{message_id}/reactions/{reaction} \
--header 'Authorization: Bearer <token>'{
"object": "channel.message",
"id": "<string>",
"channel_id": "<string>",
"thread_id": "<string>",
"role": "user",
"agent_id": "<string>",
"content": [
{
"type": "text",
"text": "<string>"
}
],
"reply_count": 123,
"reactions": [
{
"reaction": "<string>",
"users": [
{
"user_id": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
]
}
],
"created_at": "2023-11-07T05:31:56Z",
"credits": {
"consumed": 123
},
"citations": [
{
"citation": "<string>",
"sources": [
{
"type": "image",
"source_name": "<string>",
"confirmations": [
"<string>"
],
"source_id": "<string>",
"source_uri": "<string>",
"external_url": "<string>",
"status": "<string>",
"status_color": "<string>",
"status_category": "open",
"fields": [
{
"label": "<string>",
"value": "<string>"
}
],
"item_type": "<string>",
"thumbnail_url": "<string>",
"page_number": 2
}
]
}
]
}Authorizations
Path Parameters
Response
Updated message