---
title: "Returns the current status and progress of a sample generation request."
method: GET
path: "/benchmark/sample-generation/{sampleGenerationId}"
tags: ["SampleGeneration"]
---

# Returns the current status and progress of a sample generation request.

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

## Path parameters

- `sampleGenerationId` string, required

## Response `200`

OK

- GetSampleGenerationEndpointOutput
  - `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.
  - `participantFilter` GetSampleGenerationEndpointOutputParticipant[], nullable — The participants (id + display name) this generation was filtered to when it was created, or null when no participant filter was applied. A since-deleted participant keeps its id with a null name.
    - `id` string, required
    - `name` string, nullable
  - `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.

## 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)
