POST /analyze/effects

POST /analyze/effects

Returns the positive, harmful, and notable effects for the submitted list of ingredients

Body Required

Responses

POST /analyze/effects
curl \
 -X POST https://api.cosmily.com/api/v1/analyze/effects \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"ingredient_ids":[42]}'
Request example
{
  "ingredient_ids": [
    42
  ]
}
Request examples
{
  "ingredient_ids": [
    42
  ]
}
Response examples (200)
{
  "effects": {
    "positive": [
      {
        "effect": "string",
        "ingredient_ids": [
          42
        ]
      }
    ],
    "harmful": [
      {
        "effect": "string",
        "ingredient_ids": [
          42
        ]
      }
    ],
    "notable": [
      {
        "effect": "string",
        "ingredient_ids": [
          42
        ]
      }
    ]
  },
  "supported": {
    "positive": [],
    "harmful": [],
    "notable": []
  }
}
Response examples (200)
{
  "effects": {
    "positive": [
      {
        "effect": "string",
        "ingredient_ids": [
          42
        ]
      }
    ],
    "harmful": [
      {
        "effect": "string",
        "ingredient_ids": [
          42
        ]
      }
    ],
    "notable": [
      {
        "effect": "string",
        "ingredient_ids": [
          42
        ]
      }
    ]
  },
  "supported": {
    "positive": [],
    "harmful": [],
    "notable": []
  }
}