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

# Get Consent Requests Of Data Request

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

Retrieves the consent requests of a specific data request. Accessible to the provider who owns the data request.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `lastModifiedFrom` string, date-time
- `page` integer
- `size` integer

## Response `200`

OK

- PageResponseDtoConsentRequestFundamentalViewDto — Generic paginated response wrapper.
  - `items` ConsentRequestFundamentalViewDto[], required — List of items on the current page.
    - `id` string, uuid, required
    - `dataRequestId` string, uuid, required
    - `dataProducerUid` string — UID of the data producer
    - `dataProducerBur` string — BUR of the data producer
    - `grantedDataPeriodFrom` string, date
    - `grantedDataPeriodTo` string, date
    - `stateCode` 'GRANTED' | 'OPENED' | 'DECLINED' | 'NOT_CREATED' — Possible states of a consent request: - GRANTED: Consent has been granted - OPENED: Consent request is open and awaiting response - DECLINED: Consent has been declined - NOT_CREATED: Placeholder to indicate that no consent request exists yet for a given UID.
    - `lastModifiedDateTime` string, datetime — Date and time of the most recent modification to the consent request
  - `totalItems` integer, required — Total number of items across all pages.
  - `totalPages` integer, required — Total number of pages available.
  - `currentPage` integer, required — Current page number (0-based ).
  - `pageSize` integer, required — Number of items per page.

## Other responses

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

---

[API](https://skmtc.net/agridata/apis/agridata-ch-api.md) · [All operations](https://skmtc.net/agridata/apis/agridata-ch-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agridata/agridata-ch-api/versions/4f3c6bfcfcfd/schema)
