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

# Get Consent Request Status Summary Of Data Request

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

## Request

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

Retrieves KPI counts (total/open/granted/declined) of consent requests for a data request, broken down by UID/BUR mode. Accessible to the consumer who owns the data request.

## Path parameters

- `id` string, uuid, required

## Response `200`

OK

- ConsentRequestStatusSummaryDto: KPI summary of consent requests for a data request, broken down by mode (UID/BUR)
  - `uid` StateCountsDto: Counts of consent requests by status, for a single mode (UID or BUR)
    - `total` integer
    - `open` integer
    - `granted` integer
    - `declined` integer
    - `withdrawn` integer
  - `bur` StateCountsDto: Counts of consent requests by status, for a single mode (UID or BUR)
    - `total` integer
    - `open` integer
    - `granted` integer
    - `declined` integer
    - `withdrawn` integer

## 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`: 4 warning
  - added the new `EXPORT_CAPACITY_EXHAUSTED` enum value to the `type` response property for the response status `404`
  - added the new `EXPORT_CAPACITY_EXHAUSTED` enum value to the `type` response property for the response status `500`
  - added the new `EXPORT_LIMIT_EXCEEDED` enum value to the `type` response property for the response status `404`
  - added the new `EXPORT_LIMIT_EXCEEDED` enum value to the `type` response property for the response status `500`
- **2026-10-01** `ae5c7d8cdb15`: 2 info
  - added the optional property `bur/withdrawn` to the response with the `200` status
  - added the optional property `uid/withdrawn` to the response with the `200` status
- **2026-09-24** `1aa7b6ad5bcc`: 2 warning
  - added the new `UID_CLAIM_MISSING` enum value to the `type` response property for the response status `404`
  - added the new `UID_CLAIM_MISSING` enum value to the `type` response property for the response status `500`
- **2026-09-18** `b86c404ad93b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agridata/apis/agridata-ch-api/changes/api/agreement/v1/data-requests/:id/consent-requests/status-summary/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)
