Skip to main content

Overview

Using the GraphQL API to get Unwrap data

The Unwrap GraphQL API allows you to get all metadata associated with each feedback entry in a View.

This API is available for authenticated users only. If you are not already authorized/have an API token, contact your Unwrap representative, or contact@unwrap.ai to discuss pricing and authentication.

Filters

The API supports filtering feedback entries by any of the fields available above. A few examples of what you can query for:

  • feedback entries submitted after November 1, 2022
  • feedback entries submitted via the Google Play Store about the group "log in"
  • feedback entries where the value for the "version" segment is "v2.1"

Example query

Example GraphQL query to get the display text from recent feedback entries

query Entries($teamId: Int!, $filterInput: FilterInput, $take: Int, $skip: Int) {
entries(teamId: $teamId, filterInput: $filterInput, take: $take, skip: $skip) {
id
feedbackEntryText {
displayText
}
providerUniqueId
}
}
{
"teamId": 1056, // replace with your team Id
"take": 50,
"filterInput": {
"startDate": "2020-07-01T07:00:00.000Z",
"endDate": "2023-09-01T06:59:59.999Z"
},
"skip": null
}

Example Response Payload

Below is an example of a response you would get for the query above:

{
"data": {
"entries": [
{
"id": 5607102,
"feedbackEntryText": {
"displayText": "I just love it"
},
"providerUniqueId": "fc55dc29-b338-4d7c-a951-79b0ed64cdba"
},
{
"id": 5607101,
"feedbackEntryText": {
"displayText": "Fun"
},
"providerUniqueId": "04ea2e5f-51ba-423e-8d76-1a2557e3af16"
},
{
"id": 5607100,
"feedbackEntryText": {
"displayText": "Great game!!"
},
"providerUniqueId": "1f27ad95-0efe-4782-a0dd-cbab258f34dd"
}
]
}
}