Get the transcript of an AI voice call
curl --request GET \
--url https://api.voice.mergenlab.ai/v1/calls/{id}/transcript \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.voice.mergenlab.ai/v1/calls/{id}/transcript', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.voice.mergenlab.ai/v1/calls/{id}/transcript"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"call_id": "call_9f1c2a7e4b3d4c0e8a6b5d2f1e0c9b8a",
"attempt_id": "att_7b2e4c1d9a8f4e3b8c2d1a0f9e8d7c6b",
"turns": [
{
"role": "agent",
"text": "हैलो, मोहित जी? मैं Credfin से आशुतोष बोल रहा हूँ, एक मिनट बात कर सकते हैं?",
"language": "Hindi"
},
{
"role": "user",
"text": "हाँ, बताइए।",
"language": null
},
{
"role": "agent",
"text": "आपकी EMI का ₹4,574 बकाया है। क्या आप शुक्रवार तक भुगतान कर पाएँगे?",
"language": "Hindi"
},
{
"role": "user",
"text": "जी, शुक्रवार तक कर दूँगा।",
"language": null
}
]
}Calls
Get the transcript of an AI voice call
The transcript of the latest attempt that has one (has_transcript: true on the call). Human calls and
reachability dials have no transcript (404).
GET
/
v1
/
calls
/
{id}
/
transcript
Get the transcript of an AI voice call
curl --request GET \
--url https://api.voice.mergenlab.ai/v1/calls/{id}/transcript \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.voice.mergenlab.ai/v1/calls/{id}/transcript', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.voice.mergenlab.ai/v1/calls/{id}/transcript"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"call_id": "call_9f1c2a7e4b3d4c0e8a6b5d2f1e0c9b8a",
"attempt_id": "att_7b2e4c1d9a8f4e3b8c2d1a0f9e8d7c6b",
"turns": [
{
"role": "agent",
"text": "हैलो, मोहित जी? मैं Credfin से आशुतोष बोल रहा हूँ, एक मिनट बात कर सकते हैं?",
"language": "Hindi"
},
{
"role": "user",
"text": "हाँ, बताइए।",
"language": null
},
{
"role": "agent",
"text": "आपकी EMI का ₹4,574 बकाया है। क्या आप शुक्रवार तक भुगतान कर पाएँगे?",
"language": "Hindi"
},
{
"role": "user",
"text": "जी, शुक्रवार तक कर दूँगा।",
"language": null
}
]
}Authorizations
Authorization: Bearer vg_live_<32 hex characters>. Keys are issued by Mergen admins and shown once.
Missing or invalid key: 401 unauthorized. Suspended account: 403 tenant_suspended.
Path Parameters
Call id (call_ + 32 hex characters).