Authorization: Bearer ********************
{
"filter": {
"search_request": {
"silence": {
"duration_total": {
"eq": 0
},
"duration_max": {
"eq": 0
},
"occurrence_total": {
"eq": 0
},
"duration_percentage": {
"eq": 0
}
},
"talk_time": {
"eq": 0
},
"agent": {
"user_name": {
"any": [
"string"
],
"all": [
"string"
]
}
},
"sort": {
"fields": [
{
"name": "string",
"desc": true
}
],
"after": [
"string"
]
},
"create_time": {
"moment": {
"interval": "TODAY",
"time_zone": "string"
}
},
"talk_over": {
"duration_total": {
"eq": 0
},
"duration_max": {
"eq": 0
},
"occurrence_total": {
"eq": 0
},
"duration_percentage": {
"eq": 0
}
},
"terms": {
"agent": {
"user_name": {
"any": [
"string"
],
"all": [
"string"
]
}
},
"position_offset": {
"start": "string",
"stop": "string"
},
"not": true,
"channel": 0,
"any": [
"string"
],
"all": [
"string"
]
},
"phrase": {
"highlight": {
"pre_tags": [
"string"
],
"post_tags": [
"string"
]
},
"agent": {
"user_name": {
"any": [
"string"
],
"all": [
"string"
]
}
},
"position_offset": {
"start": "string",
"stop": "string"
},
"words": [
{
"value": "string",
"fuzziness": "string"
}
],
"slop": 0,
"in_order": true,
"not": true,
"channel": 0
},
"transcript_mask": "string",
"call_start_time": {
"moment": {
"interval": "TODAY",
"time_zone": "string"
}
},
"agent_call_log": {
"call_skills_initial": {
"need": [
{
"lacks": true,
"all": true,
"terms": [
"string"
]
}
],
"want": [
{
"lacks": true,
"all": true,
"terms": [
"string"
]
}
]
}
},
"where": {
"transcript_sid": {
"gte": "string",
"any": [
0
]
},
"flag_summary": {
"need_review": {
"flag_sids": {
"any": [
0
]
}
},
"review_status": {
"any": [
"TRANSCRIPT_REVIEW_STATUS_TODO"
]
},
"flags": {
"flag_sid": {
"any": [
0
],
"all": [
0
]
}
},
"count": {
"gte": 0,
"lte": 0,
"gt": 0,
"lt": 0,
"eq": 0
}
},
"audio_time": {
"gte": 0,
"lte": 0,
"gt": 0,
"lt": 0
},
"delete_time": {
"exists": true
},
"not": {},
"results": {
"channel": {
"eq": 0
},
"agent_user_name": {
"any": [
"string"
],
"all": [
"string"
]
},
"segments": {
"text": {
"phrase": {
"words": [
{
"value": "string",
"fuzziness": "string"
}
],
"slop": 0,
"in_order": true
}
}
}
},
"agent_response": {
"key": {
"starts_with": "string",
"contains": "string",
"in": [
"string"
]
},
"values": {
"starts_with": "string",
"contains": "string",
"in": [
"string"
]
},
"numbers": {
"gte": "string",
"lte": "string",
"gt": "string",
"lt": "string",
"eq": "string",
"in": [
0
]
}
},
"agent_call_log": {
"call_skills_initial": {
"need": [
"string"
],
"want": [
"string"
]
},
"call_ended": {
"reasons": [
"AGENT_CANCELLED"
]
}
},
"phone": {
"cc": {
"in": [
"string"
]
},
"ndc": {
"in": [
"string"
]
},
"prefix": {
"in": [
"string"
]
},
"city": {
"in": [
"string"
]
},
"iso2": {
"in": [
"string"
]
},
"region_code": {
"in": [
"string"
]
},
"region_name": {
"in": [
"string"
]
},
"time_zone": {
"in": [
"string"
]
},
"type": {
"in": [
"string"
]
},
"utc": {
"in": [
0
]
},
"location": {
"zip_code_proximity": {
"country_code": "string",
"zip_code": "string",
"distance": "string"
}
}
},
"or": [
{}
],
"and": [
{}
]
},
"time_frame": {
"from": 0,
"to": 0,
"include_from": true,
"include_to": true
},
"page_size": 0,
"channel": 0,
"phone_number": "string",
"caller_id": "string",
"call_types": [
"INBOUND"
],
"transcript_sid": 0,
"group_names": [
"string"
],
"transcript_sids": [
0
],
"call_sids": [
0
],
"hunt_group_sids": [
0
]
},
"create_time": "1s",
"name": "string",
"filter_sid": 0,
"version": 0
}
}
curl --location --request POST 'https://api.cbf.tcn.com/api/v1alpha1/vanalytics/vanalytics/createfilter' \
--header 'Content-Type: application/json' \
--data-raw '{
"filter": {
"search_request": {
"silence": {
"duration_total": {
"eq": 0
},
"duration_max": {
"eq": 0
},
"occurrence_total": {
"eq": 0
},
"duration_percentage": {
"eq": 0
}
},
"talk_time": {
"eq": 0
},
"agent": {
"user_name": {
"any": [
"string"
],
"all": [
"string"
]
}
},
"sort": {
"fields": [
{
"name": "string",
"desc": true
}
],
"after": [
"string"
]
},
"create_time": {
"moment": {
"interval": "TODAY",
"time_zone": "string"
}
},
"talk_over": {
"duration_total": {
"eq": 0
},
"duration_max": {
"eq": 0
},
"occurrence_total": {
"eq": 0
},
"duration_percentage": {
"eq": 0
}
},
"terms": {
"agent": {
"user_name": {
"any": [
"string"
],
"all": [
"string"
]
}
},
"position_offset": {
"start": "string",
"stop": "string"
},
"not": true,
"channel": 0,
"any": [
"string"
],
"all": [
"string"
]
},
"phrase": {
"highlight": {
"pre_tags": [
"string"
],
"post_tags": [
"string"
]
},
"agent": {
"user_name": {
"any": [
"string"
],
"all": [
"string"
]
}
},
"position_offset": {
"start": "string",
"stop": "string"
},
"words": [
{
"value": "string",
"fuzziness": "string"
}
],
"slop": 0,
"in_order": true,
"not": true,
"channel": 0
},
"transcript_mask": "string",
"call_start_time": {
"moment": {
"interval": "TODAY",
"time_zone": "string"
}
},
"agent_call_log": {
"call_skills_initial": {
"need": [
{
"lacks": true,
"all": true,
"terms": [
"string"
]
}
],
"want": [
{
"lacks": true,
"all": true,
"terms": [
"string"
]
}
]
}
},
"where": {
"transcript_sid": {
"gte": "string",
"any": [
0
]
},
"flag_summary": {
"need_review": {
"flag_sids": {
"any": [
0
]
}
},
"review_status": {
"any": [
"TRANSCRIPT_REVIEW_STATUS_TODO"
]
},
"flags": {
"flag_sid": {
"any": [
0
],
"all": [
0
]
}
},
"count": {
"gte": 0,
"lte": 0,
"gt": 0,
"lt": 0,
"eq": 0
}
},
"audio_time": {
"gte": 0,
"lte": 0,
"gt": 0,
"lt": 0
},
"delete_time": {
"exists": true
},
"not": {},
"results": {
"channel": {
"eq": 0
},
"agent_user_name": {
"any": [
"string"
],
"all": [
"string"
]
},
"segments": {
"text": {
"phrase": {
"words": [
{
"value": "string",
"fuzziness": "string"
}
],
"slop": 0,
"in_order": true
}
}
}
},
"agent_response": {
"key": {
"starts_with": "string",
"contains": "string",
"in": [
"string"
]
},
"values": {
"starts_with": "string",
"contains": "string",
"in": [
"string"
]
},
"numbers": {
"gte": "string",
"lte": "string",
"gt": "string",
"lt": "string",
"eq": "string",
"in": [
0
]
}
},
"agent_call_log": {
"call_skills_initial": {
"need": [
"string"
],
"want": [
"string"
]
},
"call_ended": {
"reasons": [
"AGENT_CANCELLED"
]
}
},
"phone": {
"cc": {
"in": [
"string"
]
},
"ndc": {
"in": [
"string"
]
},
"prefix": {
"in": [
"string"
]
},
"city": {
"in": [
"string"
]
},
"iso2": {
"in": [
"string"
]
},
"region_code": {
"in": [
"string"
]
},
"region_name": {
"in": [
"string"
]
},
"time_zone": {
"in": [
"string"
]
},
"type": {
"in": [
"string"
]
},
"utc": {
"in": [
0
]
},
"location": {
"zip_code_proximity": {
"country_code": "string",
"zip_code": "string",
"distance": "string"
}
}
},
"or": [
{}
],
"and": [
{}
]
},
"time_frame": {
"from": 0,
"to": 0,
"include_from": true,
"include_to": true
},
"page_size": 0,
"channel": 0,
"phone_number": "string",
"caller_id": "string",
"call_types": [
"INBOUND"
],
"transcript_sid": 0,
"group_names": [
"string"
],
"transcript_sids": [
0
],
"call_sids": [
0
],
"hunt_group_sids": [
0
]
},
"create_time": "1s",
"name": "string",
"filter_sid": 0,
"version": 0
}
}'