---
title: "Returns the per-item audit trail for a sample generation request."
method: GET
path: "/benchmark/sample-generation/{sampleGenerationId}/items"
tags: ["SampleGeneration"]
---

# Returns the per-item audit trail for a sample generation request.

`GET /benchmark/sample-generation/{sampleGenerationId}/items`

## Path parameters

- `sampleGenerationId` string, required

## Query parameters

- `page` integer
- `page_size` integer
- `sort` string[]
- `status` object
  - `eq` string
  - `neq` string
  - `gt` string
  - `gte` string
  - `lt` string
  - `lte` string
  - `contains` string
  - `starts_with` string
  - `ends_with` string
  - `in` string[]
  - `not_contains` string
- `participant_id` object
  - `eq` string
  - `neq` string
  - `gt` string
  - `gte` string
  - `lt` string
  - `lte` string
  - `contains` string
  - `starts_with` string
  - `ends_with` string
  - `in` string[]
  - `not_contains` string
- `prompt_identifier` object
  - `eq` string
  - `neq` string
  - `gt` string
  - `gte` string
  - `lt` string
  - `lte` string
  - `contains` string
  - `starts_with` string
  - `ends_with` string
  - `in` string[]
  - `not_contains` string
- `created_at` object
  - `eq` string
  - `neq` string
  - `gt` string
  - `gte` string
  - `lt` string
  - `lte` string
  - `contains` string
  - `starts_with` string
  - `ends_with` string
  - `in` string[]
  - `not_contains` string
- `logic` 'and' | 'or'

## Response `200`

OK

- GetSampleGenerationItemsEndpointPagedResultOfOutput
  - `total` integer, required
  - `page` integer, required
  - `pageSize` integer, required
  - `items` GetSampleGenerationItemsEndpointOutput[], required
    - `id` string, required — The id of the generation item.
    - `sampleGenerationId` string, required — The id of the parent sample generation.
    - `participantId` string, required — The participant whose faucet is producing this sample.
    - `participantName` string, nullable — The participant's display name, or null if the participant no longer exists.
    - `benchmarkPromptId` string, required — The benchmark prompt this item targets.
    - `promptIdentifier` string, required — The identifier of the prompt being generated.
    - `sampleCount` integer, required — How many samples this item produces for its (participant, prompt) pair.
    - `status` 'Pending' | 'Running' | 'Succeeded' | 'Failed', required
    - `attemptCount` integer, required — Number of delivery attempts that have been made on this item.
    - `providerRequestId` string, nullable — Provider-side request id used to correlate with the provider's logs.
    - `failureReason` string, nullable — Failure reason if the item is in a failed state.
    - `sampleIds` string[], required — The ids of the samples created from this item once it succeeds.
    - `createdAt` string, date-time, required — When the item was created.
  - `totalPages` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthenticated
- `403` — Forbidden

---

[API](https://skmtc.net/rapidata/apis/rapidata-api.md) · [All operations](https://skmtc.net/rapidata/apis/rapidata-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rapidata/rapidata-api/revisions/e42ec51c7b88/schema)
