---
title: "Returns the paged samples of a benchmark filtered by an identifier."
method: GET
path: "/benchmark/{benchmarkId}/samples/{identifier}"
tags: ["Sample"]
---

# Returns the paged samples of a benchmark filtered by an identifier.

`GET /benchmark/{benchmarkId}/samples/{identifier}`

## Path parameters

- `benchmarkId` string, required
- `identifier` string, required

## Query parameters

- `page` integer
- `page_size` integer
- `sort` string[]
- `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
- `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
- `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

- GetSamplesByIdentifierEndpointPagedResultOfOutput
  - `total` integer, required
  - `page` integer, required
  - `pageSize` integer, required
  - `items` GetSamplesByIdentifierEndpointOutput[], required
    - `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.
  - `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)
