---
title: "Gets a benchmark sample by its id."
method: GET
path: "/benchmark-sample/{sampleId}"
tags: ["Sample"]
---

# Gets a benchmark sample by its id.

`GET /benchmark-sample/{sampleId}`

## Path parameters

- `sampleId` string, required

## Response `200`

OK

- GetSampleByIdEndpointOutput
  - `id` string, required — The unique identifier of the sample.
  - `identifier` string, required — The identifier used to correlate samples of different participants.
  - `participantId` string, required — The id of the participant that owns the sample.
  - `participantName` string, required — The name of the participant that owns the sample.
  - `asset` union, required
    - object
      - `_t` 'FileAsset', required
      - `fileName` string, required
      - `metadata` MetadataModelCollection, required
      - `identifier` string, required
    - object
      - `_t` 'MultiAsset', required
      - `assets` IAsset[], required
      - `metadata` MetadataModelCollection, required
      - `identifier` string, required
    - object
      - `_t` 'NullAsset', required
      - `metadata` MetadataModelCollection, required
      - `identifier` string, required
    - object
      - `_t` 'TextAsset', required
      - `text` string, required
      - `metadata` MetadataModelCollection, required
      - `identifier` string, required
  - `englishPrompt` string, nullable — An optional prompt text translated to English.
  - `originalPrompt` string, nullable — An optional prompt text as originally provided.
  - `promptAsset` union
    - object
      - `_t` 'FileAsset', required
      - `fileName` string, required
      - `metadata` MetadataModelCollection, required
      - `identifier` string, required
    - object
      - `_t` 'MultiAsset', required
      - `assets` IAsset[], required
      - `metadata` MetadataModelCollection, required
      - `identifier` string, required
    - object
      - `_t` 'NullAsset', required
      - `metadata` MetadataModelCollection, required
      - `identifier` string, required
    - object
      - `_t` 'TextAsset', required
      - `text` string, required
      - `metadata` MetadataModelCollection, required
      - `identifier` string, required
  - `tags` string[], required — The tags associated with the sample.
  - `createdAt` string, date-time — The timestamp when the sample was created.
  - `ownerId` string, uuid — The id of the customer that owns the sample.
  - `ownerMail` string, required — The mail of the customer that owns the sample.
  - `organizationId` string, required — The id of the organization that owns the entity.

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