---
title: "api/export GET
Generate an Excel file with all user data and send by e-mail or as download link"
method: GET
path: "/api/export"
tags: ["Api\\ExportController"]
---

# api/export GET
Generate an Excel file with all user data and send by e-mail or as download link

`GET /api/export`

## Headers

- `Authorization` string
- `Content-Type` string
- `Accept` string
- `Accept-language` string

## Request body

- object
  - `groupdata` boolean — 1: also include group data in export. 0, of not filled: only export my own data. Default: 0.
  - `sensordata` boolean — 1: also include measurement data in export. 0, of not filled: do not add measurement data. Default: set in environment settings.
  - `link` boolean — 1: Save the export to a file and provide the link, 0, or not filled means: send the Excel as an attachment to an email to the user's email address. Default: 0.

## Other responses

- `500`

## Changes

> 15 revisions in range; 1 could not be searched.

- **2023-03-23** `7b351edd8cc7` — 1 info
  - added optional request body
- **2023-02-01** `24f68ed65e1c` — 2 info
  - added the non-success response with the status `401`
  - removed the non-success response with the status `500`
- **2022-12-20** `db62247285c8` — 2 info
  - added the non-success response with the status `500`
  - removed the non-success response with the status `401`
- **2022-06-20** `a87569f002e1` — 1 info
  - added the new optional `header` request parameter `Accept-language`
- **2022-06-10** `568ca15f3476` — 1 breaking, 1 warning, 2 info
  - removed the request body
  - deleted the `header` request parameter `Accept-language`
  - added the non-success response with the status `401`
  - removed the non-success response with the status `500`

[Change history](https://skmtc.dev/beepnl/apis/beep/changes/api/export/get.md)

---

[API](https://skmtc.dev/beepnl/apis/beep.md) · [All operations](https://skmtc.dev/beepnl/apis/beep/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/beepnl/beep/revisions/7f1e35deb524/schema)
