---
title: "Get All Agb Revisions"
method: GET
path: "/api/user/v1/admin/agb-revisions"
tags: ["Agb Revision Admin"]
---

# Get All Agb Revisions

`GET /api/user/v1/admin/agb-revisions`

## Request

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

Returns all Agb revisions. Supports pagination and sorting on 'version', 'validFrom', 'validTo' and 'enforceConsentFrom' (default: -validFrom).

## Query parameters

- `filter` object: Column filters in the form '<column>:<value>[,<value>]', multiple filters separated by ';'. Values of the same column are combined with OR, filters on different columns with AND. Duplicate values are ignored. The filterable columns are documented per endpoint.
- `language` string: language code for multilingual fields. Must be supported by application.
- `page` integer: page number
- `searchTerm` string: string to search for in the resource
- `size` integer: page size
- `sortBy` object: List of field names to sort by. Default is ascending prefix with - for descending

## Response `200`

OK

- PageResponseDtoAgbRevisionOverviewDto: Generic paginated response wrapper.
  - `items` AgbRevisionOverviewDto[], required: List of items on the current page.
    - `id` string, uuid
    - `version` string: Version of the agb revision
    - `validFrom` string, date-time
    - `validTo` string, date-time
    - `enforceConsentFrom` string, date-time
  - `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

## Changes

- **2026-10-19** `75957f6bdc66`: 1 info
  - endpoint added
- **2026-10-06** `82a5a1c50f30`: 1 breaking
  - api path removed without deprecation
- **2026-10-01** `ae5c7d8cdb15`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agridata/apis/agridata-ch-api/changes/api/user/v1/admin/agb-revisions/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)
