> ## 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.

# Get all survey responses

> Get the responses of a survey, unread first, then newest first. Supports `skip`, `limit` (defaults to
1000 when omitted; supplied values above 100 are clamped to 100) and field filters via query parameters.

Surveys 2.0: with `v=2` or any of `cursor`, `status` (comma list), `from`, `to` (YYYY-MM-DD), `version`,
`filter[<key>]=<value|min..max|a-b>`, `theme`, `channel`, `contactUserId`, `q`, `legacyTicket` the
response is `{ items, nextCursor?, total? }` (newest first, `limit` ≤ 50). Without them a v2 survey
answers the legacy array (`_id`, `formData` = answers by key, `session`, `createdAt`, `updatedAt`).



## OpenAPI

````yaml https://api.gleap.io/api-docs.json get /engagement/surveys/{surveyId}/responses
openapi: 3.0.0
info:
  title: gleap-server
  version: 14.0.0
  contact: {}
servers:
  - url: https://api.gleap.io/v3
security: []
paths:
  /engagement/surveys/{surveyId}/responses:
    get:
      tags:
        - Engagement Survey
      summary: Get all survey responses
      description: >-
        Get the responses of a survey, unread first, then newest first. Supports
        `skip`, `limit` (defaults to

        1000 when omitted; supplied values above 100 are clamped to 100) and
        field filters via query parameters.


        Surveys 2.0: with `v=2` or any of `cursor`, `status` (comma list),
        `from`, `to` (YYYY-MM-DD), `version`,

        `filter[<key>]=<value|min..max|a-b>`, `theme`, `channel`,
        `contactUserId`, `q`, `legacyTicket` the

        response is `{ items, nextCursor?, total? }` (newest first, `limit` ≤
        50). Without them a v2 survey

        answers the legacy array (`_id`, `formData` = answers by key, `session`,
        `createdAt`, `updatedAt`).
      operationId: GetSurveyResponses
      parameters:
        - in: path
          name: surveyId
          required: true
          schema:
            type: string
        - 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.