CDRs
Search transcriptions
Searches call transcriptions for the given keywords or phrases and returns the matching CDRs with their transcriptions.
post/v1/cdrs
Request body
Example request
{
"type": "placed",
"from": "2023-08-01",
"to": "2023-08-31",
"from_search": "4478012",
"to_search": "44206723",
"sip_trunk": "87095",
"min_duration": 10,
"transcription": {
"agent": {
"must": [
"Hello",
"Thank you"
],
"match": [
"Nope",
"Maybe"
],
"exclude": [
"Richard",
"Issue resolved"
]
},
"client": {
"must": [
"Hello",
"Thank you"
],
"match": [
"Nope",
"Maybe"
],
"exclude": [
"Richard",
"Issue resolved"
]
},
"any": {
"must": [
"Hello",
"Thank you"
],
"match": [
"Nope",
"Maybe"
],
"exclude": [
"Richard",
"Issue resolved"
]
}
},
"uuid": "99df5ffd-962a-410f-bcce-d08f1f7f328c",
"page": 1,
"per_page": 50
}Response
Returns a paginated list of matching CDRs with their transcriptions.
Example response
{
"items": [
{
"answered_by": "human",
"date": "2023-08-21T06:43:36.000Z",
"from": "14302287001",
"to": "33170363950",
"duration": 6,
"destination": "France",
"per_minute": "0.027",
"sip_trunk": "32882",
"forward_fee": "0.0",
"uuid": "99df5ffd-962a-410f-bcce-d08f1f7f328c",
"call_id": "99df5ffd-962a-410f-bcce-d08f1f7f328c",
"parent_uuid": "99df5ffd-962a-410f-bcce-d08f1f7f328c",
"parent_call_id": "99df5ffd-962a-410f-bcce-d08f1f7f328c",
"transcription": {
"uuid": "40d6f322-048d-490b-95c7-4fc5c76a74db",
"url": "https://api.wavix.com/v1/cdrs/40d6f322-048d-490b-95c7-4fc5c76a74db/transcription?appid=secret"
}
}
],
"pagination": {
"current_page": 2,
"per_page": 25,
"total": 101,
"total_pages": 5
}
}