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>",
"fields": [
{
"label": "<string>",
"value": "<string>"
}
],
"item_type": "<string>",
"page_number": 2
}
]
}
]
}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.
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>",
"fields": [
{
"label": "<string>",
"value": "<string>"
}
],
"item_type": "<string>",
"page_number": 2
}
]
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Emoji shortcode or unicode emoji to remove, URL-encoded (for example %3A%2B1%3A for :+1:).
1 - 64Response
Updated message
channel.message user, agent Text content for a message.
- Option 1
- Option 2
- Option 3
- Option 4
Show child attributes
Show child attributes
Reactions grouped by emoji, ordered by first reaction time.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Array of citations that provide sources for factual statements in the response. Each citation includes the referenced text and its sources.
Show child attributes
Show child attributes