GET /analyze/:token/categorize
Infers the product category of an ingredient analysis
Path parameters
-
token reference to desired resource
GET /analyze/{token}/categorize
curl \
-X GET https://api.cosmily.com/api/v1/analyze/{token}/categorize \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"category": "cleanser"
}
Response examples (200)
{
"category": "cleanser"
}
Response examples (422)
{
"error": "unknown"
}
Response examples (422)
{
"error": "unknown"
}