Symphony Baskets API

The Baskets API from Symphony — 2 operation(s) for baskets.

GitHub OpenAPI

Operations 4

GET /users/{userId}/meals/upcoming-basket Retrieve the upcoming basket #
POST /users/{userId}/meals/upcoming-basket Add one or more meals to the upcoming basket #
DELETE /users/{userId}/meals/upcoming-basket Remove meals from upcoming basket #
GET /users/{userId}/baskets Retrieve baskets #

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/symphony-fr:symphony-fr-baskets-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

symphony-fr-baskets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Symphony Baskets API
  description: 'Public API for Symphony. Allows management of recipes, ingredients, meal baskets, and discovery.

    Authentication is required for all endpoints via an API Key.


    Base domain: `https://symphony.fr`'
  version: 2.0.0
servers:
- url: /api/v2
  x-server-base: https://symphony.fr
security:
- ApiKeyAuth: []
tags:
- name: Baskets
paths:
  /users/{userId}/meals/upcoming-basket:
    get:
      operationId: getUpcomingBasket
      summary: Retrieve the upcoming basket
      description: Returns the upcoming basket for a user
      tags:
      - Baskets
      parameters:
      - $ref: '#/components/parameters/UserIdParameter'
      - $ref: '#/components/parameters/LanguageParameter'
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/ApiSuccessResponse'
                - type: object
                  properties:
                    data:
                      type: array
                      items:
                        $ref: '#/components/schemas/Meal'
                  required:
                  - data
        '401':
          $ref: '#/components/responses/UnauthorizedResponse'
        '404':
          $ref: '#/components/responses/UserNotFoundResponse'
        default:
          description: Unexpected error
    post:
      operationId: addMealsToUpcomingBasket
      summary: Add one or more meals to the upcoming basket
      description: 'Adds meals based on recipe IDs (with optional quantities) to the upcoming basket.

        Returns meal details including non-critical warnings (e.g., low popularity, CBD content).

        Critical issues (out of stock ingredients, invalid recipes) result in error responses.'
      tags:
      - Baskets
      parameters:
      - $ref: '#/components/parameters/UserIdParameter'
      requestBody:
        required: true
        description: Array of meals to add to the basket
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/NewMeal'
              minItems: 1
            examples:
              AddSingleMeal:
                summary: Add single meal with default quantity
                value:
                - recipeId: 5c114ebb851ebc23613a1819
              AddMultipleMeals:
                summary: Add two meals, one with custom quantity
                value:
                - recipeId: 6177ed3352d4b68a335bd11c
                - recipeId: 5c114ebb851ebc23613a1819
                  quantity: 400
      responses:
        '200':
          description: Meals successfully added, potentially with warnings
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/ApiSuccessResponse'
                - type: object
                  properties:
                    data:
                      type: array
                      items:
                        $ref: '#/components/schemas/AddedMealWithWarnings'
                  required:
                  - data
              examples:
                SuccessWithWarnings:
                  summary: Meals added with warnings
                  value:
                    success: true
                    data:
                    - id: meal_001
                      title: Recipe Title
                      ingredientQuantities:
                      - 0.6
                      - 0.2
                      - 0.2
                      quantity: 500
                      mealCount: 1
                      warnings:
                      - name: lowPopularity
                        message: This recipe is not rated highly by our popularity metrics
                    - id: meal_002
                      title: Another Recipe
                      ingredientQuantities:
                      - 0.3
                      - 0.7
                      quantity: 400
                      mealCount: 1
                      warnings: []
                    errors: []
                    meta:
                      __response_format: standard
                SuccessNoWarnings:
                  summary: Meals added without warnings
                  value:
                    success: true
                    data:
                    - id: meal_003
                      title: Popular Recipe
                      ingredientQuantities:
                      - 0.5
                      - 0.5
                      quantity: 450
                      mealCount: 1
                      warnings: []
                    errors: []
                    meta:
                      __response_format: standard
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
              examples:
                InvalidPayloadType:
                  summary: Request body is not an array
                  value:
                    success: false
                    errors:
                    - message: Request body must be an array of meals to add.
                      error_code: 400
                    meta:
                      __response_format: standard
                InvalidMealItem:
                  summary: Invalid item in request array
                  value:
                    success: false
                    errors:
                    - message: invalid_recipe_id is not a valid id
                      error_code: 400
                    meta:
                      __response_format: standard
                RecipeNotFound:
                  summary: Recipe ID does not exist
                  value:
                    success: false
                    errors:
                    - message: No recipe found with invalid_recipe_id.
                      error_code: 400
                    meta:
                      __response_format: standard
        '401':
          $ref: '#/components/responses/UnauthorizedResponse'
        '403':
          $ref: '#/components/responses/ForbiddenResponse'
        '404':
          $ref: '#/components/responses/UserNotFoundResponse'
        default:
          description: Unexpected error
    delete:
      operationId: removeMealsFromUpcomingBasket
      summary: Remove meals from upcoming basket
      description: 'Removes one or more meals from a user''s upcoming basket.

        Provide an array of meal IDs in the request body.'
      tags:
      - Baskets
      parameters:
      - $ref: '#/components/parameters/UserIdParameter'
      requestBody:
        required: true
        description: Array of meal IDs to remove from the basket
        content:
          application/json:
            schema:
              type: array
              items:
                type: string
                description: Unique identifier of a meal instance
                example: meal_001
              minItems: 1
            examples:
              RemoveSingle:
                summary: Remove one meal
                value:
                - meal_001
              RemoveMultiple:
                summary: Remove multiple meals
                value:
                - meal_001
                - meal_002
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/ApiSuccessResponse'
                - type: object
                  properties:
                    data:
                      type: string
                      example: Successfully deleted meals
                  required:
                  - data
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
              examples:
                MealNotFound:
                  summary: Meal ID does not exist
                  value:
                    success: false
                    errors:
                    - message: No meal found with invalid_meal_id
                      error_code: 400
                    meta:
                      __response_format: standard
        '401':
          $ref: '#/components/responses/UnauthorizedResponse'
        '403':
          $ref: '#/components/responses/ForbiddenResponse'
        '404':
          $ref: '#/components/responses/UserNotFoundResponse'
        default:
          description: Unexpected error
  /users/{userId}/baskets:
    get:
      operationId: getBaskets
      summary: Retrieve baskets
      description: Returns all the baskets for a user
      tags:
      - Baskets
      parameters:
      - $ref: '#/components/parameters/UserIdParameter'
      - $ref: '#/components/parameters/LanguageParameter'
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/ApiSuccessResponse'
                - type: object
                  properties:
                    data:
                      type: array
                      items:
                        $ref: '#/components/schemas/Basket'
                  required:
                  - data
        '401':
          $ref: '#/components/responses/UnauthorizedResponse'
        '403':
          $ref: '#/components/responses/ForbiddenResponse'
        '404':
          $ref: '#/components/responses/UserNotFoundResponse'
        default:
          description: Unexpected error
