Get Smart Collection

Method for getting smart collections. Smart collections are special types of collections created automatically in Whisk. Content in smart collections also updates automatically based on user actions.

This endpoint allows getting smart collection information.

Get Smart Collection

GET https://api.whisk.com/v2/smart_collection/{collection_id}

Getting smart collection by id. Id's for smart collections could be get from Get Collection method in smartCollections array. The type in response represents smart collection type.

SMART_COLLECTION_TYPE_INVALID

SMART_COLLECTION_TYPE_MADE_IT

SMART_COLLECTION_TYPE_RECENTLY_VIEWED

Path Parameters

NameTypeDescription

collection_id

string

Unique collection identifier

Headers

NameTypeDescription

Authorization

String

User Access token to authorize the API usage. For more information, see Authentication

{
  "collection": {
    "id": "string",
    "name": "string",
    "type": "SMART_COLLECTION_TYPE_INVALID",
    "images": [
      {
        "url": "string",
        "width": 0,
        "height": 0,
        "selection": {
          "x": 0,
          "y": 0,
          "width": 0,
          "height": 0
        }
      }
    ],
    "recipe_count": 0
  },
  "smart_tags": [
    {
      "value": {
        "name": "string",
        "display_name": "string"
      }
    }
  ]
}

Sample Request

Last updated