/
search

search

Retrieves a list of recordings based on filters specified.

HTTP POST /ctreplay/:domain?/search

Path variables:

Name

Mandatory

Type

Description

Name

Mandatory

Type

Description

domain

NO

STRING

Unique domain identifier

Authorization: BEARER (token returned by EasyCIM SSO)

Request body:

Name

Mandatory

Type

Description

Name

Mandatory

Type

Description

filter

YES

OBJECT

filter for data extraction

sort

yes

object

sort order

pageSize

no

number

number of documents retrieved (max 100)

index

yes

number

pagination

Response:

Type: JSON

Name

Type

Description

Name

Type

Description

result

BOOLEAN

If true, the service response was performed correctly

error

NULL / STRING

Contains the error description if an error has occurred in the request

documents

object

list of recording object

count

number

total number of documents that satisfy the research

Example:

Request:

http://<hostname>:<port>/ctreplay/default/search

Request Body:

{ "filter": {"partner": "DEFAULT"}, "sort": {"duration":1}, "pageSize": 10, "index": 0 }

Response:

{ "result": true, "documents": [ { "_id": "5f048b1b2b66ce470c46460f", "__v": 0, "callcenter": "CC_DEFAULT", "partner": "DEFAULT", "recorderAddr": "10.112.4.138", "callType": "callTask", "auto": true, "macroactivity": null, "ecid": "saasher|19|133082|34", "remote": "3495556871", "extension": "80343@B2BUAEP.saasher.priv", "duration": 2224, "startTs": "2020-07-07T09:33:06.000Z", "callId": "fa76d278-a2be-ea11-9110-005056ae5f1b@saasher-cti1_0_0", "agent": "CRE010004", "uuid": "cee9e9a4-7dd3-4683-a20e-f60a7f3bbedf" }, { "_id": "5f048b0e2b66ce470c4645e0", "__v": 0, "callcenter": "CC_DEFAULT", "partner": "DEFAULT", "recorderAddr": "10.112.4.138", "callType": "callTask", "auto": true, "macroactivity": null, "ecid": "saasher|11|1052782|30", "remote": "3357272599", "extension": "80145@B2BUAEP.saasher.priv", "duration": 2304, "startTs": "2020-07-07T08:26:01.000Z", "callId": "fecdee28-99be-ea11-8f91-005056ae4e88@saasher-cti1_0_0", "agent": "ACA010536", "uuid": "9b0c473f-dbbb-49d3-8883-41fb6295ccab" }, { "_id": "5f048b192b66ce470c464607", "__v": 0, "callcenter": "CC_DEFAULT", "partner": "DEFAULT", "recorderAddr": "10.112.4.138", "callType": "callTask", "auto": true, "macroactivity": null, "ecid": "saasher|19|169225|33", "remote": "3470519467", "extension": "80305@B2BUAEP.saasher.priv", "duration": 2624, "startTs": "2020-07-07T07:14:51.000Z", "callId": "fab88f28-8fbe-ea11-8f91-005056ae4e88@saasher-cti1_0_0", "agent": "CRE010003", "uuid": "7a224ce5-dd9c-4772-b9d3-77a10417d91b" }, { "_id": "5f048b102b66ce470c4645e8", "__v": 0, "callcenter": "CC_DEFAULT", "partner": "DEFAULT", "recorderAddr": "10.112.4.138", "callType": "callTask", "auto": true, "macroactivity": null, "ecid": "saasher|7|166473|33", "remote": "3467624210", "extension": "80385@B2BUAEP.saasher.priv", "duration": 2816, "startTs": "2020-07-07T09:50:08.000Z", "callId": "fe82d1e4-a4be-ea11-8420-005056ae4e88@saasher-cti1_0_0", "agent": "DAT010034", "uuid": "738f4837-b622-4528-ba30-16a030ca6795" }, { "_id": "5f048b1c2b66ce470c464615", "__v": 0, "callcenter": "CC_DEFAULT", "partner": "DEFAULT", "recorderAddr": "10.112.4.138", "callType": "callTask", "auto": true, "macroactivity": null, "ecid": "saasher|49|15377|69", "remote": "3407487474", "extension": "80127@B2BUAEP.saasher.priv", "duration": 2944, "startTs": "2020-07-07T08:42:39.000Z", "callId": "fa3e6f70-9bbe-ea11-8f91-005056ae4e88@saasher-cti1_0_0", "agent": "GVC010001", "uuid": "d2d4e654-8bbd-4bcd-9146-bc23d73ea7ca" }, { "_id": "5f048b1b2b66ce470c464610", "__v": 0, "callcenter": "CC_DEFAULT", "partner": "DEFAULT", "recorderAddr": "10.112.4.138", "callType": "callTask", "auto": true, "macroactivity": null, "ecid": "saasher|12|505888|36", "remote": "3332423007", "extension": "80344@B2BUAEP.saasher.priv", "duration": 2944, "startTs": "2020-07-07T07:58:37.000Z", "callId": "fa725845-95be-ea11-8b23-005056ae5f1b@saasher-cti1_0_0", "agent": "SEE010164", "uuid": "92ce0b6e-b0da-4673-96c8-08a6b3350e28" }, { "_id": "5f048b112b66ce470c4645ed", "__v": 0, "callcenter": "CC_DEFAULT", "partner": "DEFAULT", "recorderAddr": "10.112.4.138", "callType": "callTask", "auto": true, "macroactivity": null, "ecid": "saasher|53|510314|36", "remote": "3381353782", "extension": "80424@B2BUAEP.saasher.priv", "duration": 3109, "startTs": "2020-07-07T09:31:00.000Z", "callId": "fe378939-a2be-ea11-8420-005056ae4e88@saasher-cti1_0_0", "agent": "ALB010002", "uuid": "dec60781-ca48-4fbf-a226-59780e106249" }, { "_id": "5f048b122b66ce470c4645f0", "__v": 0, "callcenter": "CC_DEFAULT", "partner": "DEFAULT", "recorderAddr": "10.112.4.138", "callType": "callTask", "auto": true, "macroactivity": null, "ecid": "saasher|44|353931|38", "remote": "0721803506", "extension": "80116@B2BUAEP.saasher.priv", "duration": 3160, "startTs": "2020-07-07T08:45:48.000Z", "callId": "fe1315ec-9bbe-ea11-9110-005056ae5f1b@saasher-cti1_0_0", "agent": "JR010016", "uuid": "3376a9cd-3bd9-4fef-a5ab-1976aba4037b" }, { "_id": "5f048b102b66ce470c4645e6", "__v": 0, "callcenter": "CC_DEFAULT", "partner": "DEFAULT", "recorderAddr": "10.112.4.138", "callType": "callTask", "auto": true, "macroactivity": null, "ecid": "saasher|19|132958|34", "remote": "3338031387", "extension": "80305@B2BUAEP.saasher.priv", "duration": 3189, "startTs": "2020-07-07T07:21:54.000Z", "callId": "fe99c723-90be-ea11-8f91-005056ae4e88@saasher-cti1_0_0", "agent": "CRE010003", "uuid": "e0da5d84-9099-423c-86e3-355564c03d8c" }, { "_id": "5f048b102b66ce470c4645e5", "__v": 0, "callcenter": "CC_DEFAULT", "partner": "DEFAULT", "recorderAddr": "10.112.4.138", "callType": "callTask", "auto": true, "macroactivity": null, "ecid": "saasher|78|8808|109", "remote": "3474811806", "extension": "80221@B2BUAEP.saasher.priv", "duration": 3500, "startTs": "2020-07-07T07:32:31.000Z", "callId": "feac31af-91be-ea11-9110-005056ae5f1b@saasher-cti1_0_0", "agent": "COV010005", "uuid": "1f54fb1c-df24-463e-a8d9-d6d63d4bebf7" } ], "error": null, "count": 175 }

Â