---
title: "Get Data Product Documents Metadata"
method: GET
path: "/api/products/v2/{id}/documents"
tags: ["Data Products"]
---

# Get Data Product Documents Metadata

`GET /api/products/v2/{id}/documents`

Retrieves metadata for all documents of a data product. Accessible to the owning provider and admins.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `actingRole` 'PROVIDER' | 'ADMIN'

## Response `200`

OK

- DataProductDocumentMetadataDto[]
  - `id` string, uuid, required
  - `fileName` string, required — Filename of the document
  - `sizeBytes` integer, required — Filesize of the document
  - `scanStatus` 'PENDING_SCAN' | 'AVAILABLE' | 'REJECTED' | 'SCAN_FAILED', required

## Other responses

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

## Changes

- **2026-07-16** `e2684b7af4bb` — 4 info
  - the response property `items/fileName` became required for the status `200`
  - the response property `items/id` became required for the status `200`
  - the response property `items/scanStatus` became required for the status `200`
  - the response property `items/sizeBytes` became required for the status `200`
- **2026-07-13** `bf09fcfe746c` — 1 info
  - endpoint added
- **2026-07-09** `73b93bab6c7b` — 1 breaking
  - api path removed without deprecation
- **2026-07-08** `4f907e176481` — 1 info
  - endpoint added
- **2026-07-02** `aec259103b95` — 1 breaking
  - api path removed without deprecation

[Full history](https://skmtc.dev/agridata/apis/agridata-ch-api/changes/api/products/v2/:id/documents/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-service-production.skmtc.workers.dev/v1/apis/agridata/agridata-ch-api/revisions/5760204210ed/schema)
