Phone calls
Call summary
Retrieval of transcription summaries can be done by the call activity's eactId.
Example:
curl --request POST \
--url 'https://<endpoint>/rest/itxems/activity-summary/search' \
--header 'content-type: application/json' \
--data '{
"activities": [
{
"eactId": 3511265
}
]
}'
Call transcription
To retrieve the raw transcription you need to query each call recording. Unfortunately no direct lookup on call eactId here.
Example flow:
- Retrieve call activity:
curl --request GET \
--url 'https://<endpoint>/rest/itxems/activities?eactId=3511265'
- Collect all pcreId (call recording id) from response $.recordings[*].pcreId
- Query for transcriptions:
referenceTables with ID 21001 is static for all phone call recordings. Can be hard coded.
referenceIds is the pcreId of the phone call recording. This must be set dynamically. You can provide this as a list
curl --request POST \
--url 'https://<endpoint>/rest/core/transcript/search' \
--header 'content-type: application/json' \
--data '{
"referenceIds": [
3511265
],
"referenceTables": [
{
"id": 21001
}
],
"getParts": true
}'