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

Fetch a meal photo

Streams a stored meal photo from object storage. The key is owner-prefixed, so callers can only read their own photos. Note that the key contains slashes.

GET/api/nutrition/photo/{key}
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.

Path parameters
keystringrequired

Owner-prefixed object key, e.g. user@example.com/2026-06-29/<uuid>.

Responses
200

The image bytes.

string<binary>
403

The requested resource belongs to another user.

errorstringrequired

Human-readable failure reason.

detailstring

Optional extra context, present on upstream failures.

404

No photo exists at that key.

Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://app.skcal.fit/api/nutrition/photo/string' \
  -H 'Cookie: __Secure-better-auth.session_token=YOUR_API_KEY' \
  -H 'Accept: application/json'
Response
"string"

Was this page helpful?