List a web call’s voice trace
curl --request GET \
--url https://guidinghand.ai/v1/conversations/{conversation_id}/voice \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://guidinghand.ai/v1/conversations/{conversation_id}/voice', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://guidinghand.ai/v1/conversations/{conversation_id}/voice"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"object": "voice_event",
"id": "<string>",
"type": "listen",
"at": "2023-11-07T05:31:56Z",
"opened_at": "2023-11-07T05:31:56Z",
"closed_at": "2023-11-07T05:31:56Z",
"closed_by": "browser",
"close_code": 123,
"close_reason": "<string>",
"seconds": 123,
"language": "<string>",
"also": [
"<string>"
],
"lines": 123,
"characters": 123,
"via": "request",
"model": "<string>",
"voice_id": "<string>",
"first_audio_ms": 123,
"total_ms": 123,
"ok": true,
"error": "<string>"
}
],
"has_more": true,
"next_cursor": "<string>",
"dropped": 123
}{
"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>"
}
}{
"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>"
}
}Conversations
List a web call’s voice trace
What the voice did in a web call, oldest first: each listening socket (when it opened and closed, and how long it was open), each line said aloud (its characters and how fast its audio came), and each speech socket. Counts and timings only: never the words (the audio, when kept, is under …/audio). Empty for a conversation no speech or listening was asked for with. A line is written when its audio ends, under the time it was sent, so while a call is on a new event can land before the last one you read: read a live call’s trace again from the start. The trace is not part of what the agent reads, and goes when the conversation goes.
GET
/
v1
/
conversations
/
{conversation_id}
/
voice
List a web call’s voice trace
curl --request GET \
--url https://guidinghand.ai/v1/conversations/{conversation_id}/voice \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://guidinghand.ai/v1/conversations/{conversation_id}/voice', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://guidinghand.ai/v1/conversations/{conversation_id}/voice"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"object": "voice_event",
"id": "<string>",
"type": "listen",
"at": "2023-11-07T05:31:56Z",
"opened_at": "2023-11-07T05:31:56Z",
"closed_at": "2023-11-07T05:31:56Z",
"closed_by": "browser",
"close_code": 123,
"close_reason": "<string>",
"seconds": 123,
"language": "<string>",
"also": [
"<string>"
],
"lines": 123,
"characters": 123,
"via": "request",
"model": "<string>",
"voice_id": "<string>",
"first_audio_ms": 123,
"total_ms": 123,
"ok": true,
"error": "<string>"
}
],
"has_more": true,
"next_cursor": "<string>",
"dropped": 123
}{
"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>"
}
}{
"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>"
}
}