# List a benchmark's images

`GET /v1/benchmarks/{benchmark_id}/images`

Lists the visible images in a custom benchmark, sorted by `sort_by`
and `sort_direction` with ties broken by image id. Page with `limit`
and `offset`; the `Vizit-Total-Count` response header carries the
number of images.

Send `product_category_id` to have each row carry `pair_score`: the
image's score against this benchmark under that category, from the
benchmark's latest scoring under it
([Score a benchmark's images](/api/benchmarks/requestBenchmarkScoring)).
Without it `pair_score` is `null`, and `sort_by=pair_score` answers
`422 SORT_REQUIRES_PAIR`. Unscored images sort last in both
directions; informational images have `vizit_score: null` and
`scored: false` and sort with them.

`classification` is `null` for an Other asset.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `product_category_id` | query | no | string | Score each image against this benchmark under this product category. |
| `sort_by` | query | no | enum: "created_at" | "name" | "pair_score" | Field to sort by. |
| `sort_direction` | query | no | enum: "asc" | "desc" | Sort direction. |
| `limit` | query | no | integer | Number of items to return. |
| `offset` | query | no | integer | Number of items to skip. |

## Responses

### 200 — A page of benchmark images

**application/json**

- **array**
  - items:
    - **object**
      - `image_id` (string, required)
      - `name` (string, required)
      - `image_url` (any, required) — Signed URL to the image that expires after a short time; `null` when it could not be signed.
      - `classification` (any, required) — `null` when the image is unclassified or is an Other asset.
      - `pair_score` (any, required) — Score against this benchmark under the requested `product_category_id`, from its latest scoring; `null` when no `product_category_id` was sent.

### 400 — Check `error_code`:
  - NO_DEFAULT_PORTFOLIO: your organization has no default portfolio
  - NO_DEFAULT_WORKSPACE: your default portfolio has no default workspace
  - CATEGORY_NOT_IN_ORG_ICP: `product_category_id` is outside your organization's categories
  - CATEGORY_HAS_NO_AUDIENCES: the product category cannot be scored yet


**application/json**

- **object** — Standardized error format for all `/v1/*` endpoints. `error_code` is a
stable SCREAMING_SNAKE_CASE identifier clients can switch on.

  - `detail` (string) — Human-readable error message
  - `status_code` (integer) — HTTP status code
  - `error_code` (string) — Stable machine-readable error code
  - `request_id` (any) — Request identifier for correlation
  - `extra` (any) — Endpoint-specific additional context. For example,
IMAGE_DOWNLOAD_FAILED populates extra.failed_urls with per-URL
failure reasons so clients can triage bulk submissions.

  - `timestamp` (string)

### 401 — Missing or invalid Bearer token

### 404 — Check `error_code`:
  - NOT_FOUND: custom benchmarks are not enabled for your organization
  - BENCHMARK_NOT_FOUND: no such custom benchmark in your default workspace
  - PRODUCT_CATEGORY_NOT_FOUND: `product_category_id` does not exist


**application/json**

- **object** — Standardized error format for all `/v1/*` endpoints. `error_code` is a
stable SCREAMING_SNAKE_CASE identifier clients can switch on.

  - `detail` (string) — Human-readable error message
  - `status_code` (integer) — HTTP status code
  - `error_code` (string) — Stable machine-readable error code
  - `request_id` (any) — Request identifier for correlation
  - `extra` (any) — Endpoint-specific additional context. For example,
IMAGE_DOWNLOAD_FAILED populates extra.failed_urls with per-URL
failure reasons so clients can triage bulk submissions.

  - `timestamp` (string)

### 422 — Check `error_code`:
  - SORT_REQUIRES_PAIR: `sort_by=pair_score` without `product_category_id`
  - VALIDATION_ERROR: request validation failed


**application/json**

- **object** — Standardized error format for all `/v1/*` endpoints. `error_code` is a
stable SCREAMING_SNAKE_CASE identifier clients can switch on.

  - `detail` (string) — Human-readable error message
  - `status_code` (integer) — HTTP status code
  - `error_code` (string) — Stable machine-readable error code
  - `request_id` (any) — Request identifier for correlation
  - `extra` (any) — Endpoint-specific additional context. For example,
IMAGE_DOWNLOAD_FAILED populates extra.failed_urls with per-URL
failure reasons so clients can triage bulk submissions.

  - `timestamp` (string)

### 429 — Rate limit exceeded for this organization
