GET /analyze/:token/categorize
GET
/analyze/{token}/categorize
Infers the product category of an ingredient analysis
Path parameters
-
token string(uuid) Required
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 example (200)
{
"category": "cleanser"
}
Response example (422)
{
"error": "unknown"
}