Submit message feedback
import requests
url = "https://api.datagrid.com/v1/conversations/{conversation_id}/messages/{message_id}"
payload = { "feedback": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({feedback: '<string>'})
};
fetch('https://api.datagrid.com/v1/conversations/{conversation_id}/messages/{message_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.datagrid.com/v1/conversations/{conversation_id}/messages/{message_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"feedback": "<string>"
}
'{
"status_code": 123,
"error": "rate_limit_exceeded",
"message": "<string>",
"retryable": true,
"statusCode": 123,
"mitigation": "<string>",
"details": {
"reason": "<string>"
}
}Messages
Submit message feedback
Record a like or dislike on a conversation message. When the user has consented to data sharing, the associated trace is donated for troubleshooting.
POST
/
conversations
/
{conversation_id}
/
messages
/
{message_id}
Submit message feedback
import requests
url = "https://api.datagrid.com/v1/conversations/{conversation_id}/messages/{message_id}"
payload = { "feedback": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({feedback: '<string>'})
};
fetch('https://api.datagrid.com/v1/conversations/{conversation_id}/messages/{message_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.datagrid.com/v1/conversations/{conversation_id}/messages/{message_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"feedback": "<string>"
}
'{
"status_code": 123,
"error": "rate_limit_exceeded",
"message": "<string>",
"retryable": true,
"statusCode": 123,
"mitigation": "<string>",
"details": {
"reason": "<string>"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The id of the conversation the message belongs to.
The id of the message to submit feedback for. Accepts the raw message UUID or a {uuid}-user / {uuid}-agent public id.
Body
application/json
Request body for submitting like or dislike feedback on a conversation message.
Response
Feedback recorded