**Version: 202201**

# Collection Details

**GET** `/openapi/2022-01/collections/:id`

Retrieves detailed information about a specific collection by providing its unique identifier.

## Request

**Path Parameters**

- `id` string (required)

  Collection's ID

## Responses

**200 | 404 | 422**

200

**application/json**

**Schema | Example | Result**

**Schema**

- `collection` object

  - `id` string

    **Example:** `a60fe556-43ad-4e07-9125-507ac1bf71f7`
  - `title` string

    **Example:** `Test-Collection`
  - `description` string

    **Example:** `Desc`
  - `handle` string

    **Example:** `test-collection`
  - `smart` boolean

    **Default value:** `true`

    **Example:** `false`
  - `image` object

    - `src` string

      **Example:** `//cdn.shoplazza.com/9de53f9726576696b318a8d95c0946cb.jpeg`
    - `width` integer

      **Default value:** `0`

      **Example:** `1920`
    - `height` integer

      **Default value:** `0`

      **Example:** `1080`
    - `alt` string

      **Example:**
    - `path` string

      **Example:** `9de53f9726576696b318a8d95c0946cb.jpeg`
  - `seo_title` string

    **Example:** `seo_title`
  - `seo_description` string

    **Example:** `Desc`
  - `seo_keywords` string

    **Example:** `test`
  - `sort_order` string

    **Example:** `title-asc`
  - `created_at` string

    **Example:** `2024-04-16T10:31:13Z`
  - `updated_at` string

    **Example:** `2024-04-16T10:31:13Z`

```json
{
  "collection": {
    "id": "a60fe556-43ad-4e07-9125-507ac1bf71f7",
    "title": "Test-Collection",
    "description": "Desc",
    "handle": "test-collection",
    "smart": false,
    "image": {
      "src": "//cdn.shoplazza.com/9de53f9726576696b318a8d95c0946cb.jpeg",
      "width": 1920,
      "height": 1080,
      "alt": "",
      "path": "9de53f9726576696b318a8d95c0946cb.jpeg"
    },
    "seo_title": "seo_title",
    "seo_description": "Desc",
    "seo_keywords": "test",
    "sort_order": "title-asc",
    "created_at": "2024-04-16T10:31:13Z",
    "updated_at": "2024-04-16T10:31:13Z"
  }
}
```

```json
{
    "collection": {
        "id": "a60fe556-43ad-4e07-9125-507ac1bf71f7",
        "title": "Test-Collection",
        "description": "Desc",
        "handle": "test-collection",
        "smart": false,
        "image": {
            "src": "//cdn.shoplazza.com/9de53f9726576696b318a8d95c0946cb.jpeg",
            "width": 1920,
            "height": 1080,
            "alt": "",
            "path": "9de53f9726576696b318a8d95c0946cb.jpeg"
        },
        "seo_title": "seo_title",
        "seo_description": "Desc",
        "seo_keywords": "test",
        "sort_order": "title-asc",
        "created_at": "2024-04-16T10:31:13Z",
        "updated_at": "2024-04-16T10:31:13Z"
    }
}
```

404

**application/json**

**Schema | Example | Result**

**Schema**

- `errors` string[]

```json
{
  "errors": [
    "Collection not found"
  ]
}
```

```json
{
  "errors": [
    "Collection not found"
  ]
}
```

422

**application/json**

**Schema | Example | Result**

**Schema**

- `errors` string[]

```json
{
  "errors": [
    "collectionId has an invalid UUID"
  ]
}
```

```json
{
  "errors": [
    "collectionId has an invalid UUID"
  ]
}
```
