Endpoints
Fix Food
Endpoints
Fix Food
POST
/
fixFood
curl --request POST \
--url http://api.calai.app/v2/fixFood \
--header 'Content-Type: application/json' \
--data '{
"data": {
"issue": "<string>",
"imageData": "<string>",
"foodData": {
"name": "<string>",
"calories": 123,
"protein": 123,
"fats": 123,
"carbs": 123,
"ethanol": 123,
"servings": 123,
"ingredients": [
{
"name": "<string>",
"protein": 123,
"carbs": 123,
"fats": 123,
"calories": 123,
"isAdded": true
}
]
}
}
}'
{
"success": true,
"data": {
"carbs": 123,
"fats": 123,
"protein": 123,
"ethanolCarbRatio": 123,
"calories": 123,
"name": "<string>",
"servings": 123,
"ingredients": [
{
"name": "<string>",
"protein": 123,
"carbs": 123,
"fats": 123,
"calories": 123,
"isAdded": true
}
],
"healthRating": {
"rating": 123,
"tip1": "<string>",
"tip2": "<string>",
"tip3": "<string>"
},
"shouldUseLabelScanner": true
},
"error": "noFoodDetected"
}
Body
application/json
Issue with the food item
Image data of the food item
Name of the food item
Calories in the food item
Protein content in the food item
Fat content in the food item
Carbohydrate content in the food item
Ethanol content in the food item
Number of servings
Response
200 - application/json
Successful response
Available options:
noFoodDetected
, unauthorized
, exceededDailyLimit
, invalidApiKey
, internalServerError
Available options:
noFoodDetected
, unauthorized
, exceededDailyLimit
, invalidApiKey
, internalServerError
Available options:
noFoodDetected
, unauthorized
, exceededDailyLimit
, invalidApiKey
, internalServerError
curl --request POST \
--url http://api.calai.app/v2/fixFood \
--header 'Content-Type: application/json' \
--data '{
"data": {
"issue": "<string>",
"imageData": "<string>",
"foodData": {
"name": "<string>",
"calories": 123,
"protein": 123,
"fats": 123,
"carbs": 123,
"ethanol": 123,
"servings": 123,
"ingredients": [
{
"name": "<string>",
"protein": 123,
"carbs": 123,
"fats": 123,
"calories": 123,
"isAdded": true
}
]
}
}
}'
{
"success": true,
"data": {
"carbs": 123,
"fats": 123,
"protein": 123,
"ethanolCarbRatio": 123,
"calories": 123,
"name": "<string>",
"servings": 123,
"ingredients": [
{
"name": "<string>",
"protein": 123,
"carbs": 123,
"fats": 123,
"calories": 123,
"isAdded": true
}
],
"healthRating": {
"rating": 123,
"tip1": "<string>",
"tip2": "<string>",
"tip3": "<string>"
},
"shouldUseLabelScanner": true
},
"error": "noFoodDetected"
}