---
agentTools:
  projectIndex: https://clientsuccess.readme.io/llms.txt
---

# /survey/report/response

Search survey response

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "ClientSuccess API",
    "description": "ClientSuccess CNS API",
    "version": "v2.0.0"
  },
  "servers": [
    {
      "url": "https://api.clientsuccess.com/v2"
    }
  ],
  "security": [
    {
      "gen-auth": []
    }
  ],
  "paths": {
    "/survey/report/response": {
      "post": {
        "tags": [
          "Surveys"
        ],
        "description": "Search survey response",
        "operationId": "searchSurveyResponse_1",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SurveySearchParams"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ResultPageSurveySearchResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ValidationError": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "field": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "fieldValue": {
            "type": "object"
          }
        }
      },
      "ValidationErrors": {
        "type": "object",
        "properties": {
          "objectName": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            }
          }
        }
      },
      "AccTeamingRolesFilter": {
        "type": "object",
        "properties": {
          "roleId": {
            "type": "integer",
            "format": "int64"
          },
          "employeeIds": {
            "uniqueItems": true,
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          }
        }
      },
      "Facets": {
        "type": "object",
        "properties": {
          "contactTypes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "segments": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "comments": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SurveySearchParams": {
        "type": "object",
        "properties": {
          "campaignIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            }
          },
          "clientIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            }
          },
          "clientTypeIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            }
          },
          "assignedToIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            }
          },
          "contactIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            }
          },
          "contactUuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "contactTypes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "region": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            }
          },
          "employeeId": {
            "type": "integer",
            "format": "int64"
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          },
          "facets": {
            "$ref": "#/components/schemas/Facets"
          },
          "lastResultTime": {
            "type": "string",
            "format": "date-time"
          },
          "offset": {
            "type": "string"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "roleSegment": {
            "type": "string"
          },
          "searchText": {
            "type": "string"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "sourceIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "statuses": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "CREATED",
                "SENT",
                "DELIVERED",
                "BOUNCED",
                "SPAM",
                "OPENED",
                "CLICKED",
                "VIEWED",
                "RESPONDED",
                "SKIPPED",
                "OPTED_OUT"
              ]
            }
          },
          "surveyType": {
            "type": "string",
            "enum": [
              "NPS"
            ]
          },
          "surveyTypes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "NPS"
              ]
            }
          },
          "tenantId": {
            "type": "integer",
            "format": "int64"
          },
          "timeGroup": {
            "type": "string"
          },
          "accTeamingRoles": {
            "uniqueItems": true,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccTeamingRolesFilter"
            }
          },
          "adjustWeeksForLastWeekofYear": {
            "type": "boolean"
          }
        }
      },
      "PageSurveySearchResponse": {
        "type": "object",
        "properties": {
          "totalElements": {
            "type": "integer",
            "format": "int64"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          },
          "pageable": {
            "$ref": "#/components/schemas/Pageable"
          },
          "last": {
            "type": "boolean"
          },
          "first": {
            "type": "boolean"
          },
          "sort": {
            "$ref": "#/components/schemas/Sort"
          },
          "numberOfElements": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "content": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SurveySearchResponse"
            }
          },
          "number": {
            "type": "integer",
            "format": "int32"
          },
          "empty": {
            "type": "boolean"
          }
        }
      },
      "Pageable": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "paged": {
            "type": "boolean"
          },
          "unpaged": {
            "type": "boolean"
          },
          "sort": {
            "$ref": "#/components/schemas/Sort"
          },
          "offset": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "ResultPageSurveySearchResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string"
          },
          "errors": {
            "$ref": "#/components/schemas/ValidationErrors"
          },
          "data": {
            "$ref": "#/components/schemas/PageSurveySearchResponse"
          },
          "rawData": {
            "type": "string"
          },
          "action": {
            "type": "string"
          }
        }
      },
      "SearchCampaign": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "uuid": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "SearchClient": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "uuid": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "SearchContact": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "uuid": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SearchSource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "Sort": {
        "type": "object",
        "properties": {
          "sorted": {
            "type": "boolean"
          },
          "unsorted": {
            "type": "boolean"
          },
          "empty": {
            "type": "boolean"
          }
        }
      },
      "SurveySearchResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "uuid": {
            "type": "string"
          },
          "campaign": {
            "$ref": "#/components/schemas/SearchCampaign"
          },
          "contact": {
            "$ref": "#/components/schemas/SearchContact"
          },
          "client": {
            "$ref": "#/components/schemas/SearchClient"
          },
          "score": {
            "type": "number"
          },
          "comments": {
            "type": "string"
          },
          "source": {
            "$ref": "#/components/schemas/SearchSource"
          },
          "respondedTime": {
            "type": "string",
            "format": "date-time"
          },
          "sentTime": {
            "type": "string",
            "format": "date-time"
          },
          "sourceCreatedTime": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "type": "string",
            "enum": [
              "CREATED",
              "SENT",
              "DELIVERED",
              "BOUNCED",
              "SPAM",
              "OPENED",
              "CLICKED",
              "VIEWED",
              "RESPONDED",
              "SKIPPED",
              "OPTED_OUT"
            ]
          },
          "statusReason": {
            "type": "string",
            "enum": [
              "SURVEYS_DISABLED",
              "CONTACTS_PER_PERIOD_SETTING",
              "SURVEYS_PER_PERIOD_SETTING",
              "DOMAIN_ACL_FILTER",
              "EMAIL_ACL_FILTER",
              "TENANT_ONCE_PER_CAMPAIGN_ACL_FILTER",
              "TENANT_ONCE_PER_N_DAYS_ACL_FILTER",
              "CAMPAIGN_ONCE_PER_CAMPAIGN_ACL_FILTER",
              "CAMPAIGN_ONCE_PER_N_DAYS_ACL_FILTER",
              "EMAIL_SEND_FAILURE",
              "CONTACT_OPTED_OUT",
              "DELIVERABILITY"
            ]
          },
          "resentCount": {
            "type": "integer",
            "format": "int32"
          },
          "resentTime": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    },
    "securitySchemes": {
      "gen-auth": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 101,
      "1": 113,
      "2": 164,
      "3": 150,
      "4": 249,
      "5": 175,
      "6": 252,
      "7": 0,
      "8": 77,
      "9": 217,
      "10": 148,
      "11": 207
    }
  }
}
```