---
title: "Get survey response samples"
url: https://docs.gleap.ai/en/reference/rest-api/get-survey-response-samples
method: GET
path: "/engagement/surveys/{surveyId}/responses/samples"
api: "API Reference"
tag: "Engagement Survey"
operationId: "GetSurveyResponseSamples"
updatedAt: "2026-11-01T18:40:15.677Z"
language: en
---

# Get survey response samples

`GET https://api.gleap.io/v3/engagement/surveys/{surveyId}/responses/samples`

Get a random sample of up to 10,000 responses for a survey, for client-side aggregation. Returns `{ samples, sampleSize, count }` where `count` is the total number of matching responses and `sampleSize` is the 10,000 sampling ceiling. Each sample is trimmed to `createdAt`, `formData`, `shareToken` and a minimal `session` (`_id`, `name`, `email`).

## Authorization

- `Authorization` (header, required): `Bearer <token>`

## Path parameters

- `surveyId` (string, required)

## Headers

- `project` (string, required)

## Example request

```bash
curl --request GET \
  --url 'https://api.gleap.io/v3/engagement/surveys/{surveyId}/responses/samples' \
  --header 'Authorization: Bearer <token>' \
  --header 'project: <project>'
```

## Responses

### 200 (`application/json`)

Ok
