Fueled API for bots reading meal logs

A short guide for a bot you run yourself. Last updated December 5, 2026.

The Fueled API (application programming interface) lets a bot read your meal log and, if you turn them on, read your pantry, add lines to your shopping list, or log a meal you already named. A key sees the account that created it and no other account. Create and revoke keys in the app: open You (the profile icon), then Bots.

Fueled shows the full key once. It stores only a hash of the key and cannot show it again. If you lose it, revoke it and create another. Deleting your Fueled account deletes its keys.

Make a key

In You → Bots, name the key and pick the scopes you want. Pantry, the shopping list, meal logging, and chat replies are off unless you check them. The same screen is where you save your bot's webhook address.

ScopeWhat the bot can do
meals:readWhat you ate: the name, the day, and the meal slot (breakfast, lunch, dinner, snacks).
nutrition:readCalories and macros (protein, carbs, and fat), as daily totals and, with meals:read, on each meal.
pantry:readWhat is already in your pantry, fridge, and freezer: the name, and, when you stored them, the quantity, unit, location, and added or expiry dates. Off unless you check it. Read only. It does not see supplies or health data.
shopping_list:writeAdd items to your shopping list. Off unless you check it. Add only: the bot cannot edit, check off, or remove a line, and it cannot change your pantry.
chat:writeReply to a message the user sent from My bot. Off unless you check it. The reply is text. It cannot read health data, and Fueled does not push the pantry with the message.
meals:writeAdd one meal to a day. Off unless you check it. Send the local day and the meal (breakfast, lunch, dinner, or snack). It cannot edit or delete a meal, and it cannot change the pantry.

meals:write only adds a meal. No scope edits or deletes a meal or a pantry item. shopping_list:write only adds lines to the shopping list.

Call it

Send the key as a bearer token. Responses are JSON (JavaScript Object Notation). Dates are calendar days, YYYY-MM-DD, inclusive. If you omit from and to, the range is the last 30 days including today (Coordinated Universal Time). A range cannot be longer than 366 days. limit defaults to 50 and cannot be more than 100. offset defaults to 0.

Meals (needs meals:read):

curl -s \
  -H "Authorization: Bearer fl_live_YOUR_KEY" \
  "https://rankrebels.ai/api/fueled/v1/meals?from=2026-10-01&to=2026-10-30&limit=50"

Daily nutrition (needs nutrition:read). This response has totals, not the names of what you ate:

curl -s \
  -H "Authorization: Bearer fl_live_YOUR_KEY" \
  "https://rankrebels.ai/api/fueled/v1/nutrition?from=2026-10-01&to=2026-10-30"

A meal looks like this when the key has both scopes. Without nutrition:read, the calorie and macro fields are left off.

{
  "ok": true,
  "meals": [
    {
      "id": "meal_id",
      "eaten_on": "2026-10-20",
      "slot": "lunch",
      "name": "Chicken rice bowl",
      "source": "photo",
      "kcal": 640,
      "protein_g": 46,
      "carbs_g": 62,
      "fat_g": 22,
      "estimate": true
    }
  ],
  "page": { "from": "2026-10-01", "to": "2026-10-30", "limit": 50, "offset": 0, "total": 1, "next_offset": null }
}

protein_g, carbs_g, and fat_g are grams. next_offset is the offset to send for the next page, or null when this page is the last.

Pantry (needs pantry:read). This is the kitchen you already synced. An empty kitchen is an empty list. limit and offset work the same way as on the meal log. A line leaves off quantity, unit, and dates when you did not store them. Supplies are not included.

curl -s \
  -H "Authorization: Bearer fl_live_YOUR_KEY" \
  "https://rankrebels.ai/api/fueled/v1/pantry"
{
  "ok": true,
  "items": [
    { "name": "eggs", "qty": 12, "unit": "ct", "loc": "fridge", "added": "2026-11-02", "expiry": "2026-12-01" }
  ],
  "page": { "limit": 50, "offset": 0, "total": 1, "next_offset": null }
}

