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

List daily totals

Returns up to 60 of the caller’s most recent daily nutrition roll-ups, newest first.

GET/api/nutrition
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.

Responses
200

Daily nutrition totals, newest first.

Array of NutritionDay
userEmailstring<email>required

Owning account email.

datestring<date>required

Calendar day these totals cover (YYYY-MM-DD).

kcalinteger | nullrequired

Total calories logged that day.

proteinGinteger | nullrequired

Total protein in grams logged that day.

hitProteinboolean | nullrequired

Whether the day's protein target was met.

adherencestring | nullrequired

Calorie adherence bucket for the day.

Allowed:underonovernull
Try it
Server
Authorization
Request
curl -X GET 'https://app.skcal.fit/api/nutrition' \
  -H 'Cookie: __Secure-better-auth.session_token=YOUR_API_KEY' \
  -H 'Accept: application/json'
Response
[
  {
    "userEmail": "nick@mintlify.com",
    "date": "2026-06-29",
    "kcal": 2150,
    "proteinG": 168,
    "hitProtein": true,
    "adherence": "on"
  }
]

Was this page helpful?