GET /:token/suggested_category

GET /ingredient_matchers/{token}/suggested_category

Returns suggested category and confidence

Path parameters

  • token string(uuid) Required

    token reference to desired resource

Responses

  • 200

    successful operation

    Hide response attribute Show response attribute object
    • data object
      Hide data attributes Show data attributes object
      • category string
      • time_of_day string
      • is_confident boolean
  • 400

    Bad Request

  • 401

    Authorization information is missing or invalid.

  • 404

    Requested resource not found

  • 500

    Server Error

GET /ingredient_matchers/{token}/suggested_category
curl \
 -X GET https://api.cosmily.com/api/v1/ingredient_matchers/{token}/suggested_category \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": {
    "category": "string",
    "time_of_day": "string",
    "is_confident": true
  }
}
Response examples (200)
{
  "data": {
    "category": "string",
    "time_of_day": "string",
    "is_confident": true
  }
}