> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gleap.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Search survey responses

> Full-text search over the answers of all the project's survey responses (Surveys 2.0), newest first.
Query parameters: `q` (required, 2–100 characters), `surveyId` (optional, narrows to one survey),
`status` (optional comma list of `completed`, `partial`, `in_progress`), `limit` (default 10, at most 50).
Answers `{ available, hits: [{ id, surveyId, surveyName, status, channel, nps, snippet, contact,
createdAt, completedAt }] }`; `available: false` means the search index is not available in this region
(use `GET /{surveyId}/responses?q=` per survey instead).



## OpenAPI

````yaml https://api.gleap.io/api-docs.json get /engagement/surveys/responses/search
openapi: 3.0.0
info:
  title: gleap-server
  version: 14.0.0
  contact: {}
servers:
  - url: https://api.gleap.io/v3
security: []
paths:
  /engagement/surveys/responses/search:
    get:
      tags:
        - Engagement Survey
      summary: Search survey responses
      description: >-
        Full-text search over the answers of all the project's survey responses
        (Surveys 2.0), newest first.

        Query parameters: `q` (required, 2–100 characters), `surveyId`
        (optional, narrows to one survey),

        `status` (optional comma list of `completed`, `partial`, `in_progress`),
        `limit` (default 10, at most 50).

        Answers `{ available, hits: [{ id, surveyId, surveyName, status,
        channel, nps, snippet, contact,

        createdAt, completedAt }] }`; `available: false` means the search index
        is not available in this region

        (use `GET /{surveyId}/responses?q=` per survey instead).
      operationId: SearchSurveyResponses
      parameters:
        - in: header
          name: project
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema: {}
      security:
        - jwt: []
components:
  securitySchemes:
    jwt:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.