# List collections

`GET /v1/collections`

Lists the collections in your organization's default workspace,
oldest first. Page with `limit` and `offset`; the `Vizit-Total-Count`
response header carries the number of collections that match the
filters.

Custom benchmarks must be enabled for your organization. Until they
are, every benchmark and collection route answers `404 NOT_FOUND`.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `search_name` | query | no | string | Case-insensitive partial match on the collection name. |
| `product_category_id` | query | no | array<string> | Keep collections in these product categories. Repeat the parameter to send several. |
| `image_type` | query | no | enum: "hero" | "carousel" | Keep collections of this image type. |
| `limit` | query | no | integer | Number of items to return. |
| `offset` | query | no | integer | Number of items to skip. |

## Responses

### 200 — A page of collections

**application/json**

- **array**
  - items:
    - **object** — A collection: a set of your own images scored together against a
benchmark. Collections live in your organization's default workspace.

      - `id` (string, required)
      - `name` (string, required)
      - `image_type` (enum: "hero" | "carousel", required) — The image type the collection holds. A collection of Other assets reads `carousel`.
      - `asset_type` (any, required) — Label of a collection of Other carousel assets; `null` for a hero or standard carousel collection.
      - `product_category_id` (any, required)
      - `image_count` (integer, required) — Images in the collection.
      - `last_scoring` (any, required) — The scoring last selected for the collection; `null` before the first one.

### 400 — Check `error_code`:
  - NO_DEFAULT_PORTFOLIO: your organization has no default portfolio
  - NO_DEFAULT_WORKSPACE: your default portfolio has no default workspace


**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 — Custom benchmarks are not enabled for your organization (error_code NOT_FOUND)

**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 — Request validation failed (error_code VALIDATION_ERROR)

**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
