---
title: "Get Producers"
method: GET
path: "/api/user/v1/producers"
tags: ["Users"]
---

# Get Producers

`GET /api/user/v1/producers`

Retrieves users matching the given query parameters.

## Query parameters

- `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

- PageResponseDtoUserInfoDto — Generic paginated response wrapper.
  - `items` UserInfoDto[], required — List of items on the current page.
    - `userId` string, uuid
    - `agateLoginId` string — AgateLoginId of the user.
    - `ktIdP` string — KtIdP of the user. Only set for data producers
    - `uid` string — UID of the user. Only set for data consumers.
    - `givenName` string — User's first name.
    - `familyName` string — User's last name.
    - `email` string — Email address of the user
    - `phoneNumber` string — Landline number of the user
    - `mobileNumber` string — Mobile number of the user
    - `addressStreet` string — Street name and house number of the user's residence.
    - `addressLocality` string — Locality (city or town) of the user's residence.
    - `addressPostalCode` string — Postal code of the user's residence.
    - `addressCountry` string — Country of residence
    - `lastLoginDate` string, date-time
    - `userPreferences` UserPreferencesDto
      - `mainMenuOpened` boolean — If the main menu is opened or closed.
      - `activeUid` string — the active uid of the producer
      - `dismissedMigratedIds` string[] — consent request ids for which we dont want to show migration notices anymore
      - `hasSeenConsentRequestTourIntro` boolean — Indicates whether the user has already seen the consent request feature tour introduction.
    - `rolesAtLastLogin` string[] — Roles of the user at the last login
    - `lastAcceptedAgbDate` string, date-time
    - `lastAcceptedAgbRevisionId` string, uuid
  - `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/revisions/c478ae39b261/schema)
