curl --request POST \
--url https://app.skcal.fit/api/nutrition/describe \
--header 'Content-Type: application/json' \
--cookie __Secure-better-auth.session_token= \
--data '
{
"text": "two scrambled eggs, a slice of sourdough, and black coffee"
}
'import requests
url = "https://app.skcal.fit/api/nutrition/describe"
payload = { "text": "two scrambled eggs, a slice of sourdough, and black coffee" }
headers = {
"cookie": "__Secure-better-auth.session_token=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
cookie: '__Secure-better-auth.session_token=',
'Content-Type': 'application/json'
},
body: JSON.stringify({text: 'two scrambled eggs, a slice of sourdough, and black coffee'})
};
fetch('https://app.skcal.fit/api/nutrition/describe', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.skcal.fit/api/nutrition/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'text' => 'two scrambled eggs, a slice of sourdough, and black coffee'
]),
CURLOPT_COOKIE => "__Secure-better-auth.session_token=",
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.skcal.fit/api/nutrition/describe"
payload := strings.NewReader("{\n \"text\": \"two scrambled eggs, a slice of sourdough, and black coffee\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "__Secure-better-auth.session_token=")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.skcal.fit/api/nutrition/describe")
.header("cookie", "__Secure-better-auth.session_token=")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"two scrambled eggs, a slice of sourdough, and black coffee\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.skcal.fit/api/nutrition/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cookie"] = '__Secure-better-auth.session_token='
request["Content-Type"] = 'application/json'
request.body = "{\n \"text\": \"two scrambled eggs, a slice of sourdough, and black coffee\"\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"mealId": "3f8b1c2a-5d6e-4f70-8a1b-2c3d4e5f6071",
"items": [
{
"name": "grilled chicken breast",
"kcal": 284,
"proteinG": 53.4
},
{
"name": "toum",
"kcal": 90,
"proteinG": 0.4
}
],
"totalKcal": 374,
"totalProteinG": 54,
"note": "assumed a single chicken breast and one tablespoon of toum",
"photoKeys": [
"nick@mintlify.com/2026-06-29/3f8b1c2a-5d6e-4f70-8a1b-2c3d4e5f6071"
]
}{
"error": "weightKg must be 9-320 kg",
"detail": "upstream model returned 500"
}{
"error": "weightKg must be 9-320 kg",
"detail": "upstream model returned 500"
}{
"error": "weightKg must be 9-320 kg",
"detail": "upstream model returned 500"
}Log a meal from a description
Sends a freeform meal description to Claude for per-item calorie and protein estimates, respecting stated portions and excluding anything the user says they skipped, then stores it as a meal.
curl --request POST \
--url https://app.skcal.fit/api/nutrition/describe \
--header 'Content-Type: application/json' \
--cookie __Secure-better-auth.session_token= \
--data '
{
"text": "two scrambled eggs, a slice of sourdough, and black coffee"
}
'import requests
url = "https://app.skcal.fit/api/nutrition/describe"
payload = { "text": "two scrambled eggs, a slice of sourdough, and black coffee" }
headers = {
"cookie": "__Secure-better-auth.session_token=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
cookie: '__Secure-better-auth.session_token=',
'Content-Type': 'application/json'
},
body: JSON.stringify({text: 'two scrambled eggs, a slice of sourdough, and black coffee'})
};
fetch('https://app.skcal.fit/api/nutrition/describe', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.skcal.fit/api/nutrition/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'text' => 'two scrambled eggs, a slice of sourdough, and black coffee'
]),
CURLOPT_COOKIE => "__Secure-better-auth.session_token=",
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.skcal.fit/api/nutrition/describe"
payload := strings.NewReader("{\n \"text\": \"two scrambled eggs, a slice of sourdough, and black coffee\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "__Secure-better-auth.session_token=")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.skcal.fit/api/nutrition/describe")
.header("cookie", "__Secure-better-auth.session_token=")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"two scrambled eggs, a slice of sourdough, and black coffee\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.skcal.fit/api/nutrition/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cookie"] = '__Secure-better-auth.session_token='
request["Content-Type"] = 'application/json'
request.body = "{\n \"text\": \"two scrambled eggs, a slice of sourdough, and black coffee\"\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"mealId": "3f8b1c2a-5d6e-4f70-8a1b-2c3d4e5f6071",
"items": [
{
"name": "grilled chicken breast",
"kcal": 284,
"proteinG": 53.4
},
{
"name": "toum",
"kcal": 90,
"proteinG": 0.4
}
],
"totalKcal": 374,
"totalProteinG": 54,
"note": "assumed a single chicken breast and one tablespoon of toum",
"photoKeys": [
"nick@mintlify.com/2026-06-29/3f8b1c2a-5d6e-4f70-8a1b-2c3d4e5f6071"
]
}{
"error": "weightKg must be 9-320 kg",
"detail": "upstream model returned 500"
}{
"error": "weightKg must be 9-320 kg",
"detail": "upstream model returned 500"
}{
"error": "weightKg must be 9-320 kg",
"detail": "upstream model returned 500"
}Authorizations
Better Auth session. Signing in (Google or email magic link) sets an HttpOnly session cookie that scopes every request to that account. The web app and CLI use this; agents use the OAuth 2.1 flow of the MCP server.
Query Parameters
Day to log the described meal against (YYYY-MM-DD). Defaults to the server's current UTC date.
Body
The freeform meal description to analyze.
Body for logging a meal from a freeform text description.
What you ate, in your own words. State anything you skipped so it is excluded.
2000"two scrambled eggs, a slice of sourdough, and black coffee"
Response
The meal description was analyzed and logged.
Result of logging a meal from photos or a text description.
Always true once analysis succeeds.
true
Identifier of the created meal.
"3f8b1c2a-5d6e-4f70-8a1b-2c3d4e5f6071"
Estimated food items.
Show child attributes
Show child attributes
[
{
"name": "grilled chicken breast",
"kcal": 284,
"proteinG": 53.4
},
{
"name": "toum",
"kcal": 90,
"proteinG": 0.4
}
]
Summed calories across items.
374
Summed protein in grams across items.
54
The model's one-line assumptions note.
"assumed a single chicken breast and one tablespoon of toum"
R2 object keys of stored photos (empty for text descriptions).
[
"nick@mintlify.com/2026-06-29/3f8b1c2a-5d6e-4f70-8a1b-2c3d4e5f6071"
]