---
title: "Export GDPR requests as csv, xls or xlsx"
method: GET
path: "/customers/gdpr-requests/export"
tags: ["Admin Customer GDPR"]
---

# Export GDPR requests as csv, xls or xlsx

`GET /customers/gdpr-requests/export`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/customers/gdpr-requests/export`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/customers/gdpr-requests/export/get.ts> (a function with typed inputs; its response is checked against the schema)

Downloads the GDPR requests datagrid — the same columns the admin Export button produces (ID, Customer Name, Status, Type, Message, Created At). Honours the same filters as the listing and exports every matching row. Binary download, not JSON. Requires `customers.gdpr_requests`.

## Query parameters

- `format` 'csv' | 'xls' | 'xlsx'
- `status` string
- `type` string
- `customer_id` integer
- `email` string
- `customer_name` string
- `created_at_from` string
- `created_at_to` string

## Response `200`

Export file downloaded as an attachment.

## Other responses

- `401`: Missing or invalid admin token.
- `403`: Admin role lacks customers.gdpr_requests.
- `404`: Not found
- `422`: Unsupported format (csv, xls and xlsx only).

## Changes

- **2026-10-28** `3198f11be70f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bagisto/apis/bagisto-admin-api/changes/customers/gdpr-requests/export/get.md)

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
