---
title: "Lists historical sample generation runs for the given benchmark."
method: GET
path: "/benchmark/{benchmarkId}/sample-generations"
tags: ["SampleGeneration"]
---

# Lists historical sample generation runs for the given benchmark.

`GET /benchmark/{benchmarkId}/sample-generations`

Results are sorted by creation time (newest first) by default.

## Path parameters

- `benchmarkId` 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
- `logic` 'and' | 'or'

## Response `200`

OK

- QuerySampleGenerationsByBenchmarkEndpointPagedResultOfOutput
  - `total` integer, required
  - `page` integer, required
  - `pageSize` integer, required
  - `items` QuerySampleGenerationsByBenchmarkEndpointOutput[], required
    - `id` string, required — The id of the sample generation request.
    - `benchmarkId` string, required — The benchmark this generation belongs to.
    - `status` 'Pending' | 'Processing' | 'Completed' | 'CompletedWithFailures' | 'Failed' | 'Cancelled', required
    - `samplesPerPrompt` integer, required — How many samples are being generated per prompt.
    - `totalCount` integer, required — The total number of items queued.
    - `completedCount` integer, required — The number of items that have succeeded so far.
    - `failedCount` integer, required — The number of items that have failed.
    - `participantIdFilter` string[], nullable — Optional participant id filter that was applied when this generation was created.
    - `promptIdentifierFilter` string[], nullable — Optional prompt identifier filter that was applied.
    - `tagsFilter` string[], nullable — Optional tag filter that was applied.
    - `ownerId` string, uuid, required — The id of the customer that started this generation.
    - `ownerMail` string, required — The mail of the customer that started this generation.
    - `organizationId` string, required — The id of the organization that owns the entity.
    - `createdAt` string, date-time, required — When the generation 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)