Add to the shopping list

Needs shopping_list:write. Send at most 20 items. Each item has a name (required, up to 80 characters) and an optional note (up to 120 characters). Send a header Idempotency-Key: 8 to 80 letters, numbers, underscores, or hyphens. The same key with the same items returns the same result and does not add them again. The same key with different items is refused.

curl -s -X POST \
  -H "Authorization: Bearer fl_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: list-2026-12-04-oats" \
  -d '{"items":[{"name":"rolled oats","note":"for breakfast"}]}' \
  "https://rankrebels.ai/api/fueled/v1/shopping-list"

A successful add looks like this. replayed is true when the Idempotency-Key was already used for this same list.

{
  "ok": true,
  "replayed": false,
  "added": [
    { "id": "item_id", "name": "rolled oats", "note": "for breakfast" }
  ]
}

Log a meal

Needs meals:write. date is your local calendar day, YYYY-MM-DD, not Coordinated Universal Time. meal is breakfast, lunch, dinner, or snack. Snack is stored as snacks, which is the slot the app shows. name is up to 60 characters. kcal, protein, carbs, and fat are numbers from 0 up. items is optional, 1 to 20 foods, and those four numbers have to equal the sum of the items. Send client_id or an Idempotency-Key header: 8 to 80 letters, numbers, underscores, or hyphens. The same id with the same meal does not log it again. The same id with a different meal is refused. Meal logs use the same 20 writes a minute.

curl -s -X POST \
  -H "Authorization: Bearer fl_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: meal-2026-12-05-lunch" \
  -d '{"date":"2026-12-05","meal":"lunch","name":"Chicken bowl","kcal":540,"protein":42,"carbs":48,"fat":16,"client_id":"meal-2026-12-05-lunch"}' \
  "https://rankrebels.ai/api/fueled/v1/meals"
{
  "ok": true,
  "replayed": false,
  "logged": {
    "date": "2026-12-05",
    "meal": "lunch",
    "slot": "lunch",
    "name": "Chicken bowl",
    "kcal": 540,
    "protein": 42,
    "carbs": 48,
    "fat": 16,
    "count": 1
  }
}

Reply in the chat

Needs chat:write. When someone picks My bot, Fueled stores their text and POSTs it to the webhook they saved. The body is only id, text, and ts. Fueled signs the unix timestamp, a period, and that raw body with HMAC-SHA256 (hash-based message authentication code). The hex is X-Fueled-Signature and the unix seconds are X-Fueled-Timestamp. Reject a timestamp more than five minutes off. The bot answers later:

curl -s -X POST \
  -H "Authorization: Bearer fl_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: reply-2026-12-04-1" \
  -d '{"turn_id":"TURN_ID","text":"Try the eggs in the fridge."}' \
  "https://rankrebels.ai/api/fueled/v1/chat/reply"

The same Idempotency-Key with the same text returns the same reply. A different text is refused. Replies share the 20 writes a minute with shopping-list adds.

Limits and errors

Each key can make 60 reads a minute and 20 writes a minute. Pantry reads count toward the same 60. Shopping-list adds, chat replies, and meal logs each allow 20 writes a minute. A replay of the same Idempotency-Key or client_id does not count as another write. A burst of bad keys from one network is refused sooner than that.

StatusMeaning
200, ok: trueThe page of meals or days, or the lines that were added.
400A date, page, item list, meal, or Idempotency-Key is not usable. A list cannot have more than 20 items. A meal's items cannot have more than 20 foods.
401The key is missing, unknown, or revoked.
403The key does not include that scope. scope names the one required.
409That Idempotency-Key or client_id was already used for a different list, reply, or meal.
429Too many reads or adds. Wait for the number of seconds in Retry-After.
200, ok: falseFueled could not finish. The error string says why, without internal detail. This shape is used so the reason is not replaced by the host.

Questions: [email protected]. The app itself is at Fueled. The privacy policy is at Privacy Policy.