---
title: "Get survey response samples"
method: GET
path: "/engagement/surveys/{surveyId}/responses/samples"
tags: ["Engagement Survey"]
---

# Get survey response samples

`GET /engagement/surveys/{surveyId}/responses/samples`

## Request

- Base URL: `https://api.gleap.io/v3`
- URL: `https://api.gleap.io/v3/engagement/surveys/{surveyId}/responses/samples`
- Auth: HTTP bearer

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`).

## Path parameters

- `surveyId` string, required

## Headers

- `project` string, required

## Response `200`

Ok

- unknown

---

[API](https://skmtc.dev/gleap/apis/gleap-server.md) - [All operations](https://skmtc.dev/gleap/apis/gleap-server/llms.txt) - [OpenAPI document](https://skmtc.dev/gleap/apis/gleap-server/revisions/3b025e883cef?raw)
