Whisk Docs
Whisk HomeHelp CenterDeveloper Tools
v2.0.0
v2.0.0
  • The Whisk Platform
  • Whisk API Overview
    • Introduction
    • Integration
    • Authentication
      • Server Token
      • User Access Token
        • Auth Flow Example
      • Client Token
      • Anonymous Access from Client Apps
    • Whisk Sandbox
    • Getting Started
  • Whisk API Reference 2.0
    • Provisioning
      • Get provisioning
    • Autocomplete
    • Community
      • Get your Communities
      • Get Communities from a Topic
      • Discover Recommended Communities
      • Search Communities
      • Get a Community
      • Get Recipes from a Community
      • Add Recipes to a Community
      • Remove a Recipe from a Community
      • Join a Community
      • Leave a Community
    • Posts and Reviews
      • Get reviews for a recipe
      • Create or edit review
      • Create a Post
      • Get Post by id
      • Delete a Post
      • Edit a Post
      • Report a Post
      • Create a Post Reply
      • Get Post Replies
      • Delete a Post reply
      • Report a Post reply
      • Like a Post or Reply
      • Users who liked a Post or Reply
    • Public profiles
      • Hide recipe in Public profile
      • Get Recipes for Public Profile
      • Get User's public profile by user_id
      • Get User's public profile by username
    • Custom Label
    • Feed
      • Obtain a Recipe Feed
    • Food DB
      • Autocomplete
      • Search
      • Get Food
    • Food List
    • Food Log
    • Foodpairing
    • Healthy meal recommendations
      • Healthy recipe only recommendations for DA
      • Recipe recommendations for SH
      • Tailored Plan API request for Samsung TV
    • Meal Plan
      • Generate a Meal Plan
      • Meal Object
        • Get Meals
        • Delete Meal
        • Add a Meal
      • Meal Plan Settings Object
        • Get Meal Plan Settings
        • Update Meal Plan Settings
      • Meal Plan Batch
    • Recipe
      • Get a Recipe
      • Search a Recipe
      • User Recipes & Collections
        • Add User Recipe
        • Create A Recipe
        • Update External Recipe
        • Get All User Recipes
        • Update User Recipe
        • Remove Recipe from Favorites
        • Create Collection
        • Get All User Collections
        • Get Collection
        • Get Recipes from a Collection
        • Remove Collection
        • Get Smart Collection
        • Get Recipes from a Smart Collection
    • Shopping List
      • Get your Shopping Lists
      • Get a Shopping List
      • Create a Shopping List
      • Delete a Shopping List
      • Update basic details of a Shopping List
      • Move Items between Shopping Lists
      • Add Items to a Shopping List
      • Delete an Item from a Shopping List
      • Update an Item in a Shopping List
      • Clear Items from a Shopping List
    • Media
    • Store Item
    • Unit Conversion
    • Users
      • Get a User
      • Update User Settings using Patch
      • Update User Settings using Post
    • Try it out!
  • Shopping List SDK
    • Overview
    • Examples
      • Shoppable Recipes
      • Shoppable Products
      • Shoppable Media
    • Basic Setup
      • Basic Setup
      • Methods
      • Event Listeners
      • Widget
      • Subscriptions
      • Global Configuration
      • UTM Parameters
      • Using With SPA
  • Shopping List Mobile API
    • Overview
    • Examples
    • Reference
  • API Resources
    • Authentication Scopes
    • Errors and Troubleshooting
    • Cursor Pagination
    • Limits
    • Nutrients
    • Recipe Labels
    • Filtering Recipes using Custom Labels
    • Health Score, Glycemic Index, Glycemic Load
    • Whisk User Data
    • Integrated Retailers
    • Optimizing Image Load
    • Meal Plan
Powered by GitBook
On this page
  • Get provision data
  • Request body
  • Sample request and response

Was this helpful?

  1. Whisk API Reference 2.0
  2. Provisioning

Get provisioning

Endpoint allows to get provisioning data

Get provision data

GET https://api.whisk.com/provision/v2/dictionaries

Method developed to get provision data for user. For example get list of all tags for review.

Query Parameters

Name
Type
Description

language

String

defaults to user's language

response_mask.paths

Enum

The set of field mask paths. possible values: recipe_languages, cooking_devices, recipe_tags

Headers

Name
Type
Description

Authorization*

String

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

