@Liang Li you can get the speaker details by doing a /v2/calls/extensive on the call id you see in the transcripts endpoint. See the first part here with call 7824474444421486278 and speaker 7109574768390555833. The speaker matches the speakerid in the parties returned in /v2/calls/extensive
"callTranscripts": i {
"callId": "7824474444421486278",
"transcript": r { "speakerId": "7109574768390555833",
etc.
"parties": t {
"id": "6448839162357380307",
"speakerId": "7109574768390555833",
"emailAddress": "xyz@gmail.com",
"name": "Andrew O",
"userId": "4711262497643752588",
"context": t],
"affiliation": "Internal",
"phoneNumber": "",
"methods": h "Attendee" ] } ],
[edit] Ah ok I might have missed this when first reading the documentation, but seems like you need to pass contentSelector.exposedFields.parties in the request for the parties to be returned. After doing so, I can see the parties now.
Hi, I am trying to do this with the /v2/calls/extensive endpoint but it seems to only be returning the metaData and not “parties”
const callDetails = await axios
.post(
`${gongUrl}/v2/calls/extensive`,
{
filter: {
callIds: callIds,
},
},
{
headers: {
Authorization: `Bearer ${gongToken}`,
},
},
)
.then((res) => {
console.log("calls/extensive", res.data);
return res.data?.calls;
});
Am I missing something ?