Query
query CustomerSurveys {
customerSurveys {
edges {
cursor
node {
id
name
template {
__typename
... on CsatCustomerSurveyTemplate {
__typename
}
}
conditions {
__typename
... on CustomerSurveyTiersCondition {
__typename
}
}
conditionsOperator
isEnabled
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Response
{
"data": {
"customerSurveys": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"name": "string",
"template": {
"__typename": "CsatCustomerSurveyTemplate"
},
"conditions": [
{
"__typename": "CustomerSurveyTiersCondition"
}
],
"conditionsOperator": "AND",
"isEnabled": true
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Queries
customerSurveys
Returns a paginated list of all customer surveys configured in the workspace, ordered by their display order. Use this to build management UIs or sync survey configurations.
QUERY
customerSurveys(first: Int, after: String, last: Int, before: String): CustomerSurveyConnection!Arguments
first
Int
after
String
last
Int
before
String
Returns
edges
pageInfo
Query
query CustomerSurveys {
customerSurveys {
edges {
cursor
node {
id
name
template {
__typename
... on CsatCustomerSurveyTemplate {
__typename
}
}
conditions {
__typename
... on CustomerSurveyTiersCondition {
__typename
}
}
conditionsOperator
isEnabled
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Response
{
"data": {
"customerSurveys": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"name": "string",
"template": {
"__typename": "CsatCustomerSurveyTemplate"
},
"conditions": [
{
"__typename": "CustomerSurveyTiersCondition"
}
],
"conditionsOperator": "AND",
"isEnabled": true
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Was this page helpful?

