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

Delete a meal

Removes one of the caller’s meals, its food items, and any stored photos, then recomputes the day’s totals.

DELETE/api/nutrition/meals/{id}
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
idstring<uuid>required

Meal identifier (UUID).

Responses
200

The meal was deleted.

okbooleanrequired

Always true.

404

No matching resource owned by the caller.

errorstringrequired

Human-readable failure reason.

detailstring

Optional extra context, present on upstream failures.

Try it
Server
Authorization
Parameters
Request
curl -X DELETE 'https://app.skcal.fit/api/nutrition/meals/497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  -H 'Cookie: __Secure-better-auth.session_token=YOUR_API_KEY' \
  -H 'Accept: application/json'
Response
{
  "ok": true
}

Was this page helpful?