Skip to content
skcal
Esc
↑↓navigate↵open⌘Jpreview

List meals for a day

Returns the caller’s logged meals for a day, each with its food items, newest first.

GET/api/nutrition/meals
Authorization
__Secure-better-auth.session_tokenAPI key · cookierequired

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.

or
AuthorizationBearer token · headerrequired

Personal API key sent as Authorization: Bearer skcal_…. Create and scope keys in the app under your profile → API keys. Keys default to full access; a scoped key is limited to its granted resource:action permissions and cannot manage other keys.

Query parameters
datestring<date>

Day to list (YYYY-MM-DD). Defaults to the server's current UTC date.

Responses
200

Meals for the day, newest first.

Array of Meal
idstring<uuid>required

Meal identifier.

notestring | nullrequired

Meal note or the original text description.

createdAtinteger<int64>required

Meal creation time as a Unix epoch in milliseconds.

photoKeysstring[]required

R2 object keys of the meal's photos.

itemsLoggedItem[]required

Food items in the meal.

Show properties
Array of LoggedItem
idintegerrequired

Auto-increment food-item identifier.

namestringrequired

Persisted food item name.

kcalintegerrequired

Stored calories for the portion.

proteinGnumberrequired

Stored protein in grams.

Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://app.skcal.fit/api/nutrition/meals' \
  -H 'Cookie: __Secure-better-auth.session_token=YOUR_API_KEY' \
  -H 'Accept: application/json'
Response
[
  {
    "id": "3f8b1c2a-5d6e-4f70-8a1b-2c3d4e5f6071",
    "note": "lunch at the office",
    "createdAt": 1782000000000,
    "photoKeys": [
      "nick@mintlify.com/2026-06-29/3f8b1c2a-5d6e-4f70-8a1b-2c3d4e5f6071"
    ],
    "items": [
      {
        "id": 9012,
        "name": "grilled chicken breast",
        "kcal": 284,
        "proteinG": 53.4
      }
    ]
  }
]

Was this page helpful?