components:
  parameters:
    LanguageParameter:
      name: lang
      in: query
      description: Language for localized response fields
      schema:
        type: string
        enum:
        - en
        - fr
        default: fr
    UserIdParameter:
      name: userId
      in: path
      required: true
      description: 'The ID of the user. Can be a user ID or ''@me'' to refer to the authenticated user

        '
      schema:
        type: string
        example: '@me'
  schemas:
    NewMeal:
      type: object
      description: Meal to be added to basket
      properties:
        recipeId:
          type: string
          description: Unique identifier of the recipe
          example: 6177ed3352d4b68a335bd11c
        quantity:
          type: integer
          format: int32
          description: Quantity in grams. If omitted, calculated based on caloric target
          example: 450
          minimum: 280
          maximum: 650
      required:
      - recipeId
    Meal:
      type: object
      description: A meal is a recipe with additional meal-specific properties
      allOf:
      - $ref: '#/components/schemas/Recipe'
      - type: object
        properties:
          quantity:
            type: integer
            description: Quantity of this meal in grams
            example: 500
            minimum: 280
            maximum: 650
          mealCount:
            type: integer
            description: Number of individual meal portions this represents
            example: 2
          fulfilledAt:
            type: string
            format: date-time
            nullable: true
            description: Timestamp when meal was physically delivered to customer
            example: '2025-05-15T14:30:00Z'
          orderedAt:
            type: string
            format: date-time
            description: Timestamp when meal was ordered by customer
            example: '2025-05-12T19:22:00Z'
          visualId:
            type: object
            description: Visual identification markers for the meal
            properties:
              animal:
                type: string
                description: Animal symbol representing this meal
                example: abeille
              color:
                type: string
                description: Color identifier in hex format
                example: '#FF7EC0'
            required:
            - animal
            - color
        required:
        - quantity
        - mealCount
        - orderedAt
        - visualId
    NutritionalValues:
      type: object
      description: 'Nutritional values. Property keys are localized via `lang` query param (`en` or `fr`).

        Example: `?lang=en` returns English keys ("Proteins" instead of "Protéines").

        '
      properties:
        price:
          type: number
          format: float
          description: 'Localized key: "Price" (en) or "Prix" (fr). Unit: €'
        energy:
          type: number
          format: float
          description: 'Localized key: "Energy" (en) or "Énergie" (fr). Unit: kcal'
        ages:
          type: number
          format: float
          description: 'Localized key: "AGEs" (en/fr). Unit: kU'
        water:
          type: number
          format: float
          description: 'Localized key: "Water" (en) or "Eau" (fr). Unit: g'
        fiber:
          type: number
          format: float
          description: 'Localized key: "Fibers" (en) or "Fibres" (fr). Unit: g'
        protein:
          type: number
          format: float
          description: 'Localized key: "Proteins" (en) or "Protéines" (fr). Unit: g'
        lipid:
          type: number
          format: float
          description: 'Localized key: "Lipids" (en) or "Matières grasses" (fr). Unit: g'
        saturated-fat:
          type: number
          format: float
          description: 'Localized key: "Saturated fat" (en) or "Acides gras saturés" (fr). Unit: g'
        monounsaturated-fat:
          type: number
          format: float
          description: 'Localized key: "Monounsaturated fat" (en) or "Acides gras monoinsaturés" (fr). Unit: g'
        polyunsaturated-fat:
          type: number
          format: float
          description: 'Localized key: "Polyunsaturated fat" (en) or "Acides gras polyinsaturés" (fr). Unit: g'
        CBD:
          type: number
          format: float
          description: 'Localized key: "CBD" (en/fr). Unit: g'
        glutamic-acid:
          type: number
          format: float
          description: 'Localized key: "Glutamic acid" (en) or "Acide glutamique" (fr). Unit: g'
        ash:
          type: number
          format: float
          description: 'Localized key: "Ash" (en) or "Cendres" (fr). Unit: g'
        potassium:
          type: number
          format: float
          description: 'Localized key: "Potassium" (en/fr). Unit: g'
        magnesium:
          type: number
          format: float
          description: 'Localized key: "Magnesium" (en/fr). Unit: g'
        iron:
          type: number
          format: float
          description: 'Localized key: "Iron" (en) or "Fer" (fr). Unit: g'
        alcohol:
          type: number
          format: float
          description: 'Localized key: "Alcohol" (en) or "Alcool" (fr). Unit: g'
        sodium:
          type: number
          format: float
          description: 'Localized key: "Sodium" (en/fr). Unit: g'
        availableCarb:
          type: number
          format: float
          description: 'Localized key: "Carbs" (en) or "Glucides" (fr). Unit: g'
        carbohydrate:
          type: number
          format: float
          description: 'Localized key: "Carbs" (en) or "Glucides" (fr). Unit: g'
        sugar:
          type: number
          format: float
          description: 'Localized key: "Sugar" (en) or "Sucre" (fr). Unit: g'
        fodmap:
          type: number
          format: float
          description: 'Localized key: "FODMAP" (en/fr). Unit: U'
        sucrose:
          type: number
          format: float
          description: 'Localized key: "Sucrose" (en/fr). Unit: g'
        glucose:
          type: number
          format: float
          description: 'Localized key: "Glucose" (en/fr). Unit: g'
        fructose:
          type: number
          format: float
          description: 'Localized key: "Fructose" (en/fr). Unit: g'
        lactose:
          type: number
          format: float
          description: 'Localized key: "Lactose" (en/fr). Unit: g'
        maltose:
          type: number
          format: float
          description: 'Localized key: "Maltose" (en/fr). Unit: g'
        galactose:
          type: number
          format: float
          description: 'Localized key: "Galactose" (en/fr). Unit: g'
        vitamin-A:
          type: number
          format: float
          description: 'Localized key: "Vitamin A" (en) or "Vitamine A" (fr). Unit: UI'
        vitamin-C:
          type: number
          format: float
          description: 'Localized key: "Vitamin C" (en) or "Vitamine C" (fr). Unit: g'
        vitamin-D:
          type: number
          format: float
          description: 'Localized key: "Vitamin D" (en) or "Vitamine D" (fr). Unit: UI'
        vitamin-B6:
          type: number
          format: float
          description: 'Localized key: "Vitamin B-6" (en) or "Vitamine B-6" (fr). Unit: g'
        vitamin-B12:
          type: number
          format: float
          description: 'Localized key: "Vitamin B-12" (en) or "Vitamine B-12" (fr). Unit: g'
        sourness:
          type: number
          format: float
          description: 'Localized key: "Sourness" (en) or "Acidité" (fr). Unit: sourness'
        veganness:
          type: number
          format: float
          description: 'Localized key: "Veganness" (en) or "Veganité" (fr). Unit: veganness'
        PUFA_18-2_n-6:
          type: number
          format: float
          description: 'Localized key: "PUFA 18:2 n-6" (en/fr). Unit: g'
        PUFA_18-3_n-6:
          type: number
          format: float
          description: 'Localized key: "PUFA 18:3 n-6" (en/fr). Unit: g'
        PUFA_18-4_n-6:
          type: number
          format: float
          description: 'Localized key: "PUFA 18:4 n-6" (en/fr). Unit: g'
        PUFA_20-4_n-6:
          type: number
          format: float
          description: 'Localized key: "PUFA 20:4 n-6" (en/fr). Unit: g'
        omega-6:
          type: number
          format: float
          description: 'Localized key: "Omega 6" (en/fr). Unit: g'
        PUFA_20-5_n-3:
          type: number
          format: float
          description: 'Localized key: "EPA n-3" (en/fr). Unit: g'
        PUFA_22-5_n-3:
          type: number
          format: float
          description: 'Localized key: "DPA n-3" (en/fr). Unit: g'
        PUFA_22-6_n-3:
          type: number
          format: float
          description: 'Localized key: "DHA n-3" (en/fr). Unit: g'
        omega-3:
          type: number
          format: float
          description: 'Localized key: "Omega 3" (en/fr). Unit: g'
        cholesterol:
          type: number
          format: float
          description: 'Localized key: "Cholesterol" (en/fr). Unit: g'
        glutenness:
          type: number
          format: float
          description: 'Localized key: "Glutenness" (en/fr). Unit: glutenness'
      additionalProperties: false
    Recipe:
      type: object
      properties:
        id:
          type: string
          example: 63485116b0ff720c5cb04bea
        title:
          type: string
          example: My recipe title
        ingredientQuantities:
          type: array
          items:
            type: number
            format: float
            minimum: 0
          description: Quantities of ingredients in the recipe
          example:
          - 0
          - 0.2
          - 0
          - 0.3
          - 0.1
          - 0.4
        image:
          type: string
          format: uri
          nullable: true
          description: URL of the recipe image
          example: https://d1fy9tcev7dsal.cloudfront.net/opt_uploads/recipes/s512_bCSgz5HDkIf-qbRarw52I.webp
        averageRating:
          type: number
          format: float
          nullable: true
          example: 4.5
        numberOfRatings:
          type: integer
          example: 87
        numberOfOrders:
          type: integer
          example: 150
        numberOfComments:
          type: integer
          example: 5
        nutritionalValuesPer100g:
          $ref: '#/components/schemas/NutritionalValues'
      required:
      - id
      - ingredientQuantities
      - nutritionalValuesPer100g
    AddedMealWithWarnings:
      type: object
      description: Meal added to basket with associated warnings
      allOf:
      - $ref: '#/components/schemas/Meal'
      - type: object
        properties:
          warnings:
            type: array
            description: Non-critical warnings associated with this meal
            items:
              $ref: '#/components/schemas/Warning'
            example:
            - name: lowPopularity
              message: This recipe is not rated highly by our popularity metrics
        required:
        - warnings
    Warning:
      type: object
      properties:
        name:
          type: string
          description: Warning type identifier
          enum:
          - outOfStock
          - lowPopularity
          - quantityUpdated
          - containsCBD
          - highSalt
          - lowSalt
          - ingredientQuantityTooHigh
          example: lowPopularity
        message:
          type: string
          description: Human-readable warning message
          example: This recipe is not rated highly by our popularity metrics
      required:
      - name
      - message
    ApiSuccessResponse:
      type: object
      properties:
        success:
          type: boolean
          const: true
        errors:
          type: array
          items:
            $ref: '#/components/schemas/Error'
          example: []
        meta:
          type: object
          properties:
            __response_format:
              type: string
              example: standard
          required:
          - __response_format
      required:
      - success
      - errors
      - meta
    Error:
      type: object
      properties:
        message:
          type: string
        error_code:
          type: integer
          format: int32
      required:
      - message
      - error_code
    Basket:
      type: object
      properties:
        id:
          type: string
          example: basket_001
        estimatedFulfillmentAt:
          type: string
          format: date-time
          example: '2025-05-20T10:00:00Z'
        fulfilledAt:
          type: string
          format: date-time
          nullable: true
          example: '2025-05-22T09:45:00Z'
        meals:
          type: array
          items:
            $ref: '#/components/schemas/Meal'
        totalPrice:
          type: number
          format: float
          example: 25.99
      required:
      - id
      - estimatedFulfillmentAt
      - meals
      - totalPrice
    ApiErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          const: false
        errors:
          type: array
          items:
            $ref: '#/components/schemas/Error'
          minItems: 1
        meta:
          type: object
          properties:
            __response_format:
              type: string
              example: standard
          required:
          - __response_format
      required:
      - success
      - errors
      - meta
  responses:
    UserNotFoundResponse:
      description: User not found
      content:
        application/json:
          schema:
            allOf:
            - $ref: '#/components/schemas/ApiErrorResponse'
            - type: object
              properties:
                errors:
                  type: array
                  items:
                    type: object
                    properties:
                      message:
                        type: string
                        example: User account does not exist
                      error_code:
                        type: integer
                        const: 404
                    required:
                    - message
                    - error_code
    UnauthorizedResponse:
      description: No authorization
      content:
        application/json:
          schema:
            allOf:
            - $ref: '#/components/schemas/ApiErrorResponse'
            - type: object
              properties:
                errors:
                  type: array
                  items:
                    type: object
                    properties:
                      message:
                        type: string
                        example: Unauthorized
                      error_code:
                        type: integer
                        const: 401
                    required:
                    - message
                    - error_code
    ForbiddenResponse:
      description: Access denied
      content:
        application/json:
          schema:
            allOf:
            - $ref: '#/components/schemas/ApiErrorResponse'
            - type: object
              properties:
                errors:
                  type: array
                  items:
                    type: object
                    properties:
                      message:
                        type: string
                        example: Not allowed
                      error_code:
                        type: integer
                        const: 403
                    required:
                    - message
                    - error_code
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: query
      name: api_key
      description: 'API key for authentication. Obtain from: https://symphony.fr/en/my-account/account/api-keys

        Include as ''api_key'' query parameter in all requests

        '