Paths
Retrieves a list of call history objects.
GET /callhistory
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
endTime |
Filters the records returned to those created before the specified end date. |
string (date-time) |
|
Query |
page |
Determines which page of pageSize records to return. The default is 1. This parameter only applies when the Content-type is "application/json". |
integer (int32) |
|
Query |
pageSize |
Controls the number of records returned in the response. The default is 100 and the maximum allowed value is 10000. This parameter only applies when the Content-type is "application/json". |
integer (int32) |
|
Query |
startTime |
Filters the records returned to those created after the specified start date. |
string (date-time) |
|
Query |
surveyId |
Filters the records returned to those associated with the specified SurveyId. You can filter by multiple SurveyIds by setting the parameter multiple times. |
< string > array(multi) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Ok, the request has succeeded. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
Example HTTP response
Response 200
{
"itemType" : "CallHistory",
"itemCount" : 3,
"totalCount" : 3,
"items" : [ {
"id" : 9,
"time" : "2022-11-18T17:23:43+00:00",
"surveyId" : "p916183813805",
"interviewId" : 20,
"interviewerId" : 15,
"telephoneNumber" : "1234567890",
"extendedStatus" : 13,
"aaporCode" : "1.1",
"duration" : 20,
"waitingTime" : 5,
"callCenterId" : 9,
"endTime" : "0001-01-01T00:00:00+00:00",
"links" : { }
}, {
"id" : 10,
"time" : "2022-11-18T05:23:43+00:00",
"surveyId" : "p916183813805",
"interviewId" : 20,
"interviewerId" : 16,
"telephoneNumber" : "1234567891",
"extendedStatus" : 13,
"aaporCode" : "1.1",
"duration" : 30,
"waitingTime" : 5,
"callCenterId" : 9,
"endTime" : "0001-01-01T00:00:00+00:00",
"links" : { }
}, {
"id" : 11,
"time" : "2022-11-18T18:23:43+00:00",
"surveyId" : "p916183813805",
"interviewId" : 25,
"interviewerId" : 19,
"telephoneNumber" : "1234567892",
"extendedStatus" : 13,
"aaporCode" : "1.1",
"duration" : 25,
"waitingTime" : 5,
"callCenterId" : 9,
"endTime" : "0001-01-01T00:00:00+00:00",
"links" : { }
} ],
"links" : { }
}
{
"application/json" : {
"itemType" : "CallHistory",
"itemCount" : 3,
"totalCount" : 3,
"items" : [ {
"id" : 9,
"time" : "2022-11-18T17:23:43+00:00",
"surveyId" : "p916183813805",
"interviewId" : 20,
"interviewerId" : 15,
"telephoneNumber" : "1234567890",
"extendedStatus" : 13,
"aaporCode" : "1.1",
"duration" : 20,
"waitingTime" : 5,
"callCenterId" : 9,
"endTime" : "0001-01-01T00:00:00+00:00",
"links" : { }
}, {
"id" : 10,
"time" : "2022-11-18T05:23:43+00:00",
"surveyId" : "p916183813805",
"interviewId" : 20,
"interviewerId" : 16,
"telephoneNumber" : "1234567891",
"extendedStatus" : 13,
"aaporCode" : "1.1",
"duration" : 30,
"waitingTime" : 5,
"callCenterId" : 9,
"endTime" : "0001-01-01T00:00:00+00:00",
"links" : { }
}, {
"id" : 11,
"time" : "2022-11-18T18:23:43+00:00",
"surveyId" : "p916183813805",
"interviewId" : 25,
"interviewerId" : 19,
"telephoneNumber" : "1234567892",
"extendedStatus" : 13,
"aaporCode" : "1.1",
"duration" : 25,
"waitingTime" : 5,
"callCenterId" : 9,
"endTime" : "0001-01-01T00:00:00+00:00",
"links" : { }
} ],
"links" : { }
},
"application/x-ndjson" : {
"itemType" : "CallHistory",
"itemCount" : 3,
"totalCount" : 3,
"items" : [ {
"id" : 9,
"time" : "2022-11-18T17:23:43+00:00",
"surveyId" : "p916183813805",
"interviewId" : 20,
"interviewerId" : 15,
"telephoneNumber" : "1234567890",
"extendedStatus" : 13,
"aaporCode" : "1.1",
"duration" : 20,
"waitingTime" : 5,
"callCenterId" : 9,
"endTime" : "0001-01-01T00:00:00+00:00",
"links" : { }
}, {
"id" : 10,
"time" : "2022-11-18T05:23:43+00:00",
"surveyId" : "p916183813805",
"interviewId" : 20,
"interviewerId" : 16,
"telephoneNumber" : "1234567891",
"extendedStatus" : 13,
"aaporCode" : "1.1",
"duration" : 30,
"waitingTime" : 5,
"callCenterId" : 9,
"endTime" : "0001-01-01T00:00:00+00:00",
"links" : { }
}, {
"id" : 11,
"time" : "2022-11-18T18:23:43+00:00",
"surveyId" : "p916183813805",
"interviewId" : 25,
"interviewerId" : 19,
"telephoneNumber" : "1234567892",
"extendedStatus" : 13,
"aaporCode" : "1.1",
"duration" : 25,
"waitingTime" : 5,
"callCenterId" : 9,
"endTime" : "0001-01-01T00:00:00+00:00",
"links" : { }
} ],
"links" : { }
}
}
Retrieves a list of dialer objects.
GET /dialers
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Ok, the request has succeeded. |
|
401 |
Unauthorized |
No Content |
Example HTTP response
Response 200
{
"itemType" : "Dialer",
"itemCount" : 3,
"totalCount" : 3,
"items" : [ {
"id" : 1,
"name" : "Dialer1",
"dialType" : "cellphone",
"dialerStatus" : "connectedAndActivated",
"links" : { }
}, {
"id" : 2,
"name" : "Dialer2",
"dialType" : "landline",
"dialerStatus" : "disconnected",
"links" : { }
}, {
"id" : 2,
"name" : "Dialer3",
"dialType" : "landline",
"dialerStatus" : "connected",
"links" : { }
} ],
"links" : { }
}
Retrieves a dialer object by id.
Updates dialer status by dialer id.
PUT /dialers/{id}/status
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The id of the dialer. |
integer (int32) |
Query |
dialerStatus |
New availability status of the dialer. Valid values are [Disconnected, Connected, ConnectedAndActivated] |
string |
Retrieves a list of Interviews.
GET /surveys/{surveyId}/interviews
Description
The response will be a list of Interviews.
Sample request:
GET /surveys/{surveyId}/interviews/
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
surveyId |
The id of the survey (pXXXXXXXX). |
string |
|
Query |
assignedResourceName |
Filters the records returned to those associated with the specified assignedResourceName. |
string |
|
Query |
callState |
Filters the records returned to those associated with the specified callState. You can filter by multiple callStates by setting the parameter multiple times. |
< CallState > array(multi) |
|
Query |
extendedStatusId |
Filters the records returned to those associated with the specified extendedStatusId. You can filter by multiple extendedStatusIds by setting the parameter multiple times. |
< integer (int32) > array(multi) |
|
Query |
lastInterviewerName |
Filters the records returned to those associated with the specified lastInterviewerName. |
string |
|
Query |
page |
Determines which page of pageSize records to return. The default is 1. This parameter only applies when the Content-type is "application/json". |
integer (int32) |
|
Query |
pageSize |
Controls the number of records returned in the response. The default is 100 and the maximum allowed value is 10000. This parameter only applies when the Content-type is "application/json". |
integer (int32) |
|
Query |
scheduled |
Set this parameter to "True" to get scheduled interviews only, or "False" to get not scheduled interviews only. Skip this parameter to get both scheduled and not scheduled interviews. |
boolean |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Ok, the request has succeeded. |
|
400 |
Bad request. The query parameters are not valid. |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden. You do not have access to this survey. |
No Content |
404 |
Survey with such id not found. |
No Content |
Example HTTP response
Response 200
{
"itemType" : "Interview",
"itemCount" : 1,
"totalCount" : 1,
"items" : [ {
"surveyId" : "p999183813895",
"interviewId" : 2,
"telephoneNumber" : "0074852586932",
"respondentName" : "1",
"dialingMode" : "undefined",
"dialTypeName" : "Landline",
"dialTypeId" : 0,
"lastInterviewerName" : "egork",
"extendedStatusName" : "Completed",
"extendedStatusId" : 13,
"assignedResourceName" : "",
"timezoneName" : "",
"callAttemptsCount" : 0,
"shiftType" : "",
"reviewStatus" : "notSentToReview",
"links" : { }
} ],
"links" : { }
}
{
"application/json" : {
"itemType" : "Interview",
"itemCount" : 1,
"totalCount" : 1,
"items" : [ {
"surveyId" : "p999183813895",
"interviewId" : 2,
"telephoneNumber" : "0074852586932",
"respondentName" : "1",
"dialingMode" : "undefined",
"dialTypeName" : "Landline",
"dialTypeId" : 0,
"lastInterviewerName" : "egork",
"extendedStatusName" : "Completed",
"extendedStatusId" : 13,
"assignedResourceName" : "",
"timezoneName" : "",
"callAttemptsCount" : 0,
"shiftType" : "",
"reviewStatus" : "notSentToReview",
"links" : { }
} ],
"links" : { }
},
"application/x-ndjson" : {
"itemType" : "Interview",
"itemCount" : 1,
"totalCount" : 1,
"items" : [ {
"surveyId" : "p999183813895",
"interviewId" : 2,
"telephoneNumber" : "0074852586932",
"respondentName" : "1",
"dialingMode" : "undefined",
"dialTypeName" : "Landline",
"dialTypeId" : 0,
"lastInterviewerName" : "egork",
"extendedStatusName" : "Completed",
"extendedStatusId" : 13,
"assignedResourceName" : "",
"timezoneName" : "",
"callAttemptsCount" : 0,
"shiftType" : "",
"reviewStatus" : "notSentToReview",
"links" : { }
} ],
"links" : { }
}
}