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

# Export survey responses

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

Export all responses of a survey as a downloadable file. CSV by default (`Content-Type: text/csv`, sent as an attachment named after the survey). Query parameters: `format=json` returns the same data as JSON instead; `label=keys` uses internal field names as column headers instead of the localized question titles.

## 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/export' \
  --header 'Authorization: Bearer <token>' \
  --header 'project: <project>'
```

## Responses

### 200 (`application/json`)

Ok