{
  "recipe_languages": [
    {
      "code": "string",
      "display_name": "string"
    }
  ],
  "cooking_devices": [
    {
      "name": {
        "name": "string",
        "display_name": "string"
      },
      "image_url": "string",
      "modes": [
        {
          "name": {
            "name": "string",
            "display_name": "string"
          },
          "attributes": [
            {
              "name": {
                "name": "string",
                "display_name": "string"
              },
              "type": "COOKING_INTENT_ATTRIBUTE_TYPE_INVALID",
              "selection_values": [
                {
                  "value_type": "COOKING_INTENT_ATTRIBUTE_VALUE_TYPE_INVALID",
                  "value_format": "string",
                  "double_values": {
                    "bounded": {
                      "min": 0,
                      "max": 0,
                      "step": 0
                    },
                    "list": {
                      "values": [
                        0
                      ]
                    },
                    "default": 0,
                    "unit": {
                      "name": "string",
                      "display_name": "string"
                    }
                  },
                  "int_values": {
                    "bounded": {
                      "min": 0,
                      "max": 0,
                      "step": 0
                    },
                    "list": {
                      "values": [
                        0
                      ]
                    },
                    "default": 0,
                    "unit": {
                      "name": "string",
                      "display_name": "string"
                    }
                  },
                  "string_values": {
                    "values": [
                      {
                        "name": "string",
                        "display_name": "string"
                      }
                    ],
                    "unit": {
                      "name": "string",
                      "display_name": "string"
                    },
                    "default": "string"
                  }
                }
              ],
              "is_optional": true
            }
          ],
          "integration_status": "COOKING_DEVICE_MODE_INTEGRATION_STATUS_INVALID"
        }
      ]
    }
  ],
  "recipe_tags": [
    {
      "group_display_name": "string",
      "tags": [
        {
          "name": "string",
          "display_name": "string"
        }
      ]
    }
  ]
}
{
  "code": "auth.tokenNotFound"
}
This is unexpected response, something is wrong on our side, please contact: [email protected]

Request body

Sample request and response

curl -X GET "https://api.b2c.whisk-dev.com/provision/v2/dictionaries?response_mask.paths=recipe_tags&response_mask.paths=recipe_languages" -H "accept: application/json" -H "Authorization: {beare_token}"

{
  "recipe_languages": [
    {
      "code": "en",
      "display_name": "English"
    },
    {
      "code": "ko",
      "display_name": "한국어"
    },
    {
      "code": "de",
      "display_name": "Deutsch"
    },
    {
      "code": "es",
      "display_name": "Español"
    },
    {
      "code": "fr",
      "display_name": "Français"
    },
    {
      "code": "it",
      "display_name": "Italiano"
    },
    {
      "code": "hi",
      "display_name": "हिन्दी"
    },
    {
      "code": "nl",
      "display_name": "Nederlands"
    },
    {
      "code": "fil",
      "display_name": "Wikang Filipino"
    },
    {
      "code": "pl",
      "display_name": "Polski"
    },
    {
      "code": "pt",
      "display_name": "Português"
    },
    {
      "code": "he",
      "display_name": "עברית"
    },
    {
      "code": "ru",
      "display_name": "Русский"
    },
    {
      "code": "sr",
      "display_name": "Српски"
    }
  ],
  "recipe_tags": [
    {
      "group_display_name": "How did it taste?",
      "tags": [
        {
          "name": "delicious",
          "display_name": "Delicious"
        },
        {
          "name": "sweet",
          "display_name": "Sweet"
        },
        {
          "name": "spicy",
          "display_name": "Spicy"
        },
        {
          "name": "bland",
          "display_name": "Bland"
        },
        {
          "name": "moist",
          "display_name": "Moist"
        },
        {
          "name": "dry",
          "display_name": "Dry"
        },
        {
          "name": "crispy",
          "display_name": "Crispy"
        },
        {
          "name": "fresh",
          "display_name": "Fresh"
        }
      ]
    },
    {
      "group_display_name": "What was good about it?",
      "tags": [
        {
          "name": "easy",
          "display_name": "Easy"
        },
        {
          "name": "kid-friendly",
          "display_name": "Kid-friendly"
        },
        {
          "name": "under-30-minutes",
          "display_name": "Under 30 minutes"
        },
        {
          "name": "one-dish",
          "display_name": "One-dish"
        },
        {
          "name": "makes-leftovers",
          "display_name": "Makes leftovers"
        }
      ]
    },
    {
      "group_display_name": "Would you make it again?",
      "tags": [
        {
          "name": "go-to",
          "display_name": "Go-to"
        },
        {
          "name": "never-again",
          "display_name": "Never again"
        },
        {
          "name": "special-occasion",
          "display_name": "Special occasion"
        }
      ]
    }
  ]
}

PreviousProvisioningNextAutocomplete

Last updated 2 years ago

Was this helpful?