---
description: Fire this api to get collection list of the user.
---

# Wishlist collection (09/02)

## The default collection is Favorites which id is always will be 0.

<mark style="color:blue;">`GET`</mark> `https://castleindia.in/emart/public /api/wishlist/collection /api/wishlist/collection`

#### Headers

| Name            | Type   | Description                               |
| --------------- | ------ | ----------------------------------------- |
| Accept\*        | String | application/json                          |
| Authorization\* | String | Bearer { bearer\_token without brackets } |

{% tabs %}
{% tab title="200: OK Upon successful response you will get the following" %}
```javascript
{
    "collection": [
        {
            "id": 0,
            "collectionname": "Favourites",
            "url": "https://emartv8.test/api/wishlist",
            "iteminlist": 4,
            "imagepath": "https://emartv8.test/variantimages/thumbnails",
            "topImages": [
                "variant_15965172672NY4C2iRb0.jpg",
                "variant_1596517251tehUwZNT9c.jpg",
                "variant_1597663605NaQUpmEM1C.jpg",
                "variant_1596517319wOnLDJ8T82.jpg"
            ]
        },
        {
            "id": 1,
            "collectionname": "My Collection",
            "url": "https://emartv8.test/api/collection/1",
            "iteminlist": 3,
            "imagepath": "https://emartv8.test/variantimages/thumbnails",
            "topImages": [
                "variant_1597663605NaQUpmEM1C.jpg",
                "variant_1596517319wOnLDJ8T82.jpg",
                "variant_1596517251tehUwZNT9c.jpg"
            ]
        },
        {
            "id": 2,
            "collectionname": "My Second Collection",
            "url": "https://emartv8.test/api/collection/2",
            "iteminlist": 0,
            "imagepath": "https://emartv8.test/variantimages/thumbnails",
            "topImages": []
        }
    ],
    "status": "success"
}
​
```
{% endtab %}

{% tab title="401: Unauthorized " %}
```javascript
{
    "message": "Unauthenticated."
}
```
{% endtab %}
{% endtabs %}
