Using Get Feedback API

Important: This API is deprecated. Medallia recommends using the Medallia Query API. See your Medallia expert for additional information.

Sections in this topic include the following:

Parameter descriptions

FieldDescription
pageAPI supports paging the results; specify which page to receive. Default is 0.
itemsPerPage API supports paging the results; specify how many feedback per page to return. Default is 50; maximum value is 5,000 feedback items per page.
sortFieldField by which to sort. Supported fields are as follows:
  • creationDate (default)

  • displayUserDetails

  • isFlag

  • isRead

sortOrderASC — ascending order

DESC — descending order (default)

startDateFilter results that came after this timestamp. Default is 30 days ago.
endDateFilter results that came before this timestamp. Default is now.
filterURLFilter results by submission URL. Checking URL contains this text.
formIdFilter by specific form ID.
deviceTypeFilter by device type. Multiple device types are allowed. Possible values are as follows:
  • Desktop

  • Tablet

  • Mobile

  • Other

containsTextFilter by keywords. Multiple keywords are allowed. Keywords surrounded by double quotes are searched for with exact matching; keywords without quotes are searched by NLP stemming.
countryFilter by country code. Multiple country codes are allowed.
ruleIdFilter by predefined rule ID.

API contracts

Table 1. Result
JSONDescription
{
"resultCode":"SUCCESS/FAILURE",
"resultMessage":””, "kampyleId": “”,
"kampyleAdditionalInfo":[], "resultObject":null
}
resultCode is either SUCCESS or FAILURE

resultMessage on FAILURE contains error description

kampyleId — specific error ID

kampyleAdditionalInfo — more data that can be used describe the error (if kampyleId exists)

resultObject — returns the result of the API on SUCCESS

Table 2. Feedback result page
JSONDescription
{
"startDate":1509022800000
"endDate": null
"pageNumber": 0,
"pageSize": 50,
"totalPages": 10,
"numberOfElements": 50,
"hasPreviousPage": false,
"isFirstPage": true,
"hasNextPage": true,
"isLastPage": false,
"hasContent": true,
"timestamp": 1474790323000,
"feedbacks": []
}
startDate — start of date range selected milliseconds

endDate — end of date range selected milliseconds

pageNumber — current page requested and returned

pageSize — number of requested elements per page

totalPages — number of total pages existing for this request

numberOfElements — number of elements in this page

hasPreviousPage

isFirstPage

hasNextPage

isLastPage

hasContent

timestamp — the timestamp when the query was executed

feedbacks — array of feedback