LogMeal APIUser Favorite Meals API

Endpoints related to the APIUser's favorite meals.⚡ Monitor plan or above ⚡

Operations 5

POST /v2/favorites 🔴 Create a favorite instance for a user. ⏱ #
GET /v2/favorites 🔴 Get all favorites of a user. ⏱ #
DELETE /v2/favorites 🔴 Delete an existent favorite of a user #
PATCH /v2/favorites 🔴 Edits the name for an existent favorite of a user #
POST /v2/favorites/intake 🔴 Assign a favorite instance to user intake. ⏱ #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/logmeal:logmeal-apiuser-favorite-meals-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

logmeal-apiuser-favorite-meals-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2.1.0
  title: Food AI Engine API Documentation APIUser Favorite Meals API
  description: Please, refer to https://docs.logmeal.com to find the most up-to-date version of the Food AI Engine API documentation.
  contact:
    email: support@logmeal.com
servers:
- url: https://api.logmeal.com
  description: Production
tags:
- name: APIUser Favorite Meals
  description: 'Endpoints related to the APIUser''s favorite meals.

    ⚡ Monitor plan or above ⚡'
  externalDocs:
    url: https://docs.logmeal.com/docs/guides-features-favorite-meals#/
paths:
  /v2/favorites:
    post:
      tags:
      - APIUser Favorite Meals
      summary: 🔴 Create a favorite instance for a user. ⏱
      description: '(S) Limited amount of calls per second.


        This endpoint creates a favorite instance for a user using an existent image id and all confirmed dishes in the image together with their quantities. This way users can store their more preferred dishes and meals as their favorites and use them to introduce food intakes in the future in an easier way. Furthermore, this information will be internally used to better customize the user experience.'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                imageId:
                  type: integer
                  example: 3
                  description: id of the image
                name:
                  type: string
                  example: new name
                  description: Name of the favorite (defaults to the list of dishes confirmed in the image).
              required:
              - imageId
        description: Parameters to create the favorite for an user.
        required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  favorite_image_id:
                    type: integer
                    example: 135766
                    description: id of the favorite instance created
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
        '401':
          description: Unauthorized, invalid token.
        '403':
          description: Forbidden
        '404':
          description: Not found
      security:
      - Bearer: []
      operationId: postV2Favorites
      x-operation-id-source: derived
    get:
      tags:
      - APIUser Favorite Meals
      summary: 🔴 Get all favorites of a user. ⏱
      description: '(S) Limited amount of calls per second.


        This endpoint returns all previously created favorites for a user.'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  user_favorites:
                    type: array
                    items:
                      description: Object containing the information of the each favorite associated to the user.
                      type: object
                      properties:
                        favorite_image_id:
                          description: Id of the favorite instance. This is equivalent to an image_id.
                          type: integer
                          example: 45
                        name:
                          description: Name of the favorite
                          type: string
                          example: breakfast meal
                        image_url:
                          description: URL to access the image. This URL has an expiration time of 1 day. This value will be null in case it corresponds to a manualInput (see endpoint /intake/manualInput)
                          type: string
                          example: https://www.edamam.com/food-img/205/205e6bf2399b85d34741892ef91cc603.jpg
        '400':
          description: Bad request
        '401':
          description: Unauthorized, invalid token.
        '403':
          description: Forbidden
        '404':
          description: Not found
      security:
      - Bearer: []
      operationId: getV2Favorites
      x-operation-id-source: derived
    delete:
      tags:
      - APIUser Favorite Meals
      summary: 🔴 Delete an existent favorite of a user
      description: This endpoint deletes a previously created favorite instance for an APIUser.
      parameters:
      - in: query
        name: favorite_image_id
        schema:
          type: integer
        required: true
        description: Id of the favorite instance that needs to be deleted.
      responses:
        '200':
          description: User favorite successfully deleted!
        '400':
          description: Bad request
        '401':
          description: Unauthorized, invalid token.
        '403':
          description: Forbidden
        '404':
          description: Not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
              examples:
                Nutrient code does not exist:
                  value:
                    type: object
                    properties:
                      message:
                        type: string
                        example: The provided nutritional indicator code does not exist. You can find the available nutrient codes in this response.
                      code:
                        type: integer
                        example: 1315
                      available_nutritional_codes:
                        type: array
                        items:
                          type: string
                        example:
                        - CA
                        - CHOCDF
                        - CHOLE
                        - ENERC_KCAL
                        - FAMS
                        - FAPU
                        - FASAT
                        - FAT
                        - FATRN
                        - FE
                        - FIBTG
                        - FOLAC
                        - FOLDFE
                        - FOLFD
                        - K
                        - MG
                        - NA
                        - NIA
                        - P
                        - PROCNT
                        - RIBF
                        - SUGAR
                        - SUGAR.added
                        - THIA
                        - TOCPHA
                        - VITA_RAE
                        - VITB12
                        - VITB6A
                        - VITC
                        - VITD
                        - VITK1
                        - ZN
                        - F20D5
                        - F22D6
                        - F18D3CN3
                        - CAFFN
                        - ALC
                Nutritional goal does not exist:
                  value:
                    type: object
                    properties:
                      message:
                        type: string
                        example: A nutritional goal for the provided nutrient code does not exist.
                      code:
                        type: integer
                        example: 1316
      security:
      - Bearer: []
      operationId: deleteV2Favorites
      x-operation-id-source: derived
    patch:
      tags:
      - APIUser Favorite Meals
      summary: 🔴 Edits the name for an existent favorite of a user
      description: This endpoint can be used to edit the name of a previously created favorite instance for an APIUser.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                favorite_image_id:
                  type: integer
                  example: 3
                  description: id of the favorite
                name:
                  type: string
                  example: new name
                  description: New name of the favorite
              required:
              - favorite_image_id
              - name
      responses:
        '200':
          description: User favorite successfully edited!
        '400':
          description: Bad request
        '401':
          description: Unauthorized, invalid token.
        '403':
          description: Forbidden
        '404':
          description: Not found
      security:
      - Bearer: []
      operationId: patchV2Favorites
      x-operation-id-source: derived
  /v2/favorites/intake:
    post:
      tags:
      - APIUser Favorite Meals
      summary: 🔴 Assign a favorite instance to user intake. ⏱
      description: '(S) Limited amount of calls per second.


        This endpoint assigns an existing favorite instance (favorite_id) to either a manual intake or the recognition results for an image uploaded by the user(imageId). This allows reusing all the information stored in the favorite instance without requiring a re-introduction by the user.


        For more information on manual input, see endpoint ''/v2/intake/manualInput''.'
      parameters:
      - in: query
        name: favorite_image_id
        schema:
          type: integer
        required: true
        description: Id of the favorite instance that needs to be assigned.
      - in: query
        name: imageId
        schema:
          type: integer
        required: true
        description: Id of the image. This image can either be an API image or manual input image.
      responses:
        '200':
          description: User favorite assigned successfully!
        '400':
          description: Bad request
        '401':
          description: Unauthorized, invalid token.
        '403':
          description: Forbidden
        '404':
          description: Not found
      security:
      - Bearer: []
      operationId: postV2FavoritesIntake
      x-operation-id-source: derived
components:
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
x-build:
  time: '2026-10-19T02:02:11.433999Z'
x-provenance:
  method: harvested
  publisher: LogMeal
  source: https://docs.logmeal.com/openapi/logmeal_openapi.yaml
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)