Don’t send a reply
curl --request POST \
--url https://guidinghand.ai/v1/agents/{agent_id}/email/messages/{message_id}/discard \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://guidinghand.ai/v1/agents/{agent_id}/email/messages/{message_id}/discard', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://guidinghand.ai/v1/agents/{agent_id}/email/messages/{message_id}/discard"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"object": "agent_email",
"id": "<string>",
"direction": "in",
"status": "<string>",
"reason": "<string>",
"from": "<string>",
"from_name": "<string>",
"to": "<string>",
"subject": "<string>",
"text": "<string>",
"conversation_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"sent_at": "2023-11-07T05:31:56Z"
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}Email
Don’t send a reply
The reply isn’t sent. Needs the admin role or an API key.
POST
/
v1
/
agents
/
{agent_id}
/
email
/
messages
/
{message_id}
/
discard
Don’t send a reply
curl --request POST \
--url https://guidinghand.ai/v1/agents/{agent_id}/email/messages/{message_id}/discard \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://guidinghand.ai/v1/agents/{agent_id}/email/messages/{message_id}/discard', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://guidinghand.ai/v1/agents/{agent_id}/email/messages/{message_id}/discard"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"object": "agent_email",
"id": "<string>",
"direction": "in",
"status": "<string>",
"reason": "<string>",
"from": "<string>",
"from_name": "<string>",
"to": "<string>",
"subject": "<string>",
"text": "<string>",
"conversation_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"sent_at": "2023-11-07T05:31:56Z"
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}Authorizations
Response
OK