Get the agent's email
curl --request GET \
--url https://guidinghand.ai/v1/agents/{agent_id}/email \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://guidinghand.ai/v1/agents/{agent_id}/email', 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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "agent_email_settings",
"available": true,
"address": "<string>",
"enabled": true,
"review": true,
"allow_from": [
"<string>"
],
"messages": [
{
"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
Get the agent's email
Its address, its settings and its last emails.
GET
/
v1
/
agents
/
{agent_id}
/
email
Get the agent's email
curl --request GET \
--url https://guidinghand.ai/v1/agents/{agent_id}/email \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://guidinghand.ai/v1/agents/{agent_id}/email', 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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "agent_email_settings",
"available": true,
"address": "<string>",
"enabled": true,
"review": true,
"allow_from": [
"<string>"
],
"messages": [
{
"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