---
title: "Export Consent Requests Of Data Request"
method: GET
path: "/api/agreement/v1/data-requests/{id}/consent-requests/export"
tags: ["Data Requests"]
---

# Export Consent Requests Of Data Request

`GET /api/agreement/v1/data-requests/{id}/consent-requests/export`

## Request

- The document declares no server URL.
- Auth: OpenID Connect (`http://localhost:6999/realms/agate/.well-known/openid-configuration`, scopes: `agridata.ch.Agridata_Datenbezueger`, `agridata.ch.Agridata_Admin`)

Exports the consent requests of a data request as CSV (semicolon-separated, UTF-8 with BOM) with the columns uid, bur, requestDate, lastChangeDate and stateCode. Consent requests of terminated UID/BUR relations are excluded. Exports of more than 100000 consent requests are rejected with status 400 and type EXPORT_LIMIT_EXCEEDED. If too many exports run concurrently, the export is rejected with status 503, type EXPORT_CAPACITY_EXHAUSTED and a Retry-After header. Accessible to the consumer who owns the data request and to admin users. Only active and paused data requests can be exported, otherwise the export is rejected with status 400. Draft data requests are not found for admin users.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `actingRole` 'CONSUMER' | 'ADMIN'

## Response `200`

OK

## Other responses

- `401`: Not Authorized
- `403`: Not Allowed
- `404`: The resource or element was not found
- `500`: Internal server error: unexpected error

## Changes

- **2026-10-19** `75957f6bdc66`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agridata/apis/agridata-ch-api/changes/api/agreement/v1/data-requests/:id/consent-requests/export/get.md)

---

[API](https://skmtc.dev/agridata/apis/agridata-ch-api.md) - [All operations](https://skmtc.dev/agridata/apis/agridata-ch-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agridata/apis/agridata-ch-api/revisions/48ab7e1541c3?raw)
